Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Modules = make(map[string]Moduler)
Modules module manager map
Functions ¶
func ModuleRegister ¶
ModuleRegister register module
Types ¶
type Copy ¶
type Copy struct { Src string `json:"src" yaml:"src"` Dest string `json:"dest" yaml:"dest"` Mode os.FileMode `json:"mode" yaml:"mode"` }
Copy copies files to remote locations
type Moduler ¶
type Moduler interface { Name() string Parse(command string) error Run(ctx context.Context, endpoint *ssh.Endpoint) ([]byte, error) Close(endpoint *ssh.Endpoint) error }
Moduler module interface
Click to show internal directories.
Click to hide internal directories.