cmd

package
v1.0.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2018 License: Apache-2.0 Imports: 25 Imported by: 2

Documentation

Index

Constants

View Source
const (
	GcloudBinaryName    = "gcloud"
	KubectlBinaryName   = "kubectl"
	CfsslBinaryName     = "cfssl"
	CfssljsonBinaryName = "cfssljson"
)

Binary names that we depend on.

Variables

This section is empty.

Functions

func Asset

func Asset(name string) ([]byte, error)

Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.

func AssetDir

func AssetDir(name string) ([]string, error)

AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data contains the following hierarchy:

data/
  foo.txt
  img/
    a.png
    b.png

then AssetDir("data") would return []string{"foo.txt", "img"} AssetDir("data/img") would return []string{"a.png", "b.png"} AssetDir("foo.txt") and AssetDir("notexist") would return an error AssetDir("") will return []string{"data"}.

func AssetInfo

func AssetInfo(name string) (os.FileInfo, error)

AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.

func AssetNames

func AssetNames() []string

AssetNames returns the names of the assets.

func MustAsset

func MustAsset(name string) []byte

MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.

func NewAddGCPBrokerCmd

func NewAddGCPBrokerCmd() *cobra.Command

func NewCheckDependenciesCmd

func NewCheckDependenciesCmd() *cobra.Command

func NewCreateGCPBrokerCmd

func NewCreateGCPBrokerCmd() *cobra.Command

NewCreateGCPBrokerCmd returns a cobra command which creates a new GCP service broker without adding it to the existing Kubernetes cluster.

func NewRemoveGCPBrokerCmd

func NewRemoveGCPBrokerCmd() *cobra.Command

func NewServiceCatalogInstallCmd

func NewServiceCatalogInstallCmd() *cobra.Command

func NewServiceCatalogUnInstallCmd

func NewServiceCatalogUnInstallCmd() *cobra.Command

func NewUpdateCmd

func NewUpdateCmd() *cobra.Command

func NewVersionCmd

func NewVersionCmd() *cobra.Command

func Pipeline

func Pipeline(cmds ...*exec.Cmd) (pipeLineOutput, collectedStandardError []byte, pipeLineError error)

Pipeline strings together the given exec.Cmd commands in a similar fashion to the Unix pipeline. Each command's standard output is connected to the standard input of the next command, and the output of the final command in the pipeline is returned, along with the collected standard error of all commands and the first error found (if any).

To provide input to the pipeline, assign an io.Reader to the first's Stdin.

func RestoreAsset

func RestoreAsset(dir, name string) error

RestoreAsset restores an asset under the given directory

func RestoreAssets

func RestoreAssets(dir, name string) error

RestoreAssets restores an asset under the given directory recursively

Types

type InstallConfig

type InstallConfig struct {
	// namespace for service catalog
	Namespace string

	// Version of Service Catalog
	Version string

	// APIServerServiceName refers to the API Server's service name
	APIServerServiceName string

	// whether to delete temporary files
	CleanupTempDirOnSuccess bool

	// generate YAML files for deployment, do not deploy them
	DryRun bool

	// storage options
	EtcdClusterSize        int32
	EtcdBackupStorageClass string
}

InstallConfig contains installation configuration.

Jump to

Keyboard shortcuts

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