cmd

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2018 License: Apache-2.0 Imports: 17 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 ExportAllFormulasToDir added in v0.7.0

func ExportAllFormulasToDir(base, auth string, dirname string) error

ExportAllFormulasToDir creates a directory given and exports all Formula JSON files

func ExportAllResourcesToDir added in v0.7.0

func ExportAllResourcesToDir(base, auth string, dirname string) error

ExportAllResourcesToDir writes out all the resources to the speceified irectory

func ExportAllTransformationsToDir added in v0.7.0

func ExportAllTransformationsToDir(base, auth string, dirname string) error

ExportAllTransformationsToDir creates a directory given a dirname and iterates through all Elements with associated transformations and creates a single JSON file

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
	InstanceID   int
}

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