utils

package
v0.0.35 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2016 License: Apache-2.0 Imports: 20 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) error

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)

GenerateCert - generates a caCert, cert and key

func GenerateCertWithCA added in v0.0.33

func GenerateCertWithCA(hosts []string, cacrt *pkix.Certificate, cakey *pkix.Key) (caCert, cert, key string, err error)

GenerateCertWithCA - generates a certificate with a caCert and caKey, also return ca as string

func GenerateKeys added in v0.0.9

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

func GetBoshDeployPath added in v0.0.25

func GetBoshDeployPath() string

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 Initialize added in v0.0.33

func Initialize() (key *pkix.Key, crt *pkix.Certificate, err error)

Initialize - generates a caCert and caKey

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