Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CreateBase = newBase
Functions ¶
func NewCmdStepCfg ¶
func NewPipelineCfg ¶
Types ¶
type Cfg ¶
type Cfg struct {
Type Type `json:"type" validate:"required" yaml:"type"`
Cfg any `json:"cfg" validate:"required" yaml:"cfg"`
}
func (*Cfg) UnmarshalJSON ¶
func (*Cfg) UnmarshalYAML ¶
type CmdStep ¶
func NewCmdStep ¶
func NewCmdStep() *CmdStep
type FtpStep ¶
type FtpStep struct {
Step
*FtpStepCfg
// contains filtered or unexported fields
}
func NewFtpStep ¶
func NewFtpStep() *FtpStep
type FtpStepCfg ¶
type FtpStepCfg struct {
Addr string `json:"addr" yaml:"addr" validate:"required"`
User string `json:"user" yaml:"user" validate:"required"`
Pwd string `json:"pwd" yaml:"pwd"`
Timeout int `json:"timeout" yaml:"timeout"`
Retry int `json:"retry" yaml:"retry"`
Cmd string `json:"cmd" yaml:"cmd" validate:"required"`
Args []string `json:"args" yaml:"args"`
}
func NewFtpStepCfg ¶
func NewFtpStepCfg() *FtpStepCfg
type PipelineStep ¶
func NewPipelineStep ¶
func NewPipelineStep() *PipelineStep
func (*PipelineStep) GetCfg ¶
func (p *PipelineStep) GetCfg() any
func (*PipelineStep) Init ¶
func (p *PipelineStep) Init() error
func (*PipelineStep) Start ¶
func (p *PipelineStep) Start() error
func (*PipelineStep) Stop ¶
func (p *PipelineStep) Stop() error
func (*PipelineStep) Type ¶
func (p *PipelineStep) Type() any
type SSHStep ¶
type SSHStep struct {
Step
*SSHStepCfg
// contains filtered or unexported fields
}
func NewSSHStep ¶
func NewSSHStep() *SSHStep
type SSHStepCfg ¶
type SSHStepCfg struct {
Addr string `json:"addr" yaml:"addr" validate:"required"`
User string `json:"user" yaml:"user" validate:"required"`
Pwd string `json:"pwd" yaml:"pwd" validate:"required"`
PrivateKey string `json:"privateKey" yaml:"privateKey"`
Timeout int `json:"timeout" yaml:"timeout"`
Cmd string `json:"cmd" yaml:"cmd" validate:"required"`
Args []string `json:"args" yaml:"args"`
}
func NewSSHStepCfg ¶
func NewSSHStepCfg() *SSHStepCfg
Click to show internal directories.
Click to hide internal directories.