cmd

package
v0.17.5 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2018 License: Apache-2.0 Imports: 24 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 AllVDR added in v0.9.0

type AllVDR struct {
	ObjectDefinitions map[string]ce.CommonResource `json:"objectDefinitions"`
	Transformations   interface{}                  `json:"transformations"`
}

AllVDR is the combination of Resources and Transformations

func CombineVirtualDataResourcesForExport added in v0.9.0

func CombineVirtualDataResourcesForExport(base, auth string) (AllVDR, error)

CombineVirtualDataResourcesForExport creates a single JSON object comprising both the Resources and Transformations for the account. Two top level keys of the JSON object are: objectDefinitions for Resources and transformations for Transformations This is very slow.

type DeleteJobCheck added in v0.17.0

type DeleteJobCheck struct {
	JobID      string
	StatusCode int
}

DeleteJobCheck is a struct to hold results of a multidelete

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