command

package
Version: v1.12.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddKubeConfigFlag

func AddKubeConfigFlag(cmd *cobra.Command, value *string)

AddKubeConfigFlag is used to add a config flag

func AddNamespaceFlag

func AddNamespaceFlag(cmd *cobra.Command, value *string)

AddNamespaceFlag is used to add a namespace flag

func NewCmdBlockDevice

func NewCmdBlockDevice() *cobra.Command

NewCmdBlockDevice and its nested children are created

func NewCmdIscsi

func NewCmdIscsi() *cobra.Command

NewCmdIscsi creates NewCmdBlockDevice and its nested children

func NewCmdOptions

func NewCmdOptions() *cobra.Command

NewCmdOptions creates an options Cobra command to return usage

func NewMayaAgent

func NewMayaAgent() (*cobra.Command, error)

NewMayaAgent creates a new maya-agent. This cmd includes logging, cmd option parsing from flags

func NewSubCmdFormat

func NewSubCmdFormat() *cobra.Command

NewSubCmdFormat formats the specified disk

func NewSubCmdIscsiDiscover

func NewSubCmdIscsiDiscover() *cobra.Command

NewSubCmdIscsiDiscover discovers iscsi block devices

func NewSubCmdIscsiLogin

func NewSubCmdIscsiLogin() *cobra.Command

NewSubCmdIscsiLogin logs in to particular portal or all discovered portals

func NewSubCmdIscsiLogout

func NewSubCmdIscsiLogout() *cobra.Command

NewSubCmdIscsiLogout logs out of particular portal or all discovered portals

func NewSubCmdListBlockDevice

func NewSubCmdListBlockDevice() *cobra.Command

NewSubCmdListBlockDevice is to list block device is created

func NewSubCmdMount

func NewSubCmdMount() *cobra.Command

NewSubCmdMount mounts the specified disk

func NewSubCmdUnMount

func NewSubCmdUnMount() *cobra.Command

NewSubCmdUnMount unmounts specified mounted disk

func Run

func Run(cmd *cobra.Command, options *MayaAgentOptions) error

Run maya-agent

Types

type MayaAgentOptions

type MayaAgentOptions struct {
	KubeConfig string
	Namespace  string
}

MayaAgentOptions defines a type for the options of MayaAgent

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL