cli

package
v4.2.0-beta11 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2019 License: Apache-2.0 Imports: 58 Imported by: 0

Documentation

Overview

DigitalRebar Provision CLI provides the core parts of the CLI. This CLI uses an access core based upon a set of generated files from the generated swagger.json file.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ActuallyPowerThings is a boolean to use in testing to keep from power off the test machine
	ActuallyPowerThings = true
	// DefaultStateLoc is the default location to save agent state
	DefaultStateLoc string
)
View Source
var (

	// Session is the global client access session
	Session *api.Client
)

Functions

func NewApp

func NewApp() *cobra.Command

NewApp is the app start function

func NewBasicKeyRequest

func NewBasicKeyRequest() *basicKeyReq

NewBasicKeyRequest returns a default BasicKeyRequest.

func PatchWithFunction

func PatchWithFunction(key string, op *ops, fn func(models.Model) (models.Model, bool)) error

The input function takes the object and returns the modified object and if the object changed.

func PatchWithString

func PatchWithString(key, js string, op *ops) error

Types

type DocData

type DocData struct {
	Name          string
	Version       string
	Documentation string
	Objects       [][]models.Docer
}

func (*DocData) LengthString

func (dd *DocData) LengthString(str, pat string) string

Jump to

Keyboard shortcuts

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