Documentation ¶
Index ¶
- func CreateDeployment(configPath string, deploymentName string, image string, replicas int32)
- func DeleteDeployment(configPath string, deploymentName string)
- func UpdateImage(configPath string, deploymentName string, image string)
- func UpdateReplicas(configPath string, deploymentName string, replicas int32)
- type Cluster
- type ClusterConfig
- type Config
- type Context
- type ContextConfig
- type User
- type UserCred
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDeployment ¶
func DeleteDeployment ¶
func UpdateImage ¶
func UpdateReplicas ¶
Types ¶
type Cluster ¶
type Cluster struct { Name string ClusterConfig ClusterConfig `yaml:"cluster"` }
Cluster configs
type ClusterConfig ¶
type Config ¶
type Config struct { ApiVersion string `yaml:"apiVersion"` Kind string `yaml:"kind"` Clusters []Cluster `yaml:"clusters"` Users []User `yaml:"users"` Contexts []Context `yaml: "contexts"` }
type Context ¶
type Context struct { Name string ContextConfig ContextConfig `yaml:"context,omitempty"` }
Context configs
type ContextConfig ¶
Click to show internal directories.
Click to hide internal directories.