utils

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2016 License: Apache-2.0 Imports: 24 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UIPrint = fmt.Println

Functions

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 DecorateDeploymentWithBoshUUID added in v0.0.9

func DecorateDeploymentWithBoshUUID(deployment []byte, client BoshClientCaller) ([]byte, error)

func GenerateCert added in v0.0.9

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

GenerateCert - will generate a cert based on hosts and if it is CA

func GenerateKeys added in v0.0.9

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

func GetCloudConfigCommands

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

func GetProductCommands

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

func NewPassword added in v0.0.9

func NewPassword(strlen int) string

NewPassword - generates new password based on length

func PollTaskAndWait

func PollTaskAndWait(task enamlbosh.BoshTask, boshClient *enamlbosh.Client, httpClient HttpClientDoer, tries int) (err error)

PollTaskAndWait - will poll the give task until its status is cancelled, done or error. a -1 tries value indicates infinite

func ProcessProductBytes

func ProcessProductBytes(manifest []byte, printManifest bool, user, pass, url string, port int, httpClient HttpClientDoer, poll bool) (task enamlbosh.BoshTask, err error)

ProcessProductBytes - upload a product deployments bytes to bosh

func ProcessRemoteBoshAssets

func ProcessRemoteBoshAssets(dm *enaml.DeploymentManifest, boshClient *enamlbosh.Client, httpClient HttpClientDoer, poll bool) (err error)

func ProcessRemoteReleases

func ProcessRemoteReleases(rl []enaml.Release, boshClient *enamlbosh.Client, httpClient HttpClientDoer, poll bool) (err error)

ProcessRemoteReleases - upload any remote Releases given

func ProcessRemoteStemcells

func ProcessRemoteStemcells(scl []enaml.Stemcell, boshClient *enamlbosh.Client, httpClient HttpClientDoer, poll bool) (err error)

ProcessRemoteStemcells - upload any remote stemcells given

func ProcessStemcellsToBeUploaded added in v0.0.4

func ProcessStemcellsToBeUploaded(stemcells []enaml.Stemcell, boshClient *enamlbosh.Client, httpClient HttpClientDoer) (remoteStemcells []enaml.Stemcell, err error)

ProcessStemcellsToBeUploaded - finds list of remote stemcells that have not been uploaded

Types

type BoshClientCaller added in v0.0.9

type BoshClientCaller interface {
	GetInfo() (*enamlbosh.BoshInfo, error)
}

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
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