action_ssh

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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 CreateSSH

func CreateSSH(env string, host string, user string, password string) *SSH

Create a instance of the docker registry

func CreateSSHOptions

func CreateSSHOptions(env string, opts ...SSHOptions) *SSH

func (*SSH) CreateSSHClient

func (m *SSH) CreateSSHClient() (*ssh_client.Client, error)

func (*SSH) SSHDownloadFile

func (m *SSH) SSHDownloadFile(src string, dest string) error

func (*SSH) SSHRunCMD

func (m *SSH) SSHRunCMD(cmd string) (string, error)

func (*SSH) SSHRunScript

func (m *SSH) SSHRunScript(script string) (string, error)

func (*SSH) SSHRunScriptFile

func (m *SSH) SSHRunScriptFile(script_file string) (string, error)

func (*SSH) SSHUploadFile

func (m *SSH) SSHUploadFile(src string, dest string) error

func (*SSH) String

func (m *SSH) String() string

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

Jump to

Keyboard shortcuts

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