sshmodule

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompileModule

func CompileModule(moduleName string, osStr string, archStr string) string

func End

func End()

func Fail

func Fail(code int, args ...any)

func GetGoPath

func GetGoPath() string

func GetGosibotCmdDir

func GetGosibotCmdDir() string

func Info

func Info(args ...any)

func ParseArgs

func ParseArgs(argsDescription map[string]string) (requiredArgs map[string]string, vars map[string]string, err error)

func RunModule

func RunModule(client *sshutil.Client, moduleName string, requiredArgs map[string]string, varArgs map[string]string, auxFiles map[string]string, become BecomeInfo) (out []byte, err error)

func RunTask

func RunTask(client *sshutil.Client, playbook *playbooks.PlayBook, task *playbooks.Task, become BecomeInfo) ([]byte, error)

func RunTemplateModule

func RunTemplateModule(client *sshutil.Client, playbook *playbooks.PlayBook, task *playbooks.Task, become BecomeInfo) ([]byte, error)

func Start

func Start()

Types

type BecomeInfo

type BecomeInfo struct {
	Become     bool
	BecomeUser string
	BecomePass string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL