Documentation ¶
Index ¶
- type KubeController
- func (kc *KubeController) CreateNamespace(namespace string) error
- func (kc *KubeController) CreateNetworkPolicy(namespace string) error
- func (kc *KubeController) CreateResourceQuota(namespace string, cpu int64, memory int64, storage int64) error
- func (kc *KubeController) CreateRole(namespace string) error
- func (kc *KubeController) CreateRoleBinding(namespace string) error
- func (kc *KubeController) CreateServiceAccount(namespace string) error
- func (kc *KubeController) DeleteNamespace(namespace string) error
- func (kc *KubeController) GenerateKubeConfiguration(namespace string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubeController ¶
type KubeController struct {
// contains filtered or unexported fields
}
KubeController helps to manage interactions with the Kubernetes API server
func NewKubeController ¶
func NewKubeController(path string) *KubeController
NewKubeController is the constructor for KubeController
func (*KubeController) CreateNamespace ¶
func (kc *KubeController) CreateNamespace(namespace string) error
CreateNamespace creates a namespace in the cluster
func (*KubeController) CreateNetworkPolicy ¶
func (kc *KubeController) CreateNetworkPolicy(namespace string) error
CreateNetworkPolicy creates a network policy for the specified namespace in the cluster
func (*KubeController) CreateResourceQuota ¶
func (kc *KubeController) CreateResourceQuota(namespace string, cpu int64, memory int64, storage int64) error
CreateResourceQuota creates a resource quota for the specified namespace in the cluster
func (*KubeController) CreateRole ¶
func (kc *KubeController) CreateRole(namespace string) error
CreateRole creates a role for the specified namespace in the cluster
func (*KubeController) CreateRoleBinding ¶
func (kc *KubeController) CreateRoleBinding(namespace string) error
CreateRoleBinding creates a role binding for the specified namespace in the cluster
func (*KubeController) CreateServiceAccount ¶
func (kc *KubeController) CreateServiceAccount(namespace string) error
CreateServiceAccount creates a service account for the specified namespace in the cluster
func (*KubeController) DeleteNamespace ¶
func (kc *KubeController) DeleteNamespace(namespace string) error
DeleteNamespace deletes a namespace from the cluster
func (*KubeController) GenerateKubeConfiguration ¶
func (kc *KubeController) GenerateKubeConfiguration(namespace string) (string, error)
GenerateKubeConfiguration generates a kube configuration file