connector

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package connector regroups all the basic CRUD functions to access the objects in the cluster

Package connector regroups all the basic CRUD functions to access the objects in the cluster

Code generated by go generate; DO NOT EDIT.

This file was generated by gen_connector_cluster.go at 2019-06-17 12:12:57.965410789 +0300 EEST m=+0.001586556

Package connector regroups all the basic CRUD functions to access the objects in the cluster

Code generated by go generate; DO NOT EDIT.

This file was generated by gen_connector_cluster_metrics.go at 2019-06-17 12:12:58.179171776 +0300 EEST m=+0.000806133

Package connector regroups all the basic CRUD functions to access the objects in the cluster

Code generated by go generate; DO NOT EDIT.

This file was generated by gen_connector_namespace.go at 2019-06-17 12:12:58.383552189 +0300 EEST m=+0.001373594

Package connector regroups all the basic CRUD functions to access the objects in the cluster

Code generated by go generate; DO NOT EDIT.

This file was generated by gen_connector_namespace_metrics.go at 2019-06-17 12:12:58.579992379 +0300 EEST m=+0.000831968

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateClusterRole

func CreateClusterRole(clientset *kubernetes.Clientset, clusterRole *rbacv1.ClusterRole) (*rbacv1.ClusterRole, error)

CreateClusterRole creates the ClusterRole with the given model.

func CreateClusterRoleBinding

func CreateClusterRoleBinding(clientset *kubernetes.Clientset, clusterRoleBinding *rbacv1.ClusterRoleBinding) (*rbacv1.ClusterRoleBinding, error)

CreateClusterRoleBinding creates the ClusterRoleBinding with the given model.

func CreateConfigMap

func CreateConfigMap(clientset *kubernetes.Clientset, namespace string, configMap *corev1.ConfigMap) (*corev1.ConfigMap, error)

CreateConfigMap creates the ConfigMap with the given model. An optional namespace can be given, if none is given the operation takes place in the default name space.

func CreateCronJob

func CreateCronJob(clientset *kubernetes.Clientset, namespace string, cronJob *batchv1beta1.CronJob) (*batchv1beta1.CronJob, error)

CreateCronJob creates the CronJob with the given model. An optional namespace can be given, if none is given the operation takes place in the default name space.

func CreateDaemonSet

func CreateDaemonSet(clientset *kubernetes.Clientset, namespace string, daemonSet *appsv1.DaemonSet) (*appsv1.DaemonSet, error)

CreateDaemonSet creates the DaemonSet with the given model. An optional namespace can be given, if none is given the operation takes place in the default name space.

func CreateDeployment

func CreateDeployment(clientset *kubernetes.Clientset, namespace string, deployment *appsv1.Deployment) (*appsv1.Deployment, error)

CreateDeployment creates the Deployment with the given model. An optional namespace can be given, if none is given the operation takes place in the default name space.

func CreateJob

func CreateJob(clientset *kubernetes.Clientset, namespace string, job *batchv1.Job) (*batchv1.Job, error)

CreateJob creates the Job with the given model. An optional namespace can be given, if none is given the operation takes place in the default name space.

func CreateNamespace

func CreateNamespace(clientset *kubernetes.Clientset, namespace *corev1.Namespace) (*corev1.Namespace, error)

CreateNamespace creates the Namespace with the given model.

func CreateNetworkPolicy

func CreateNetworkPolicy(clientset *kubernetes.Clientset, namespace string, networkPolicy *networkingv1.NetworkPolicy) (*networkingv1.NetworkPolicy, error)

CreateNetworkPolicy creates the NetworkPolicy with the given model. An optional namespace can be given, if none is given the operation takes place in the default name space.

func CreateNode

func CreateNode(clientset *kubernetes.Clientset, node *corev1.Node) (*corev1.Node, error)

CreateNode creates the Node with the given model.

func CreatePersistentVolume

func CreatePersistentVolume(clientset *kubernetes.Clientset, persistentVolume *corev1.PersistentVolume) (*corev1.PersistentVolume, error)

CreatePersistentVolume creates the PersistentVolume with the given model.

func CreatePersistentVolumeClaim

func CreatePersistentVolumeClaim(clientset *kubernetes.Clientset, namespace string, persistentVolumeClaim *corev1.PersistentVolumeClaim) (*corev1.PersistentVolumeClaim, error)

CreatePersistentVolumeClaim creates the PersistentVolumeClaim with the given model. An optional namespace can be given, if none is given the operation takes place in the default name space.

func CreatePod

func CreatePod(clientset *kubernetes.Clientset, namespace string, pod *corev1.Pod) (*corev1.Pod, error)

CreatePod creates the Pod with the given model. An optional namespace can be given, if none is given the operation takes place in the default name space.

func CreateReplicaSet

func CreateReplicaSet(clientset *kubernetes.Clientset, namespace string, replicaSet *appsv1.ReplicaSet) (*appsv1.ReplicaSet, error)

CreateReplicaSet creates the ReplicaSet with the given model. An optional namespace can be given, if none is given the operation takes place in the default name space.

func CreateReplicationController

func CreateReplicationController(clientset *kubernetes.Clientset, namespace string, replicationController *corev1.ReplicationController) (*corev1.ReplicationController, error)

CreateReplicationController creates the ReplicationController with the given model. An optional namespace can be given, if none is given the operation takes place in the default name space.

func CreateRole

func CreateRole(clientset *kubernetes.Clientset, namespace string, role *rbacv1.Role) (*rbacv1.Role, error)

CreateRole creates the Role with the given model. An optional namespace can be given, if none is given the operation takes place in the default name space.

func CreateRoleBinding

func CreateRoleBinding(clientset *kubernetes.Clientset, namespace string, roleBinding *rbacv1.RoleBinding) (*rbacv1.RoleBinding, error)

CreateRoleBinding creates the RoleBinding with the given model. An optional namespace can be given, if none is given the operation takes place in the default name space.

func CreateSecret

func CreateSecret(clientset *kubernetes.Clientset, namespace string, secret *corev1.Secret) (*corev1.Secret, error)

CreateSecret creates the Secret with the given model. An optional namespace can be given, if none is given the operation takes place in the default name space.

func CreateService

func CreateService(clientset *kubernetes.Clientset, namespace string, service *corev1.Service) (*corev1.Service, error)

CreateService creates the Service with the given model. An optional namespace can be given, if none is given the operation takes place in the default name space.

func CreateServiceAccount

func CreateServiceAccount(clientset *kubernetes.Clientset, namespace string, serviceAccount *corev1.ServiceAccount) (*corev1.ServiceAccount, error)

CreateServiceAccount creates the ServiceAccount with the given model. An optional namespace can be given, if none is given the operation takes place in the default name space.

func CreateStatefulSet

func CreateStatefulSet(clientset *kubernetes.Clientset, namespace string, statefulSet *appsv1.StatefulSet) (*appsv1.StatefulSet, error)

CreateStatefulSet creates the StatefulSet with the given model. An optional namespace can be given, if none is given the operation takes place in the default name space.

func CreateStorageClass

func CreateStorageClass(clientset *kubernetes.Clientset, storageClass *storagev1.StorageClass) (*storagev1.StorageClass, error)

CreateStorageClass creates the StorageClass with the given model.

func DeleteClusterRole

func DeleteClusterRole(clientset *kubernetes.Clientset, name string) error

DeleteClusterRole deletes the ClusterRole by its name.

func DeleteClusterRoleBinding

func DeleteClusterRoleBinding(clientset *kubernetes.Clientset, name string) error

DeleteClusterRoleBinding deletes the ClusterRoleBinding by its name.

func DeleteConfigMap

func DeleteConfigMap(clientset *kubernetes.Clientset, namespace string, name string) error

DeleteConfigMap deletes the ConfigMap by its name. An optional namespace can be given, if none is given the operation takes place in the default name space.

func DeleteCronJob

func DeleteCronJob(clientset *kubernetes.Clientset, namespace string, name string) error

DeleteCronJob deletes the CronJob by its name. An optional namespace can be given, if none is given the operation takes place in the default name space.

func DeleteDaemonSet

func DeleteDaemonSet(clientset *kubernetes.Clientset, namespace string, name string) error

DeleteDaemonSet deletes the DaemonSet by its name. An optional namespace can be given, if none is given the operation takes place in the default name space.

func DeleteDeployment

func DeleteDeployment(clientset *kubernetes.Clientset, namespace string, name string) error

DeleteDeployment deletes the Deployment by its name. An optional namespace can be given, if none is given the operation takes place in the default name space.

func DeleteJob

func DeleteJob(clientset *kubernetes.Clientset, namespace string, name string) error

DeleteJob deletes the Job by its name. An optional namespace can be given, if none is given the operation takes place in the default name space.

func DeleteNamespace

func DeleteNamespace(clientset *kubernetes.Clientset, name string) error

DeleteNamespace deletes the Namespace by its name.

func DeleteNetworkPolicy

func DeleteNetworkPolicy(clientset *kubernetes.Clientset, namespace string, name string) error

DeleteNetworkPolicy deletes the NetworkPolicy by its name. An optional namespace can be given, if none is given the operation takes place in the default name space.

func DeleteNode

func DeleteNode(clientset *kubernetes.Clientset, name string) error

DeleteNode deletes the Node by its name.

func DeletePersistentVolume

func DeletePersistentVolume(clientset *kubernetes.Clientset, name string) error

DeletePersistentVolume deletes the PersistentVolume by its name.

func DeletePersistentVolumeClaim

func DeletePersistentVolumeClaim(clientset *kubernetes.Clientset, namespace string, name string) error

DeletePersistentVolumeClaim deletes the PersistentVolumeClaim by its name. An optional namespace can be given, if none is given the operation takes place in the default name space.

func DeletePod

func DeletePod(clientset *kubernetes.Clientset, namespace string, name string) error

DeletePod deletes the Pod by its name. An optional namespace can be given, if none is given the operation takes place in the default name space.

func DeleteReplicaSet

func DeleteReplicaSet(clientset *kubernetes.Clientset, namespace string, name string) error

DeleteReplicaSet deletes the ReplicaSet by its name. An optional namespace can be given, if none is given the operation takes place in the default name space.

func DeleteReplicationController

func DeleteReplicationController(clientset *kubernetes.Clientset, namespace string, name string) error

DeleteReplicationController deletes the ReplicationController by its name. An optional namespace can be given, if none is given the operation takes place in the default name space.

func DeleteRole

func DeleteRole(clientset *kubernetes.Clientset, namespace string, name string) error

DeleteRole deletes the Role by its name. An optional namespace can be given, if none is given the operation takes place in the default name space.

func DeleteRoleBinding

func DeleteRoleBinding(clientset *kubernetes.Clientset, namespace string, name string) error

DeleteRoleBinding deletes the RoleBinding by its name. An optional namespace can be given, if none is given the operation takes place in the default name space.

func DeleteSecret

func DeleteSecret(clientset *kubernetes.Clientset, namespace string, name string) error

DeleteSecret deletes the Secret by its name. An optional namespace can be given, if none is given the operation takes place in the default name space.

func DeleteService

func DeleteService(clientset *kubernetes.Clientset, namespace string, name string) error

DeleteService deletes the Service by its name. An optional namespace can be given, if none is given the operation takes place in the default name space.

func DeleteServiceAccount

func DeleteServiceAccount(clientset *kubernetes.Clientset, namespace string, name string) error

DeleteServiceAccount deletes the ServiceAccount by its name. An optional namespace can be given, if none is given the operation takes place in the default name space.

func DeleteStatefulSet

func DeleteStatefulSet(clientset *kubernetes.Clientset, namespace string, name string) error

DeleteStatefulSet deletes the StatefulSet by its name. An optional namespace can be given, if none is given the operation takes place in the default name space.

func DeleteStorageClass

func DeleteStorageClass(clientset *kubernetes.Clientset, name string) error

DeleteStorageClass deletes the StorageClass by its name.

func GetClusterRole

func GetClusterRole(clientset *kubernetes.Clientset, name string) (*rbacv1.ClusterRole, error)

GetClusterRole returns the ClusterRole by its name.

func GetClusterRoleBinding

func GetClusterRoleBinding(clientset *kubernetes.Clientset, name string) (*rbacv1.ClusterRoleBinding, error)

GetClusterRoleBinding returns the ClusterRoleBinding by its name.

func GetClusterRoleBindings

func GetClusterRoleBindings(clientset *kubernetes.Clientset) ([]rbacv1.ClusterRoleBinding, error)

