Documentation ¶
Index ¶
- type Client
- func (c *Client) CreateConfigMap(namespace string, cm *corev1.ConfigMap) (*corev1.ConfigMap, error)
- func (c *Client) CreateIngress(namespace string, ing *extensionsv1.Ingress) (*extensionsv1.Ingress, error)
- func (c *Client) CreateJob(namespace string, jobData *batchv1.Job) (*batchv1.Job, error)
- func (c *Client) CreatePod(namespace string, pod *corev1.Pod) (*corev1.Pod, error)
- func (c *Client) CreateSecret(namespace string, secret *corev1.Secret) (*corev1.Secret, error)
- func (c *Client) CreateService(namespace string, svc *corev1.Service) (*corev1.Service, error)
- func (c *Client) DeleteConfigMap(namespace, name string) error
- func (c *Client) DeleteIngress(namespace, name string) error
- func (c *Client) DeleteSecret(namespace, name string) error
- func (c *Client) DeleteService(namespace, name string) error
- func (c *Client) GetClusterRoles() (*rbacv1.ClusterRoleList, error)
- func (c *Client) GetConfigMap(namespace, name string) (*corev1.ConfigMap, error)
- func (c *Client) GetConfigMaps(namespace string) (*corev1.ConfigMapList, error)
- func (c *Client) GetCronJobs(namespace string) (*v1beta1.CronJobList, error)
- func (c *Client) GetDaemonSets(namespace string) (*v1.DaemonSetList, error)
- func (c *Client) GetDeployment(namespace, name string) (*v1.Deployment, error)
- func (c *Client) GetDeployments(namespace string) ([]v1.Deployment, error)
- func (c *Client) GetEndpoints(namespace string) (*corev1.EndpointsList, error)
- func (c *Client) GetEvent(namespace, name string) (*corev1.Event, error)
- func (c *Client) GetEvents(namespace string) (*corev1.EventList, error)
- func (c *Client) GetIngress(namespace, name string) (*extensionsv1.Ingress, error)
- func (c *Client) GetIngresses(namespace string) (*extensionsv1.IngressList, error)
- func (c *Client) GetJob(namespace, name string) (*batchv1.Job, error)
- func (c *Client) GetJobs(namespace string) (*batchv1.JobList, error)
- func (c *Client) GetMetrics() (*mv1beta1.NodeMetricsList, error)
- func (c *Client) GetNamespaces() (*corev1.NamespaceList, error)
- func (c *Client) GetNodes() (*corev1.NodeList, error)
- func (c *Client) GetPVCs(namespace string) (*corev1.PersistentVolumeClaimList, error)
- func (c *Client) GetPVs() (*corev1.PersistentVolumeList, error)
- func (c *Client) GetPod(namespace, name string) (*corev1.Pod, error)
- func (c *Client) GetPods(namespace string) (*corev1.PodList, error)
- func (c *Client) GetReplicationControllers(namespace string) ([]corev1.ReplicationController, error)
- func (c *Client) GetRoles(namespace string) (*rbacv1.RoleList, error)
- func (c *Client) GetSecret(namespace, name string) (*corev1.Secret, error)
- func (c *Client) GetSecrets(namespace string) (*corev1.SecretList, error)
- func (c *Client) GetService(namespace, name string) (*corev1.Service, error)
- func (c *Client) GetServiceAccount(namespace, name string) (*corev1.ServiceAccount, error)
- func (c *Client) GetServiceAccounts(namespace string) (*corev1.ServiceAccountList, error)
- func (c *Client) GetServices(namespace string) (*corev1.ServiceList, error)
- func (c *Client) GetStatefulSets(namespace string) (*v1.StatefulSetList, error)
- func (c *Client) GetVersion() (string, string, error)
- func (c *Client) PatchConfigMap(namespace, name string, data []byte) (*corev1.ConfigMap, error)
- func (c *Client) PatchSecret(namespace, name string, data []byte) (*corev1.Secret, error)
- func (c *Client) UpdateConfigMap(namespace string, cm *corev1.ConfigMap) (*corev1.ConfigMap, error)
- func (c *Client) UpdateSecret(namespace string, secret *corev1.Secret) (*corev1.Secret, error)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { *kubernetes.Clientset // contains filtered or unexported fields }
func (*Client) CreateConfigMap ¶
func (*Client) CreateIngress ¶
func (c *Client) CreateIngress(namespace string, ing *extensionsv1.Ingress) (*extensionsv1.Ingress, error)
func (*Client) CreateSecret ¶
CreateSecret Create secret
func (*Client) CreateService ¶
func (*Client) DeleteConfigMap ¶
func (*Client) DeleteIngress ¶
func (*Client) DeleteSecret ¶
DeleteSecret Delete secret
func (*Client) DeleteService ¶
func (*Client) GetClusterRoles ¶
func (c *Client) GetClusterRoles() (*rbacv1.ClusterRoleList, error)
func (*Client) GetConfigMap ¶
GetConfigMap get cms
func (*Client) GetConfigMaps ¶
func (c *Client) GetConfigMaps(namespace string) (*corev1.ConfigMapList, error)
func (*Client) GetCronJobs ¶
func (c *Client) GetCronJobs(namespace string) (*v1beta1.CronJobList, error)
func (*Client) GetDaemonSets ¶
func (c *Client) GetDaemonSets(namespace string) (*v1.DaemonSetList, error)
func (*Client) GetDeployment ¶
func (c *Client) GetDeployment(namespace, name string) (*v1.Deployment, error)
GetDeployment get deployments
func (*Client) GetDeployments ¶
func (c *Client) GetDeployments(namespace string) ([]v1.Deployment, error)
func (*Client) GetEndpoints ¶
func (c *Client) GetEndpoints(namespace string) (*corev1.EndpointsList, error)
func (*Client) GetIngress ¶
func (c *Client) GetIngress(namespace, name string) (*extensionsv1.Ingress, error)
GetIngress return ingress
func (*Client) GetIngresses ¶
func (c *Client) GetIngresses(namespace string) (*extensionsv1.IngressList, error)
GetIngresses return ingress list
func (*Client) GetMetrics ¶
func (c *Client) GetMetrics() (*mv1beta1.NodeMetricsList, error)
GetMetrics get cluster metrics.
func (*Client) GetNamespaces ¶
func (c *Client) GetNamespaces() (*corev1.NamespaceList, error)
GetNamespaces get namespaces
func (*Client) GetPVCs ¶
func (c *Client) GetPVCs(namespace string) (*corev1.PersistentVolumeClaimList, error)
GetPVCs Get PVC list
func (*Client) GetPVs ¶
func (c *Client) GetPVs() (*corev1.PersistentVolumeList, error)
GetPVs Get PV list
func (*Client) GetReplicationControllers ¶
func (c *Client) GetReplicationControllers(namespace string) ([]corev1.ReplicationController, error)
func (*Client) GetSecrets ¶
func (c *Client) GetSecrets(namespace string) (*corev1.SecretList, error)
GetSecrets get secrets
func (*Client) GetService ¶
func (*Client) GetServiceAccount ¶
func (c *Client) GetServiceAccount(namespace, name string) (*corev1.ServiceAccount, error)
GetServiceAccount get serviceAccount by name
func (*Client) GetServiceAccounts ¶
func (c *Client) GetServiceAccounts(namespace string) (*corev1.ServiceAccountList, error)
GetServiceAccounts get serviceAccounts
func (*Client) GetServices ¶
func (c *Client) GetServices(namespace string) (*corev1.ServiceList, error)
GetServices get services
func (*Client) GetStatefulSets ¶
func (c *Client) GetStatefulSets(namespace string) (*v1.StatefulSetList, error)
func (*Client) GetVersion ¶
Cluster resource GetVersion get server version
func (*Client) PatchConfigMap ¶
func (*Client) PatchSecret ¶
func (*Client) UpdateConfigMap ¶
Click to show internal directories.
Click to hide internal directories.