utils

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2016 License: Apache-2.0 Imports: 12 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 GetCloudConfigCommands

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

func GetProductCommands

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

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