GetClusterRoleBindings returns all the ClusterRoleBinding.

func GetClusterRoles

func GetClusterRoles(clientset *kubernetes.Clientset) ([]rbacv1.ClusterRole, error)

GetClusterRoles returns all the ClusterRole.

func GetConfigMap

func GetConfigMap(clientset *kubernetes.Clientset, namespace string, name string) (*corev1.ConfigMap, error)

GetConfigMap returns the ConfigMap by its name. An optional namespace can be given, if none is given the operation takes place in the default name space.

func GetConfigMaps

func GetConfigMaps(clientset *kubernetes.Clientset, namespace string) ([]corev1.ConfigMap, error)

GetConfigMaps returns all the ConfigMap. If an empty namespace is given, returns all the ConfigMap

func GetCronJob

func GetCronJob(clientset *kubernetes.Clientset, namespace string, name string) (*batchv1beta1.CronJob, error)

GetCronJob returns the CronJob by its name. An optional namespace can be given, if none is given the operation takes place in the default name space.

func GetCronJobs

func GetCronJobs(clientset *kubernetes.Clientset, namespace string) ([]batchv1beta1.CronJob, error)

GetCronJobs returns all the CronJob. If an empty namespace is given, returns all the CronJob

func GetDaemonSet

func GetDaemonSet(clientset *kubernetes.Clientset, namespace string, name string) (*appsv1.DaemonSet, error)

GetDaemonSet returns the DaemonSet by its name. An optional namespace can be given, if none is given the operation takes place in the default name space.

func GetDaemonSets

func GetDaemonSets(clientset *kubernetes.Clientset, namespace string) ([]appsv1.DaemonSet, error)

GetDaemonSets returns all the DaemonSet. If an empty namespace is given, returns all the DaemonSet

func GetDeployment

func GetDeployment(clientset *kubernetes.Clientset, namespace string, name string) (*appsv1.Deployment, error)

GetDeployment returns the Deployment by its name. An optional namespace can be given, if none is given the operation takes place in the default name space.

func GetDeployments

func GetDeployments(clientset *kubernetes.Clientset, namespace string) ([]appsv1.Deployment, error)

GetDeployments returns all the Deployment. If an empty namespace is given, returns all the Deployment

func GetJob

func GetJob(clientset *kubernetes.Clientset, namespace string, name string) (*batchv1.Job, error)

GetJob returns the Job by its name. An optional namespace can be given, if none is given the operation takes place in the default name space.

func GetJobs

func GetJobs(clientset *kubernetes.Clientset, namespace string) ([]batchv1.Job, error)

GetJobs returns all the Job. If an empty namespace is given, returns all the Job

func GetNamespace

func GetNamespace(clientset *kubernetes.Clientset, name string) (*corev1.Namespace, error)

GetNamespace returns the Namespace by its name.

func GetNamespaces

func GetNamespaces(clientset *kubernetes.Clientset) ([]corev1.Namespace, error)

GetNamespaces returns all the Namespace.

func GetNetworkPolicies

func GetNetworkPolicies(clientset *kubernetes.Clientset, namespace string) ([]networkingv1.NetworkPolicy, error)

GetNetworkPolicies returns all the NetworkPolicy. If an empty namespace is given, returns all the NetworkPolicy

func GetNetworkPolicy

func GetNetworkPolicy(clientset *kubernetes.Clientset, namespace string, name string) (*networkingv1.NetworkPolicy, error)

GetNetworkPolicy returns the NetworkPolicy by its name. An optional namespace can be given, if none is given the operation takes place in the default name space.

func GetNode

func GetNode(clientset *kubernetes.Clientset, name string) (*corev1.Node, error)

GetNode returns the Node by its name.

func GetNodeMetrics

func GetNodeMetrics(metrics *metrics.Clientset, name string) (*metricsv1beta1.NodeMetrics, error)

GetNodeMetrics returns the NodeMetrics by its name.

func GetNodeMetricses

func GetNodeMetricses(metrics *metrics.Clientset) ([]metricsv1beta1.NodeMetrics, error)

GetNodeMetricses returns all the NodeMetrics.

func GetNodes

func GetNodes(clientset *kubernetes.Clientset) ([]corev1.Node, error)

