Documentation ¶
Index ¶
- func Action_SSHDownload(w *workflow.Workflow, m *workflow.TemplateData) error
- func Action_SSHRunCMD(w *workflow.Workflow, m *workflow.TemplateData) error
- func Action_SSHRunScript(w *workflow.Workflow, m *workflow.TemplateData) error
- func Action_SSHRunScriptFile(w *workflow.Workflow, m *workflow.TemplateData) error
- func Action_SSHUpload(w *workflow.Workflow, m *workflow.TemplateData) error
- func GetSchema() workflow.SchemaEndpoint
- type SSH
- func (m *SSH) CreateSSHClient() (*ssh_client.Client, error)
- func (m *SSH) SSHDownloadFile(src string, dest string) error
- func (m *SSH) SSHRunCMD(cmd string) (string, error)
- func (m *SSH) SSHRunScript(script string) (string, error)
- func (m *SSH) SSHRunScriptFile(script_file string) (string, error)
- func (m *SSH) SSHUploadFile(src string, dest string) error
- func (m *SSH) String() string
- func (m *SSH) Update(opts ...SSHOptions)
- type SSHOptions
- type SSHSchema
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Action_SSHDownload ¶
func Action_SSHDownload(w *workflow.Workflow, m *workflow.TemplateData) error
func Action_SSHRunCMD ¶
func Action_SSHRunCMD(w *workflow.Workflow, m *workflow.TemplateData) error
func Action_SSHRunScript ¶
func Action_SSHRunScript(w *workflow.Workflow, m *workflow.TemplateData) error
func Action_SSHRunScriptFile ¶
func Action_SSHRunScriptFile(w *workflow.Workflow, m *workflow.TemplateData) error
func Action_SSHUpload ¶
func Action_SSHUpload(w *workflow.Workflow, m *workflow.TemplateData) error
func GetSchema ¶
func GetSchema() workflow.SchemaEndpoint
GetAction returns the action for the target
Types ¶
type SSH ¶
type SSH struct { Host string `json:"host" yaml:"host" flag:"host h" desc:"SSH host"` User string `json:"user" yaml:"user" flag:"user u" desc:"User for SSH"` Password string `json:"password" yaml:"password" flag:"password p" desc:"Password for SSH"` PrivateKeyFile string `json:"private_key_file" yaml:"private_key_file" flag:"private_key_file s" desc:"private key file for SSH"` }
func CreateSSHOptions ¶
func CreateSSHOptions(env string, opts ...SSHOptions) *SSH
func (*SSH) CreateSSHClient ¶
func (m *SSH) CreateSSHClient() (*ssh_client.Client, error)
func (*SSH) Update ¶
func (m *SSH) Update(opts ...SSHOptions)
type SSHOptions ¶
type SSHOptions func(*SSH)
func OptionSSHHost ¶
func OptionSSHHost(host string) SSHOptions
func OptionSSHPassword ¶
func OptionSSHPassword(password string) SSHOptions
func OptionSSHPrivateKeyFile ¶
func OptionSSHPrivateKeyFile(privatekeyfile string) SSHOptions
func OptionSSHUser ¶
func OptionSSHUser(user string) SSHOptions
type SSHSchema ¶
type SSHSchema struct { }
func (SSHSchema) GetActionSchema ¶
func (s SSHSchema) GetActionSchema() map[string]workflow.ActionSchema
GetActions returns the actions for this schema
func (SSHSchema) GetFunctionMap ¶
func (s SSHSchema) GetFunctionMap() map[string]workflow.FunctionSchema
GetFunctionMap returns the function map for this schema
func (SSHSchema) GetTargetSchema ¶
func (s SSHSchema) GetTargetSchema() map[string]workflow.TargetSchema
GetTargetSchema returns the target schema for this action
Click to show internal directories.
Click to hide internal directories.