Documentation ¶
Index ¶
- Variables
- func Asset(name string) ([]byte, error)
- func AssetDir(name string) ([]string, error)
- func AssetInfo(name string) (os.FileInfo, error)
- func AssetNames() []string
- func Close(c io.Closer)
- func Execute()
- func MustAsset(name string) []byte
- func RestoreAsset(dir, name string) error
- func RestoreAssets(dir, name string) error
- type DockerClientConfig
- func (conf *DockerClientConfig) GetDefaultDockerAPIVersion() string
- func (conf *DockerClientConfig) GetDefaultHost() string
- func (conf *DockerClientConfig) GetDefaultTLSCACertificate() string
- func (conf *DockerClientConfig) GetDefaultTLSCertificate() string
- func (conf *DockerClientConfig) GetDefaultTLSCertificatePath() string
- func (conf *DockerClientConfig) GetDefaultTLSKey() string
- func (conf *DockerClientConfig) GetDefaultTLSVerify() bool
- type HelpType
Constants ¶
This section is empty.
Variables ¶
var ClusterConfigPath string
ClusterConfigPath to be used by subcommands using --config
var DockerAPIVersion = client.DefaultVersion
DockerAPIVersion defines the docker api version used.
var ExitCode int
ExitCode is used by commands and subcommands to write out main's exitcode
var KrakenGitCommit string
KrakenGitCommit refers to the Git Commit sha
var KrakenMajorMinorPatch string
KrakenMajorMinorPatch refers to the version
var KrakenType = "alpha"
KrakenType refers to the release type
var KrakenlibTag string
KrakenlibTag this is set via linker flag
var RootCmd = &cobra.Command{ Use: "kraken", Short: "Kraken is an orchestration and cluster level management system for Kubernetes", Long: "Kraken is an orchestration and cluster level management system for Kubernetes that creates a production scale cluster on a range of platforms using its default settings.", PreRun: func(cmd *cobra.Command, args []string) { if _, err := os.Stat(outputLocation); os.IsNotExist(err) { os.Mkdir(outputLocation, 0755) } }, SilenceErrors: true, }
RootCmd represents the base command when called without any subcommands
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 Close ¶
Close can throw an err, so to defer to it is risky, review http://www.blevesearch.com/news/Deferred-Cleanup,-Checking-Errors,-and-Potential-Problems/
func Execute ¶
func Execute()
Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func MustAsset ¶
MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.
func RestoreAsset ¶
RestoreAsset restores an asset under the given directory
func RestoreAssets ¶
RestoreAssets restores an asset under the given directory recursively
Types ¶
type DockerClientConfig ¶
type DockerClientConfig struct { DockerHost string DockerAPIVersion string TLSEnabled bool TLSVerify bool TLSCACertificate string TLSCertificate string TLSKey string }
DockerClientConfig provides a simple encapsulation of parameters to construct the Docker API client
func (*DockerClientConfig) GetDefaultDockerAPIVersion ¶
func (conf *DockerClientConfig) GetDefaultDockerAPIVersion() string
GetDefaultDockerAPIVersion produces either the environment-provided Docker API version, or a sensible default.
func (*DockerClientConfig) GetDefaultHost ¶
func (conf *DockerClientConfig) GetDefaultHost() string
GetDefaultHost produces either the environment-provided host, or a sensible default.
func (*DockerClientConfig) GetDefaultTLSCACertificate ¶
func (conf *DockerClientConfig) GetDefaultTLSCACertificate() string
GetDefaultTLSCACertificate produces the path to the environment-configured CA certificate for TLS verification.
func (*DockerClientConfig) GetDefaultTLSCertificate ¶
func (conf *DockerClientConfig) GetDefaultTLSCertificate() string
GetDefaultTLSCertificate produces the path to the environment-configured TLS certificate.
func (*DockerClientConfig) GetDefaultTLSCertificatePath ¶
func (conf *DockerClientConfig) GetDefaultTLSCertificatePath() string
GetDefaultTLSCertificatePath produces either the environment-provided path to TLS certificates, or a sensible default.
func (*DockerClientConfig) GetDefaultTLSKey ¶
func (conf *DockerClientConfig) GetDefaultTLSKey() string
GetDefaultTLSKey produces the path to the environment-configured TLS key.
func (*DockerClientConfig) GetDefaultTLSVerify ¶
func (conf *DockerClientConfig) GetDefaultTLSVerify() bool
GetDefaultTLSVerify indicates whether TLS is enabled by the current environment.
Source Files ¶
- bindata.go
- cluster.go
- cluster_down.go
- cluster_helper.go
- cluster_info.go
- cluster_up.go
- cluster_update.go
- container_helper.go
- docker_client_config.go
- docs.go
- generate.go
- help.go
- release_helper.go
- release_kraken.go
- root.go
- stages.go
- test_helper.go
- tool.go
- tool_helm.go
- tool_kubectl.go
- tool_ssh.go
- tool_ssh_update.go
- topic.go
- version.go