GetNodes returns all the Node.

func GetPersistentVolume

func GetPersistentVolume(clientset *kubernetes.Clientset, name string) (*corev1.PersistentVolume, error)

GetPersistentVolume returns the PersistentVolume by its name.

func GetPersistentVolumeClaim

func GetPersistentVolumeClaim(clientset *kubernetes.Clientset, namespace string, name string) (*corev1.PersistentVolumeClaim, error)

GetPersistentVolumeClaim returns the PersistentVolumeClaim by its name. An optional namespace can be given, if none is given the operation takes place in the default name space.

func GetPersistentVolumeClaims

func GetPersistentVolumeClaims(clientset *kubernetes.Clientset, namespace string) ([]corev1.PersistentVolumeClaim, error)

GetPersistentVolumeClaims returns all the PersistentVolumeClaim. If an empty namespace is given, returns all the PersistentVolumeClaim

func GetPersistentVolumes

func GetPersistentVolumes(clientset *kubernetes.Clientset) ([]corev1.PersistentVolume, error)

GetPersistentVolumes returns all the PersistentVolume.

func GetPod

func GetPod(clientset *kubernetes.Clientset, namespace string, name string) (*corev1.Pod, error)

GetPod returns the Pod by its name. An optional namespace can be given, if none is given the operation takes place in the default name space.

func GetPodMetrics

func GetPodMetrics(metrics *metrics.Clientset, namespace string, name string) (*metricsv1beta1.PodMetrics, error)

GetPodMetrics returns the PodMetrics by its name. An optional namespace can be given, if none is given the operation takes place in the default name space.

func GetPodMetricses

func GetPodMetricses(metrics *metrics.Clientset, namespace string) ([]metricsv1beta1.PodMetrics, error)

GetPodMetricses returns all the PodMetrics. If an empty namespace is given, returns all the PodMetrics

func GetPods

func GetPods(clientset *kubernetes.Clientset, namespace string) ([]corev1.Pod, error)

GetPods returns all the Pod. If an empty namespace is given, returns all the Pod

func GetReplicaSet

func GetReplicaSet(clientset *kubernetes.Clientset, namespace string, name string) (*appsv1.ReplicaSet, error)

GetReplicaSet returns the ReplicaSet by its name. An optional namespace can be given, if none is given the operation takes place in the default name space.

func GetReplicaSets

func GetReplicaSets(clientset *kubernetes.Clientset, namespace string) ([]appsv1.ReplicaSet, error)

GetReplicaSets returns all the ReplicaSet. If an empty namespace is given, returns all the ReplicaSet

func GetReplicationController

func GetReplicationController(clientset *kubernetes.Clientset, namespace string, name string) (*corev1.ReplicationController, error)

GetReplicationController returns the ReplicationController by its name. An optional namespace can be given, if none is given the operation takes place in the default name space.

func GetReplicationControllers

func GetReplicationControllers(clientset *kubernetes.Clientset, namespace string) ([]corev1.ReplicationController, error)

GetReplicationControllers returns all the ReplicationController. If an empty namespace is given, returns all the ReplicationController

func GetRole

func GetRole(clientset *kubernetes.Clientset, namespace string, name string) (*rbacv1.Role, error)

GetRole returns the Role by its name. An optional namespace can be given, if none is given the operation takes place in the default name space.

func GetRoleBinding

func GetRoleBinding(clientset *kubernetes.Clientset, namespace string, name string) (*rbacv1.RoleBinding, error)

GetRoleBinding returns the RoleBinding by its name. An optional namespace can be given, if none is given the operation takes place in the default name space.

func GetRoleBindings

func GetRoleBindings(clientset *kubernetes.Clientset, namespace string) ([]rbacv1.RoleBinding, error)

GetRoleBindings returns all the RoleBinding. If an empty namespace is given, returns all the RoleBinding

func GetRoles

func GetRoles(clientset *kubernetes.Clientset, namespace string) ([]rbacv1.Role, error)

GetRoles returns all the Role. If an empty namespace is given, returns all the Role

func GetSecret

func GetSecret(clientset *kubernetes.Clientset, namespace string, name string) (*corev1.Secret, error)

