Documentation ¶
Index ¶
- func AddKubeConfigFlag(cmd *cobra.Command, value *string)
- func AddNamespaceFlag(cmd *cobra.Command, value *string)
- func NewCmdBlockDevice() *cobra.Command
- func NewCmdIscsi() *cobra.Command
- func NewCmdOptions() *cobra.Command
- func NewMayaAgent() (*cobra.Command, error)
- func NewSubCmdFormat() *cobra.Command
- func NewSubCmdIscsiDiscover() *cobra.Command
- func NewSubCmdIscsiLogin() *cobra.Command
- func NewSubCmdIscsiLogout() *cobra.Command
- func NewSubCmdListBlockDevice() *cobra.Command
- func NewSubCmdMount() *cobra.Command
- func NewSubCmdUnMount() *cobra.Command
- func Run(cmd *cobra.Command, options *MayaAgentOptions) error
- type MayaAgentOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddKubeConfigFlag ¶
AddKubeConfigFlag is used to add a config flag
func AddNamespaceFlag ¶
AddNamespaceFlag is used to add a namespace flag
func NewCmdBlockDevice ¶
NewCmdBlockDevice and its nested children are created
func NewCmdIscsi ¶
NewCmdIscsi creates NewCmdBlockDevice and its nested children
func NewCmdOptions ¶
NewCmdOptions creates an options Cobra command to return usage
func NewMayaAgent ¶
NewMayaAgent creates a new maya-agent. This cmd includes logging, cmd option parsing from flags
func NewSubCmdFormat ¶
NewSubCmdFormat formats the specified disk
func NewSubCmdIscsiDiscover ¶
NewSubCmdIscsiDiscover discovers iscsi block devices
func NewSubCmdIscsiLogin ¶
NewSubCmdIscsiLogin logs in to particular portal or all discovered portals
func NewSubCmdIscsiLogout ¶
NewSubCmdIscsiLogout logs out of particular portal or all discovered portals
func NewSubCmdListBlockDevice ¶
NewSubCmdListBlockDevice is to list block device is created
func NewSubCmdUnMount ¶
NewSubCmdUnMount unmounts specified mounted disk
Types ¶
type MayaAgentOptions ¶
MayaAgentOptions defines a type for the options of MayaAgent