Documentation ¶
Index ¶
- func NewCmdSnapshot() *cobra.Command
- func NewCmdSnapshotCreate() *cobra.Command
- func NewCmdSnapshotList() *cobra.Command
- func NewCmdSnapshotRevert() *cobra.Command
- type CmdSnaphotOptions
- func (c *CmdSnaphotOptions) RunSnapshotCreate(cmd *cobra.Command) error
- func (c *CmdSnaphotOptions) RunSnapshotList(cmd *cobra.Command) error
- func (c *CmdSnaphotOptions) RunSnapshotRevert(cmd *cobra.Command) error
- func (c *CmdSnaphotOptions) Validate(cmd *cobra.Command) error
- func (c *CmdSnaphotOptions) ValidateList(cmd *cobra.Command) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdSnapshot ¶
NewCmdSnapshot adds command for operating on snapshot
func NewCmdSnapshotCreate ¶
NewCmdSnapshotCreate creates a snapshot of OpenEBS Volume
func NewCmdSnapshotList ¶
NewCmdSnapshotList displays list of volumes
func NewCmdSnapshotRevert ¶
NewCmdSnapshotRevert reverts a snapshot of OpenEBS Volume
Types ¶
type CmdSnaphotOptions ¶
type CmdSnaphotOptions struct {
// contains filtered or unexported fields
}
CmdSnaphotOptions holds information of snapshots being operated
func (*CmdSnaphotOptions) RunSnapshotCreate ¶
func (c *CmdSnaphotOptions) RunSnapshotCreate(cmd *cobra.Command) error
RunSnapshotCreate does tasks related to mayaserver.
func (*CmdSnaphotOptions) RunSnapshotList ¶
func (c *CmdSnaphotOptions) RunSnapshotList(cmd *cobra.Command) error
RunSnapshotList makes snapshot-list API request to maya-apiserver
func (*CmdSnaphotOptions) RunSnapshotRevert ¶
func (c *CmdSnaphotOptions) RunSnapshotRevert(cmd *cobra.Command) error
RunSnapshotRevert does tasks related to mayaserver.
func (*CmdSnaphotOptions) Validate ¶
func (c *CmdSnaphotOptions) Validate(cmd *cobra.Command) error
Validate validates the flag values
func (*CmdSnaphotOptions) ValidateList ¶
func (c *CmdSnaphotOptions) ValidateList(cmd *cobra.Command) error
ValidateList validates the flag values
Click to show internal directories.
Click to hide internal directories.