GetSecret returns the Secret by its name. An optional namespace can be given, if none is given the operation takes place in the default name space.

func GetSecrets

func GetSecrets(clientset *kubernetes.Clientset, namespace string) ([]corev1.Secret, error)

GetSecrets returns all the Secret. If an empty namespace is given, returns all the Secret

func GetService

func GetService(clientset *kubernetes.Clientset, namespace string, name string) (*corev1.Service, error)

GetService returns the Service by its name. An optional namespace can be given, if none is given the operation takes place in the default name space.

func GetServiceAccount

func GetServiceAccount(clientset *kubernetes.Clientset, namespace string, name string) (*corev1.ServiceAccount, error)

GetServiceAccount returns the ServiceAccount by its name. An optional namespace can be given, if none is given the operation takes place in the default name space.

func GetServiceAccounts

func GetServiceAccounts(clientset *kubernetes.Clientset, namespace string) ([]corev1.ServiceAccount, error)

GetServiceAccounts returns all the ServiceAccount. If an empty namespace is given, returns all the ServiceAccount

func GetServices

func GetServices(clientset *kubernetes.Clientset, namespace string) ([]corev1.Service, error)

GetServices returns all the Service. If an empty namespace is given, returns all the Service

func GetStatefulSet

func GetStatefulSet(clientset *kubernetes.Clientset, namespace string, name string) (*appsv1.StatefulSet, error)

GetStatefulSet returns the StatefulSet by its name. An optional namespace can be given, if none is given the operation takes place in the default name space.

func GetStatefulSets

func GetStatefulSets(clientset *kubernetes.Clientset, namespace string) ([]appsv1.StatefulSet, error)

GetStatefulSets returns all the StatefulSet. If an empty namespace is given, returns all the StatefulSet

func GetStorageClass

func GetStorageClass(clientset *kubernetes.Clientset, name string) (*storagev1.StorageClass, error)

GetStorageClass returns the StorageClass by its name.

func GetStorageClasses

func GetStorageClasses(clientset *kubernetes.Clientset) ([]storagev1.StorageClass, error)

GetStorageClasses returns all the StorageClass.

func UpdateClusterRole

func UpdateClusterRole(clientset *kubernetes.Clientset, clusterRole *rbacv1.ClusterRole) (*rbacv1.ClusterRole, error)

UpdateClusterRole updates the ClusterRole with the given model.

func UpdateClusterRoleBinding

func UpdateClusterRoleBinding(clientset *kubernetes.Clientset, clusterRoleBinding *rbacv1.ClusterRoleBinding) (*rbacv1.ClusterRoleBinding, error)

UpdateClusterRoleBinding updates the ClusterRoleBinding with the given model.

func UpdateConfigMap

func UpdateConfigMap(clientset *kubernetes.Clientset, namespace string, configMap *corev1.ConfigMap) (*corev1.ConfigMap, error)

UpdateConfigMap updates the ConfigMap with the given model. An optional namespace can be given, if none is given the operation takes place in the default name space.

func UpdateCronJob

func UpdateCronJob(clientset *kubernetes.Clientset, namespace string, cronJob *batchv1beta1.CronJob) (*batchv1beta1.CronJob, error)

UpdateCronJob updates the CronJob with the given model. An optional namespace can be given, if none is given the operation takes place in the default name space.

func UpdateDaemonSet

func UpdateDaemonSet(clientset *kubernetes.Clientset, namespace string, daemonSet *appsv1.DaemonSet) (*appsv1.DaemonSet, error)

UpdateDaemonSet updates the DaemonSet with the given model. An optional namespace can be given, if none is given the operation takes place in the default name space.

func UpdateDeployment

func UpdateDeployment(clientset *kubernetes.Clientset, namespace string, deployment *appsv1.Deployment) (*appsv1.Deployment, error)

UpdateDeployment updates the Deployment with the given model. An optional namespace can be given, if none is given the operation takes place in the default name space.

func UpdateJob

func UpdateJob(clientset *kubernetes.Clientset, namespace string, job *batchv1.Job) (*batchv1.Job, error)

UpdateJob updates the Job with the given model. An optional namespace can be given, if none is given the operation takes place in the default name space.

func UpdateNamespace

func UpdateNamespace(clientset *kubernetes.Clientset, namespace *corev1.Namespace) (*corev1.Namespace, error)

