cmd

package
v0.4.8 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2018 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "cectl",
	Short: "Cloud Elements control",
	Long:  `Cloud Elements control is a CLI that manages the platform`,
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

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

func SetVersion

func SetVersion(v string)

SetVersion sets the version for use in the cmd package

Types

type PingCheck added in v0.4.8

type PingCheck struct {
	ElementName  string
	InstanceName string
	StatusCode   int
	Status       string
	Message      []byte
}

PingCheck is a struct to hold results of a /ping check on an Element Instance

Jump to

Keyboard shortcuts

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