Documentation
¶
Index ¶
- Constants
- Variables
- func MakeErrInvalidOperation(in Input) error
- type Input
- type OpCopy
- type OpLocal
- func (op OpLocal) DefaultName() string
- func (op OpLocal) Execute(r *remote.Remote) (*gtypes.OrderedMap[string, string], error)
- func (op OpLocal) Name() string
- func (op OpLocal) Role() string
- func (op *OpLocal) SetName(name string)
- func (op *OpLocal) SetPrefix(prefix string)
- func (op *OpLocal) SetRole(role string)
- type OpShell
- type Operation
Constants ¶
const ( OpTypeShell = "shell" OpTypeCopy = "copy" OpTypeLocal = "local" )
Variables ¶
var ( ErrInvalidOperation = errors.New("invalid operation") ErrInvalidOpType = errors.New("invalid operation type") )
Functions ¶
func MakeErrInvalidOperation ¶
Types ¶
type OpCopy ¶
type OpCopy struct {
// contains filtered or unexported fields
}
OpCopy copies files or directories to remote hosts via SFTP.
func NewOpCopy ¶
NewOpCopy creates a new OpCopy operation from the given Input. Returns ErrInvalidOperation if the To field is empty.
func (OpCopy) DefaultName ¶ added in v0.0.13
DefaultName returns the default name for copy operations.
type OpLocal ¶ added in v0.0.22
type OpLocal struct {
// contains filtered or unexported fields
}
func NewOpLocal ¶ added in v0.0.22
func (OpLocal) DefaultName ¶ added in v0.0.22
func (OpLocal) Name ¶ added in v0.0.22
func (op OpLocal) Name() string
Name returns the operation's name.
func (OpLocal) Role ¶ added in v0.0.22
func (op OpLocal) Role() string
Role returns the operation's target role.
type OpShell ¶
type OpShell struct {
// contains filtered or unexported fields
}
OpShell executes shell commands on remote hosts.
func NewOpShell ¶
NewOpShell creates a new OpShell operation from the given Input. Returns ErrInvalidOperation if Shell field is empty.
func (OpShell) DefaultName ¶ added in v0.0.13
DefaultName returns the default name for shell operations.