utils

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2016 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckRequired added in v0.0.11

func CheckRequired(c *cli.Context, names ...string)

func ClearDefaultStringSliceValue

func ClearDefaultStringSliceValue(stringSliceArgs ...string) (res []string)

ClearDefaultStringSliceValue - this is simply to work around a defect in the cli package, where the default is appended to rather than replaced by user defined flags for StringSliceFlag values.

func ConvertToCLIStringSliceFlag added in v0.0.11

func ConvertToCLIStringSliceFlag(values []string) *cli.StringSlice

func DeployYaml added in v0.0.11

func DeployYaml(myYaml string, boshInitDeploy func(string))

func GenerateCert added in v0.0.9

func GenerateCert(hosts []string) (caCert, cert, key string, err error)

func GenerateKeys added in v0.0.9

func GenerateKeys() (publicKeyPem, privateKeyPem string, err error)

func GetCloudConfigCommands

func GetCloudConfigCommands(target string) (commands []cli.Command)

GetCloudConfigCommands builds a list of CLI commands depending on which cloud config plugins are installed.

func GetProductCommands

func GetProductCommands(target string) (commands []cli.Command)

GetProductCommands builds a list of CLI commands depending on which product plugins are installed.

func NewPassword added in v0.0.9

func NewPassword(strlen int) string

NewPassword - generates new password based on length

Types

type HttpClientDoer

type HttpClientDoer interface {
	Do(req *http.Request) (resp *http.Response, err error)
}

HttpClientDoer - interface for a http.Client.Doer

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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