Documentation ¶
Index ¶
- type ExecOptions
- type Kube
- func (k *Kube) CreateConfigMap(cm *api_core.ConfigMap) (*api_core.ConfigMap, error)
- func (k *Kube) CreateDeployment(depl *api_apps.Deployment) (*api_apps.Deployment, error)
- func (k *Kube) CreateEndpoint(endpoint *api_core.Endpoints) (*api_core.Endpoints, error)
- func (k *Kube) CreateIngress(ingress *api_extensions.Ingress) (*api_extensions.Ingress, error)
- func (k *Kube) CreateLimitRange(nsName string) error
- func (k *Kube) CreateNamespace(ns *api_core.Namespace) (*api_core.Namespace, error)
- func (k *Kube) CreateNamespaceQuota(nsName string, quota *api_core.ResourceQuota) (*api_core.ResourceQuota, error)
- func (k *Kube) CreatePersistentVolumeClaim(pvc *api_core.PersistentVolumeClaim) (*api_core.PersistentVolumeClaim, error)
- func (k *Kube) CreateSecret(secret *api_core.Secret) (*api_core.Secret, error)
- func (k *Kube) CreateService(svc *api_core.Service) (*api_core.Service, error)
- func (k *Kube) DeleteConfigMap(namespace, cm string) error
- func (k *Kube) DeleteDeployment(ns string, deployName string) error
- func (k *Kube) DeleteDeploymentSolution(ns string, solutionID string) error
- func (k *Kube) DeleteEndpoint(namespace, endpoint string) error
- func (k *Kube) DeleteIngress(ns string, ingress string) error
- func (k *Kube) DeleteNamespace(nsName string) error
- func (k *Kube) DeletePersistentVolumeClaim(ns string, pvc string) error
- func (k *Kube) DeletePod(ns string, po string) error
- func (k *Kube) DeleteSecret(nsName string, secretName string) error
- func (k *Kube) DeleteService(namespace, serviceName string) error
- func (k *Kube) Exec(ns string, po string, opt *ExecOptions) error
- func (k *Kube) GetConfigMap(namespace, cm string) (*api_core.ConfigMap, error)
- func (k *Kube) GetConfigMapList(namespace string) (*api_core.ConfigMapList, error)
- func (k *Kube) GetDeployment(ns string, deploy string) (*api_apps.Deployment, error)
- func (k *Kube) GetDeploymentList(ns string, owner string) (*api_apps.DeploymentList, error)
- func (k *Kube) GetDeploymentSolutionList(ns string, solutionID string) (*api_apps.DeploymentList, error)
- func (k *Kube) GetDockerSecretList(nsName string) (*api_core.SecretList, error)
- func (k *Kube) GetEndpoint(namespace, endpoint string) (*api_core.Endpoints, error)
- func (k *Kube) GetEndpointList(namespace string) (*api_core.EndpointsList, error)
- func (k *Kube) GetIngress(ns string, ingress string) (*api_extensions.Ingress, error)
- func (k *Kube) GetIngressList(ns string) (*api_extensions.IngressList, error)
- func (k *Kube) GetNamespace(nsName string) (*api_core.Namespace, error)
- func (k *Kube) GetNamespaceList(owner string) (*api_core.NamespaceList, error)
- func (k *Kube) GetNamespaceQuota(ns string) (*api_core.ResourceQuota, error)
- func (k *Kube) GetNamespaceQuotaList(owner string) (*api_core.ResourceQuotaList, error)
- func (k *Kube) GetPersistentVolumeClaim(ns string, pvcName string) (*api_core.PersistentVolumeClaim, error)
- func (k *Kube) GetPersistentVolumeClaimsList(ns string) (interface{}, error)
- func (k *Kube) GetPod(ns string, po string) (interface{}, error)
- func (k *Kube) GetPodList(ns string, owner string) (interface{}, error)
- func (k *Kube) GetPodListByDeployment(ns string, deploy string) (interface{}, error)
- func (k *Kube) GetPodLogs(ns string, po string, opt *LogOptions) (io.ReadCloser, error)
- func (k *Kube) GetSecret(nsName string, secretName string) (*api_core.Secret, error)
- func (k *Kube) GetService(namespace, serviceName string) (*api_core.Service, error)
- func (k *Kube) GetServiceList(nsname string) (*api_core.ServiceList, error)
- func (k *Kube) GetServiceSolutionList(ns string, solutionID string) (*api_core.ServiceList, error)
- func (k *Kube) GetStorageClassesList() (*api_storage.StorageClassList, error)
- func (k *Kube) GetTLSSecretList(nsName string) (*api_core.SecretList, error)
- func (k *Kube) RegisterClient(cfgpath string) error
- func (k *Kube) UpdateConfigMap(cm *api_core.ConfigMap) (*api_core.ConfigMap, error)
- func (k *Kube) UpdateDeployment(depl *api_apps.Deployment) (*api_apps.Deployment, error)
- func (k *Kube) UpdateEndpoint(endpoint *api_core.Endpoints) (*api_core.Endpoints, error)
- func (k *Kube) UpdateIngress(ingress *api_extensions.Ingress) (*api_extensions.Ingress, error)
- func (k *Kube) UpdateNamespaceQuota(nsName string, quota *api_core.ResourceQuota) (*api_core.ResourceQuota, error)
- func (k *Kube) UpdatePersistentVolumeClaim(pvc *api_core.PersistentVolumeClaim) (*api_core.PersistentVolumeClaim, error)
- func (k *Kube) UpdateSecret(secret *api_core.Secret) (*api_core.Secret, error)
- func (k *Kube) UpdateService(service *api_core.Service) (*api_core.Service, error)
- type LogOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecOptions ¶
type ExecOptions struct { Container string Command []string Stdin io.Reader Stdout, Stderr io.Writer TTY bool TerminalSizeQueue remotecommand.TerminalSizeQueue }
type Kube ¶
type Kube struct { *kubernetes.Clientset // contains filtered or unexported fields }
Kube is struct for kubernetes client
func (*Kube) CreateConfigMap ¶
CreateConfigMap creates config map
func (*Kube) CreateDeployment ¶
func (k *Kube) CreateDeployment(depl *api_apps.Deployment) (*api_apps.Deployment, error)
CreateDeployment creates deployment
func (*Kube) CreateEndpoint ¶
CreateEndpoint creates endpoint
func (*Kube) CreateIngress ¶
func (k *Kube) CreateIngress(ingress *api_extensions.Ingress) (*api_extensions.Ingress, error)
CreateIngress creates ingress
func (*Kube) CreateLimitRange ¶ added in v1.0.7
CreateNamespaceQuota creates namespace quota
func (*Kube) CreateNamespace ¶
CreateNamespace creates namespace
func (*Kube) CreateNamespaceQuota ¶
func (k *Kube) CreateNamespaceQuota(nsName string, quota *api_core.ResourceQuota) (*api_core.ResourceQuota, error)
CreateNamespaceQuota creates namespace quota
func (*Kube) CreatePersistentVolumeClaim ¶
func (k *Kube) CreatePersistentVolumeClaim(pvc *api_core.PersistentVolumeClaim) (*api_core.PersistentVolumeClaim, error)
CreatePersistentVolumeClaim creates pvc
func (*Kube) CreateSecret ¶
CreateSecret creates secret
func (*Kube) CreateService ¶
CreateService creates service
func (*Kube) DeleteConfigMap ¶
DeleteConfigMap deletes config map
func (*Kube) DeleteDeployment ¶
DeleteDeployment deletes deployment
func (*Kube) DeleteDeploymentSolution ¶ added in v1.0.5
DeleteDeployment deletes deployments
func (*Kube) DeleteEndpoint ¶
DeleteEndpoint deletes endpoint
func (*Kube) DeleteIngress ¶
DeleteIngress deletes ingress
func (*Kube) DeleteNamespace ¶
DeleteNamespace deletes namespace
func (*Kube) DeletePersistentVolumeClaim ¶
DeletePersistentVolumeClaim deletes pvc
func (*Kube) DeleteSecret ¶
DeleteSecret deletes secret
func (*Kube) DeleteService ¶
DeleteService deletes service
func (*Kube) GetConfigMap ¶
GetConfigMap returns config map
func (*Kube) GetConfigMapList ¶
func (k *Kube) GetConfigMapList(namespace string) (*api_core.ConfigMapList, error)
GetConfigMapList returns config maps list
func (*Kube) GetDeployment ¶
GetDeployment returns deployment
func (*Kube) GetDeploymentList ¶
GetDeploymentList returns deployments list
func (*Kube) GetDeploymentSolutionList ¶ added in v1.0.5
func (*Kube) GetDockerSecretList ¶ added in v1.0.5
func (k *Kube) GetDockerSecretList(nsName string) (*api_core.SecretList, error)
GetDockerSecretList returns Docker secrets list
func (*Kube) GetEndpoint ¶
GetEndpoint returns endpoint
func (*Kube) GetEndpointList ¶
func (k *Kube) GetEndpointList(namespace string) (*api_core.EndpointsList, error)
GetEndpointList returns endpoints list
func (*Kube) GetIngress ¶
GetIngress returns ingress
func (*Kube) GetIngressList ¶
func (k *Kube) GetIngressList(ns string) (*api_extensions.IngressList, error)
GetIngressList returns ingresses list
func (*Kube) GetNamespace ¶
GetNamespace returns namespace
func (*Kube) GetNamespaceList ¶ added in v1.0.5
func (k *Kube) GetNamespaceList(owner string) (*api_core.NamespaceList, error)
GetNamespaceList returns namespaces list
func (*Kube) GetNamespaceQuota ¶
func (k *Kube) GetNamespaceQuota(ns string) (*api_core.ResourceQuota, error)
GetNamespaceQuota returns namespace (quota)
func (*Kube) GetNamespaceQuotaList ¶
func (k *Kube) GetNamespaceQuotaList(owner string) (*api_core.ResourceQuotaList, error)
GetNamespaceQuotaList returns namespaces (quotas) list
func (*Kube) GetPersistentVolumeClaim ¶
func (k *Kube) GetPersistentVolumeClaim(ns string, pvcName string) (*api_core.PersistentVolumeClaim, error)
GetPersistentVolumeClaim returns pvc
func (*Kube) GetPersistentVolumeClaimsList ¶
GetPersistentVolumeClaimsList returns pvc list
func (*Kube) GetPodList ¶
GetPodList returns pods list
func (*Kube) GetPodListByDeployment ¶ added in v1.0.5
func (*Kube) GetPodLogs ¶
func (k *Kube) GetPodLogs(ns string, po string, opt *LogOptions) (io.ReadCloser, error)
GetPodLogs attaches client to pod log
func (*Kube) GetService ¶
GetService returns service
func (*Kube) GetServiceList ¶
func (k *Kube) GetServiceList(nsname string) (*api_core.ServiceList, error)
GetServiceList returns services list
func (*Kube) GetServiceSolutionList ¶ added in v1.0.5
func (*Kube) GetStorageClassesList ¶ added in v1.0.6
func (k *Kube) GetStorageClassesList() (*api_storage.StorageClassList, error)
func (*Kube) GetTLSSecretList ¶ added in v1.0.5
func (k *Kube) GetTLSSecretList(nsName string) (*api_core.SecretList, error)
GetTLSSecretList returns TLS secrets list
func (*Kube) RegisterClient ¶
RegisterClient creates kubernetes client
func (*Kube) UpdateConfigMap ¶
UpdateConfigMap updates config map
func (*Kube) UpdateDeployment ¶
func (k *Kube) UpdateDeployment(depl *api_apps.Deployment) (*api_apps.Deployment, error)
UpdateDeployment updates deployment
func (*Kube) UpdateEndpoint ¶
UpdateEndpoint updates endpoint
func (*Kube) UpdateIngress ¶
func (k *Kube) UpdateIngress(ingress *api_extensions.Ingress) (*api_extensions.Ingress, error)
UpdateIngress updates ingress
func (*Kube) UpdateNamespaceQuota ¶
func (k *Kube) UpdateNamespaceQuota(nsName string, quota *api_core.ResourceQuota) (*api_core.ResourceQuota, error)
UpdateNamespaceQuota updates namespace quota
func (*Kube) UpdatePersistentVolumeClaim ¶
func (k *Kube) UpdatePersistentVolumeClaim(pvc *api_core.PersistentVolumeClaim) (*api_core.PersistentVolumeClaim, error)
UpdatePersistentVolumeClaim updates pvc
func (*Kube) UpdateSecret ¶
UpdateSecret updates secret