UpdateNamespace updates the Namespace with the given model.

func UpdateNetworkPolicy

func UpdateNetworkPolicy(clientset *kubernetes.Clientset, namespace string, networkPolicy *networkingv1.NetworkPolicy) (*networkingv1.NetworkPolicy, error)

UpdateNetworkPolicy updates the NetworkPolicy with the given model. An optional namespace can be given, if none is given the operation takes place in the default name space.

func UpdateNode

func UpdateNode(clientset *kubernetes.Clientset, node *corev1.Node) (*corev1.Node, error)

UpdateNode updates the Node with the given model.

func UpdatePersistentVolume

func UpdatePersistentVolume(clientset *kubernetes.Clientset, persistentVolume *corev1.PersistentVolume) (*corev1.PersistentVolume, error)

UpdatePersistentVolume updates the PersistentVolume with the given model.

func UpdatePersistentVolumeClaim

func UpdatePersistentVolumeClaim(clientset *kubernetes.Clientset, namespace string, persistentVolumeClaim *corev1.PersistentVolumeClaim) (*corev1.PersistentVolumeClaim, error)

UpdatePersistentVolumeClaim updates the PersistentVolumeClaim with the given model. An optional namespace can be given, if none is given the operation takes place in the default name space.

func UpdatePod

func UpdatePod(clientset *kubernetes.Clientset, namespace string, pod *corev1.Pod) (*corev1.Pod, error)

UpdatePod updates the Pod with the given model. An optional namespace can be given, if none is given the operation takes place in the default name space.

func UpdateReplicaSet

func UpdateReplicaSet(clientset *kubernetes.Clientset, namespace string, replicaSet *appsv1.ReplicaSet) (*appsv1.ReplicaSet, error)

UpdateReplicaSet updates the ReplicaSet with the given model. An optional namespace can be given, if none is given the operation takes place in the default name space.

func UpdateReplicationController

func UpdateReplicationController(clientset *kubernetes.Clientset, namespace string, replicationController *corev1.ReplicationController) (*corev1.ReplicationController, error)

UpdateReplicationController updates the ReplicationController with the given model. An optional namespace can be given, if none is given the operation takes place in the default name space.

func UpdateRole

func UpdateRole(clientset *kubernetes.Clientset, namespace string, role *rbacv1.Role) (*rbacv1.Role, error)

UpdateRole updates the Role with the given model. An optional namespace can be given, if none is given the operation takes place in the default name space.

func UpdateRoleBinding

func UpdateRoleBinding(clientset *kubernetes.Clientset, namespace string, roleBinding *rbacv1.RoleBinding) (*rbacv1.RoleBinding, error)

UpdateRoleBinding updates the RoleBinding with the given model. An optional namespace can be given, if none is given the operation takes place in the default name space.

func UpdateSecret

func UpdateSecret(clientset *kubernetes.Clientset, namespace string, secret *corev1.Secret) (*corev1.Secret, error)

UpdateSecret updates the Secret with the given model. An optional namespace can be given, if none is given the operation takes place in the default name space.

func UpdateService

func UpdateService(clientset *kubernetes.Clientset, namespace string, service *corev1.Service) (*corev1.Service, error)

UpdateService updates the Service with the given model. An optional namespace can be given, if none is given the operation takes place in the default name space.

func UpdateServiceAccount

func UpdateServiceAccount(clientset *kubernetes.Clientset, namespace string, serviceAccount *corev1.ServiceAccount) (*corev1.ServiceAccount, error)

UpdateServiceAccount updates the ServiceAccount with the given model. An optional namespace can be given, if none is given the operation takes place in the default name space.

func UpdateStatefulSet

func UpdateStatefulSet(clientset *kubernetes.Clientset, namespace string, statefulSet *appsv1.StatefulSet) (*appsv1.StatefulSet, error)

UpdateStatefulSet updates the StatefulSet with the given model. An optional namespace can be given, if none is given the operation takes place in the default name space.

func UpdateStorageClass

func UpdateStorageClass(clientset *kubernetes.Clientset, storageClass *storagev1.StorageClass) (*storagev1.StorageClass, error)

UpdateStorageClass updates the StorageClass with the given model.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL