Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProcessBlockedError ¶
ProcessBlockedError ensures that correct and user-friendly message is displayed to the user based on the block type.
Types ¶
type BlockCommand ¶
type BlockCommand struct {
ProtectionCommand
}
BlockCommand blocks specified operation.
func (*BlockCommand) Info ¶
func (c *BlockCommand) Info() *cmd.Info
Info provides information about command. Satisfying Command interface.
func (*BlockCommand) Init ¶
func (c *BlockCommand) Init(args []string) error
Init initializes the command. Satisfying Command interface.
type ProtectionCommand ¶
type ProtectionCommand struct { envcmd.EnvCommandBase // contains filtered or unexported fields }
ProtectionCommand is a super for environment protection commands that block/unblock operations.
type UnblockCommand ¶
type UnblockCommand struct {
ProtectionCommand
}
UnblockCommand removes the block from desired operation.
func (*UnblockCommand) Info ¶
func (c *UnblockCommand) Info() *cmd.Info
Info provides information about command. Satisfying Command interface.
func (*UnblockCommand) Init ¶
func (c *UnblockCommand) Init(args []string) error
Init initializes the command. Satisfying Command interface.
Click to show internal directories.
Click to hide internal directories.