Documentation ¶
Index ¶
- func InClusterConfig() (*rest.Config, error)
- type Kube
- func (k *Kube) CreateConfigMap(namespace string, cm *apiv1.ConfigMap) (*apiv1.ConfigMap, error)
- func (k *Kube) CreatePod(namespace string, pod *apiv1.Pod) (*apiv1.Pod, error)
- func (k *Kube) CreateSecret(namespace string, secret *apiv1.Secret) (*apiv1.Secret, error)
- func (k *Kube) CreateService(namespace string, service *apiv1.Service) (*apiv1.Service, error)
- func (k *Kube) DeleteAllPodsMatchingLabel(namespace string, label string) error
- func (k *Kube) DeleteAndCreatePod(namespace string, podSpec *apiv1.Pod, label string) (*apiv1.Pod, error)
- func (k *Kube) DeleteAndCreateSecret(namespace string, secret *apiv1.Secret) (*apiv1.Secret, error)
- func (k *Kube) DeleteDeployment(namespace string, depName string) error
- func (k *Kube) DeletePod(namespace string, name string) error
- func (k *Kube) DeleteSecret(namespace string, secretName string) error
- func (k *Kube) DeleteService(namespace, name string) error
- func (k *Kube) GetConfigMap(namespace, name string) (*apiv1.ConfigMap, error)
- func (k *Kube) GetNamespaces() (*apiv1.NamespaceList, error)
- func (k *Kube) GetPodsByLabel(namespace, name string) (*apiv1.Pod, error)
- func (k *Kube) GetPort(namespace, name string) (int32, error)
- func (k *Kube) GetPorts(namespace, name string) ([]apiv1.ServicePort, error)
- func (k *Kube) GetSecret(namespace string, name string) (*apiv1.Secret, error)
- func (k *Kube) GetService(namespace, name string) (*apiv1.Service, error)
- func (k *Kube) GetVersion() (*version.Info, error)
- func (k *Kube) UpdateSecret(namespace, name, path string, data []byte) (*apiv1.Secret, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InClusterConfig ¶
Types ¶
type Kube ¶
type Kube struct {
// contains filtered or unexported fields
}
func (*Kube) CreateConfigMap ¶
func (*Kube) CreateSecret ¶
func (*Kube) CreateService ¶
func (*Kube) DeleteAllPodsMatchingLabel ¶
func (*Kube) DeleteAndCreatePod ¶
func (*Kube) DeleteAndCreateSecret ¶
func (*Kube) DeleteDeployment ¶
func (*Kube) DeleteService ¶
func (*Kube) GetConfigMap ¶
func (*Kube) GetNamespaces ¶
func (k *Kube) GetNamespaces() (*apiv1.NamespaceList, error)
func (*Kube) GetPodsByLabel ¶
func (*Kube) GetPorts ¶
func (k *Kube) GetPorts(namespace, name string) ([]apiv1.ServicePort, error)
func (*Kube) GetVersion ¶
GetVersion returns back kubernetes server version
Click to show internal directories.
Click to hide internal directories.