Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppendCommand ¶ added in v0.6.0
type AppendCommand struct { Source string Target string Mode AppendMode // contains filtered or unexported fields }
AppendCommand container for all 'append' parameters
func NewAppendCommand ¶ added in v0.6.0
NewAppendCommand creates a new AppendCommand parameter container
func (*AppendCommand) GetName ¶ added in v0.6.0
func (cmd *AppendCommand) GetName() string
GetName returns the AppendCommand's name identifier
func (*AppendCommand) IsSane ¶ added in v0.6.0
func (cmd *AppendCommand) IsSane() bool
IsSane returns true if command is sane
func (*AppendCommand) Parse ¶ added in v0.6.0
func (cmd *AppendCommand) Parse(args []string) (success bool)
Parse parses the arguments and returns true on success; otherwise it prints usage and returns false
func (*AppendCommand) Run ¶ added in v0.6.0
func (cmd *AppendCommand) Run()
Run executes 'append' with given AppendCommand's parameters
type AppendMode ¶ added in v0.6.0
type AppendMode string
AppendMode defines behaviour in case existing secrets are in conflict
const ( // ModeSkip do not append secret on conflict ModeSkip AppendMode = "skip" // ModeOverwrite overwrite existing secret on conflict ModeOverwrite AppendMode = "overwrite" // ModeRename keep existing secret and create a new key on conflict ModeRename AppendMode = "rename" // ModeInvalid denotes invalid mode ModeInvalid AppendMode = "invalid" )
type CatCommand ¶
type CatCommand struct { Path string // contains filtered or unexported fields }
CatCommand container for all 'cat' parameters
func NewCatCommand ¶
NewCatCommand creates a new CatCommand parameter container
func (*CatCommand) GetName ¶
func (cmd *CatCommand) GetName() string
GetName returns the CatCommand's name identifier
func (*CatCommand) IsSane ¶ added in v0.1.1
func (cmd *CatCommand) IsSane() bool
IsSane returns true if command is sane
func (*CatCommand) Parse ¶ added in v0.1.1
func (cmd *CatCommand) Parse(args []string) (success bool)
Parse given arguments and return status
func (*CatCommand) Run ¶
func (cmd *CatCommand) Run()
Run executes 'cat' with given CatCommand's parameters
type CdCommand ¶
type CdCommand struct { Path string // contains filtered or unexported fields }
CdCommand container for all 'cd' parameters
func NewCdCommand ¶
NewCdCommand creates a new CdCommand parameter container
type CopyCommand ¶
CopyCommand container for all 'cp' parameters
func NewCopyCommand ¶
NewCopyCommand creates a new CopyCommand parameter container
func (*CopyCommand) GetName ¶
func (cmd *CopyCommand) GetName() string
GetName returns the CopyCommand's name identifier
func (*CopyCommand) IsSane ¶ added in v0.1.1
func (cmd *CopyCommand) IsSane() bool
IsSane returns true if command is sane
func (*CopyCommand) Parse ¶ added in v0.1.1
func (cmd *CopyCommand) Parse(args []string) (success bool)
Parse given arguments and return status
func (*CopyCommand) Run ¶
func (cmd *CopyCommand) Run()
Run executes 'cp' with given CopyCommand's parameters
type GrepCommand ¶ added in v0.5.0
GrepCommand container for all 'grep' parameters
func NewGrepCommand ¶ added in v0.5.0
NewGrepCommand creates a new GrepCommand parameter container
func (*GrepCommand) GetName ¶ added in v0.5.0
func (cmd *GrepCommand) GetName() string
GetName returns the GrepCommand's name identifier
func (*GrepCommand) IsSane ¶ added in v0.5.0
func (cmd *GrepCommand) IsSane() bool
IsSane returns true if command is sane
func (*GrepCommand) Parse ¶ added in v0.5.0
func (cmd *GrepCommand) Parse(args []string) (success bool)
Parse given arguments and return status
func (*GrepCommand) Run ¶ added in v0.5.0
func (cmd *GrepCommand) Run()
Run executes 'grep' with given RemoveCommand's parameters
type ListCommand ¶
type ListCommand struct { Path string // contains filtered or unexported fields }
ListCommand container for 'ls' parameters
func NewListCommand ¶
NewListCommand creates a new ListCommand parameter container
func (*ListCommand) GetName ¶
func (cmd *ListCommand) GetName() string
GetName returns the ListCommand's name identifier
func (*ListCommand) IsSane ¶ added in v0.1.1
func (cmd *ListCommand) IsSane() bool
IsSane returns true if command is sane
func (*ListCommand) Parse ¶ added in v0.1.1
func (cmd *ListCommand) Parse(args []string) (success bool)
Parse given arguments and return status
func (*ListCommand) Run ¶
func (cmd *ListCommand) Run()
Run executes 'ls' with given ListCommand's parameters
type Match ¶ added in v0.5.0
type Match struct {
// contains filtered or unexported fields
}
Match structure to keep indices of matched terms
type MoveCommand ¶
MoveCommand container for all 'mv' parameters
func NewMoveCommand ¶
NewMoveCommand creates a new MoveCommand parameter container
func (*MoveCommand) GetName ¶
func (cmd *MoveCommand) GetName() string
GetName returns the MoveCommand's name identifier
func (*MoveCommand) IsSane ¶ added in v0.1.1
func (cmd *MoveCommand) IsSane() bool
IsSane returns true if command is sane
func (*MoveCommand) Parse ¶ added in v0.1.1
func (cmd *MoveCommand) Parse(args []string) (success bool)
Parse given arguments and return status
func (*MoveCommand) Run ¶
func (cmd *MoveCommand) Run()
Run executes 'mv' with given MoveCommand's parameters
type RemoveCommand ¶
type RemoveCommand struct { Path string // contains filtered or unexported fields }
RemoveCommand container for all 'rm' parameters
func NewRemoveCommand ¶
NewRemoveCommand creates a new RemoveCommand parameter container
func (*RemoveCommand) GetName ¶
func (cmd *RemoveCommand) GetName() string
GetName returns the RemoveCommand's name identifier
func (*RemoveCommand) IsSane ¶ added in v0.1.1
func (cmd *RemoveCommand) IsSane() bool
IsSane returns true if command is sane
func (*RemoveCommand) Parse ¶ added in v0.1.1
func (cmd *RemoveCommand) Parse(args []string) (success bool)
Parse given arguments and return status
func (*RemoveCommand) Run ¶
func (cmd *RemoveCommand) Run()
Run executes 'rm' with given RemoveCommand's parameters