Documentation ¶
Index ¶
- Constants
- func Asset(name string) ([]byte, error)
- func AssetDir(name string) ([]string, error)
- func AssetInfo(name string) (os.FileInfo, error)
- func AssetNames() []string
- func MustAsset(name string) []byte
- func NewAddGCPBrokerCmd() *cobra.Command
- func NewCheckDependenciesCmd() *cobra.Command
- func NewCreateGCPBrokerCmd() *cobra.Command
- func NewRemoveGCPBrokerCmd() *cobra.Command
- func NewServiceCatalogInstallCmd() *cobra.Command
- func NewServiceCatalogUnInstallCmd() *cobra.Command
- func NewUpdateCmd() *cobra.Command
- func NewVersionCmd() *cobra.Command
- func Pipeline(cmds ...*exec.Cmd) (pipeLineOutput, collectedStandardError []byte, pipeLineError error)
- func RestoreAsset(dir, name string) error
- func RestoreAssets(dir, name string) error
- type InstallConfig
Constants ¶
const ( GcloudBinaryName = "gcloud" KubectlBinaryName = "kubectl" CfsslBinaryName = "cfssl" CfssljsonBinaryName = "cfssljson" )
Binary names that we depend on.
Variables ¶
This section is empty.
Functions ¶
func Asset ¶
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 ¶
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 ¶
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 MustAsset ¶
MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.
func NewAddGCPBrokerCmd ¶
func NewCheckDependenciesCmd ¶
func NewCreateGCPBrokerCmd ¶
NewCreateGCPBrokerCmd returns a cobra command which creates a new GCP service broker without adding it to the existing Kubernetes cluster.
func NewRemoveGCPBrokerCmd ¶
func NewUpdateCmd ¶
func NewVersionCmd ¶
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 ¶
RestoreAsset restores an asset under the given directory
func RestoreAssets ¶
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.