cmd

package
v0.8.0-1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AttachTargetNode string
	AttachVolume     string
)
View Source
var (
	ReplicaName   string           // Name of replica to be deleted
	ReplicaVolume lh_client.Volume // Volume the replica belongs to
)
View Source
var (
	UpdateVolumeName string
	ReplicaCountFlag string
	ReplicaCount     int64
)
View Source
var (
	DrainTargetNode string
)

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func InitManagerClient

func InitManagerClient()

InitManagerClient: call it before running commangs that need to interact with the longhorn manager api

Types

type Config

type Config struct {
	Contexts       []Context
	DefaultContext string `mapstructure:"default"`
}

type Context

type Context struct {
	Name string `mapstructure:"name"`
	Url  string `mapstructure:"url"`
	User string `mapstructure:"user"`
	Pass string `mapstructure:"pass"`
}

Jump to

Keyboard shortcuts

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