Documentation
¶
Index ¶
- Constants
- func CheckError(err error)
- func CheckRequiredFlags(c *cli.Context, flags []string)
- func FileExists(name string) bool
- func GetMD5Hash(text string) string
- func InitializeConfig(c *cli.Context) error
- func Keys(m map[string]string) []string
- func NormalizeName(name string) (string, error)
- func Unzip(src, dest string) error
- func Values(m map[string]string) []string
- type Cluster
- type ClusterWrap
- type Config
- type Connection
- type Context
- type ContextWrap
- type KubeConfig
- type User
- type UserWrap
Constants ¶
View Source
const VERSION = "0.0.1"
Variables ¶
This section is empty.
Functions ¶
func CheckError ¶
func CheckError(err error)
func CheckRequiredFlags ¶
CheckRequiredFlags checks for required flags, and show usage if requirements not met
func FileExists ¶
func GetMD5Hash ¶
func InitializeConfig ¶
func NormalizeName ¶
NormalizeName normalizes a kubeware name to fit k8s restrictions for label values
Types ¶
type ClusterWrap ¶
type Config ¶
type Config struct { Connection Connection Path string }
Config for kdeploy
func PreReadConfig ¶
func PreReadConfig() *Config
PreReadConfig reads configuration before full arguments
func ReadConfig ¶
func ReadConfigFrom ¶
type Connection ¶
Connection configuration
type Context ¶
type Context struct { Cluster string `yaml:"cluster"` User string `yaml:"user"` Namespace string `yaml:"namespace,omitempty"` }
Context is a tuple of references to a cluster (how do I communicate with a kubernetes cluster), a user (how do I identify myself), and a namespace (what subset of resources do I want to work with)
type ContextWrap ¶
type KubeConfig ¶
type KubeConfig struct { Kind string `yaml:"kind,omitempty"` APIVersion string `yaml:"apiVersion,omitempty"` Clusters []ClusterWrap `yaml:"clusters,omitempty"` Users []UserWrap `yaml:"users,omitempty"` Contexts []ContextWrap `yaml:"contexts,omitempty"` CurrentContext string `yaml:"current-context,omitempty"` }
KubeConfig holds the information needed to build connect to remote kubernetes clusters as a given user
Click to show internal directories.
Click to hide internal directories.