buildin

package
v0.7.7 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StepNameCMD       = "cmd"
	StepNameShell     = "shell"
	StepNameFile      = "file"
	StepMultiNameFile = "multi_file"
	StepNameZipFile   = "zip"
	StepNameYamlJson  = "json_yaml"

	GUIDLength  = 36
	CMDName     = "name"
	CMDDesc     = "desc"
	CMDScheme   = "schema"
	CMDCommand  = "exec"
	ParamClient = "--client"
	ParamParams = "--params"

	// ShellTmpPath default in ~/.oms
	ShellTmpPath = ".oms"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FileUploadStep

type FileUploadStep struct {
	types.BaseStep
	// contains filtered or unexported fields
}

FileUploadStep 上传文件

func (*FileUploadStep) Config added in v0.7.6

func (bs *FileUploadStep) Config() interface{}

func (*FileUploadStep) Create

func (bs *FileUploadStep) Create(conf []byte) (types.Step, error)

func (*FileUploadStep) Desc

func (bs *FileUploadStep) Desc() string

func (*FileUploadStep) Exec

func (bs *FileUploadStep) Exec(session *transport.Session, sudo bool) ([]byte, error)

func (*FileUploadStep) GetSchema added in v0.7.6

func (bs *FileUploadStep) GetSchema() (interface{}, error)

func (*FileUploadStep) Name

func (bs *FileUploadStep) Name() string

type JsonYamlReplaceStep

type JsonYamlReplaceStep struct {
	types.BaseStep
	// contains filtered or unexported fields
}

JsonYamlReplaceStep 上传多个文件

func (*JsonYamlReplaceStep) Config added in v0.7.6

func (bs *JsonYamlReplaceStep) Config() interface{}

func (*JsonYamlReplaceStep) Create

func (bs *JsonYamlReplaceStep) Create(conf []byte) (types.Step, error)

func (*JsonYamlReplaceStep) Desc

func (bs *JsonYamlReplaceStep) Desc() string

func (*JsonYamlReplaceStep) Exec

func (bs *JsonYamlReplaceStep) Exec(session *transport.Session, sudo bool) ([]byte, error)

func (*JsonYamlReplaceStep) GetSchema

func (bs *JsonYamlReplaceStep) GetSchema() (interface{}, error)

func (*JsonYamlReplaceStep) Name

func (bs *JsonYamlReplaceStep) Name() string

type MultiFileUploadStep

type MultiFileUploadStep struct {
	types.BaseStep
	// contains filtered or unexported fields
}

MultiFileUploadStep 上传多个文件

func (*MultiFileUploadStep) Config added in v0.7.6

func (bs *MultiFileUploadStep) Config() interface{}

func (*MultiFileUploadStep) Create

func (bs *MultiFileUploadStep) Create(conf []byte) (types.Step, error)

func (*MultiFileUploadStep) Desc

func (bs *MultiFileUploadStep) Desc() string

func (*MultiFileUploadStep) Exec

func (bs *MultiFileUploadStep) Exec(session *transport.Session, sudo bool) ([]byte, error)

func (*MultiFileUploadStep) GetSchema added in v0.7.6

func (bs *MultiFileUploadStep) GetSchema() (interface{}, error)

func (*MultiFileUploadStep) Name

func (bs *MultiFileUploadStep) Name() string

type RunCmdStep

type RunCmdStep struct {
	types.BaseStep
	// contains filtered or unexported fields
}

RunCmdStep 执行cmd

func (*RunCmdStep) Config added in v0.7.6

func (bs *RunCmdStep) Config() interface{}

func (*RunCmdStep) Create

func (bs *RunCmdStep) Create(conf []byte) (types.Step, error)

func (*RunCmdStep) Desc

func (bs *RunCmdStep) Desc() string

func (*RunCmdStep) Exec

func (bs *RunCmdStep) Exec(session *transport.Session, sudo bool) ([]byte, error)

func (*RunCmdStep) GetSchema added in v0.7.6

func (bs *RunCmdStep) GetSchema() (interface{}, error)

func (*RunCmdStep) Name

func (bs *RunCmdStep) Name() string

type RunShellStep

type RunShellStep struct {
	types.BaseStep
	// contains filtered or unexported fields
}

RunShellStep 执行shell

func (*RunShellStep) Config added in v0.7.6

func (bs *RunShellStep) Config() interface{}

func (*RunShellStep) Create

func (bs *RunShellStep) Create(conf []byte) (types.Step, error)

func (*RunShellStep) Desc

func (bs *RunShellStep) Desc() string

func (*RunShellStep) Exec

func (bs *RunShellStep) Exec(session *transport.Session, sudo bool) ([]byte, error)

func (*RunShellStep) GetSchema added in v0.7.6

func (bs *RunShellStep) GetSchema() (interface{}, error)

func (*RunShellStep) Name

func (bs *RunShellStep) Name() string

type ZipFileStep

type ZipFileStep struct {
	types.BaseStep
	// contains filtered or unexported fields
}

ZipFileStep 上传压缩文件

func (*ZipFileStep) Config added in v0.7.6

func (bs *ZipFileStep) Config() interface{}

func (*ZipFileStep) Create

func (bs *ZipFileStep) Create(conf []byte) (types.Step, error)

func (*ZipFileStep) Desc

func (bs *ZipFileStep) Desc() string

func (*ZipFileStep) Exec

func (bs *ZipFileStep) Exec(session *transport.Session, sudo bool) ([]byte, error)

func (*ZipFileStep) GetSchema added in v0.7.6

func (bs *ZipFileStep) GetSchema() (interface{}, error)

func (*ZipFileStep) Name

func (bs *ZipFileStep) Name() string

Jump to

Keyboard shortcuts

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