provider

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 provider 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_provider_cluster.go at 2019-06-17 12:12:20.794025957 +0300 EEST m=+0.001747689

Package provider 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_provider_cluster_metrics.go at 2019-06-17 12:12:21.012007208 +0300 EEST m=+0.000977640

Package provider 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_provider_namespace.go at 2019-06-17 12:12:21.223819121 +0300 EEST m=+0.001875679

Package provider 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_provider_namespace_metrics.go at 2019-06-17 12:12:21.420661194 +0300 EEST m=+0.000836258

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateClusterRole

func CreateClusterRole(contextName string, clusterRole *rbacv1.ClusterRole) (*rbacv1.ClusterRole, error)

CreateClusterRole creates the ClusterRole with the given model.

func CreateClusterRoleBinding

func CreateClusterRoleBinding(contextName string, clusterRoleBinding *rbacv1.ClusterRoleBinding) (*rbacv1.ClusterRoleBinding, error)

CreateClusterRoleBinding creates the ClusterRoleBinding with the given model.

func CreateConfigMap

func CreateConfigMap(contextName string, 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(contextName string, 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(contextName string, 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(contextName string, 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(contextName string, 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(contextName string, namespace *corev1.Namespace) (*corev1.Namespace, error)

CreateNamespace creates the Namespace with the given model.

func CreateNetworkPolicy

func CreateNetworkPolicy(contextName string, 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(contextName string, node *corev1.Node) (*corev1.Node, error)

CreateNode creates the Node with the given model.

func CreatePersistentVolume

func CreatePersistentVolume(contextName string, persistentVolume *corev1.PersistentVolume) (*corev1.PersistentVolume, error)

CreatePersistentVolume creates the PersistentVolume with the given model.

func CreatePersistentVolumeClaim

func CreatePersistentVolumeClaim(contextName string, 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(contextName string, 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(contextName string, 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(contextName string, 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(contextName string, 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(contextName string, 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(contextName string, 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(contextName string, 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(contextName string, 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(contextName string, 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(contextName string, storageClass *storagev1.StorageClass) (*storagev1.StorageClass, error)

CreateStorageClass creates the StorageClass with the given model.

func DeleteClusterRole

func DeleteClusterRole(contextName string, name string) error

DeleteClusterRole deletes the ClusterRole by its name.

func DeleteClusterRoleBinding

func DeleteClusterRoleBinding(contextName string, name string) error

DeleteClusterRoleBinding deletes the ClusterRoleBinding by its name.

func DeleteConfigMap

func DeleteConfigMap(contextName string, 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(contextName string, 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(contextName string, 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(contextName string, 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(contextName string, 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(contextName string, name string) error

DeleteNamespace deletes the Namespace by its name.

func DeleteNetworkPolicy

func DeleteNetworkPolicy(contextName string, 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(contextName string, name string) error

DeleteNode deletes the Node by its name.

func DeletePersistentVolume

func DeletePersistentVolume(contextName string, name string) error

DeletePersistentVolume deletes the PersistentVolume by its name.

func DeletePersistentVolumeClaim

func DeletePersistentVolumeClaim(contextName string, 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(contextName string, 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(contextName string, 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(contextName string, 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(contextName string, 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(contextName string, 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(contextName string, 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(contextName string, 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(contextName string, 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(contextName string, 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(contextName string, name string) error

DeleteStorageClass deletes the StorageClass by its name.

func GetClusterRole

func GetClusterRole(contextName string, name string) (*rbacv1.ClusterRole, error)

GetClusterRole returns the ClusterRole by its name.

func GetClusterRoleBinding

func GetClusterRoleBinding(contextName string, name string) (*rbacv1.ClusterRoleBinding, error)

GetClusterRoleBinding returns the ClusterRoleBinding by its name.

func GetClusterRoleBindings

func GetClusterRoleBindings(contextName string) ([]rbacv1.ClusterRoleBinding, error)

GetClusterRoleBindings returns all the ClusterRoleBinding.

func GetClusterRoles

func GetClusterRoles(contextName string) ([]rbacv1.ClusterRole, error)

GetClusterRoles returns all the ClusterRole.

func GetConfigMap

func GetConfigMap(contextName string, 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(contextName string, namespace string) ([]corev1.ConfigMap, error)

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

func GetCronJob

func GetCronJob(contextName string, 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(contextName string, namespace string) ([]batchv1beta1.CronJob, error)

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

func GetDaemonSet

func GetDaemonSet(contextName string, 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(contextName string, namespace string) ([]appsv1.DaemonSet, error)

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

func GetDeployment

func GetDeployment(contextName string, 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(contextName string, namespace string) ([]appsv1.Deployment, error)

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

func GetJob

func GetJob(contextName string, 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(contextName string, namespace string) ([]batchv1.Job, error)

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

func GetNamespace

func GetNamespace(contextName string, name string) (*corev1.Namespace, error)

GetNamespace returns the Namespace by its name.

func GetNamespaces

func GetNamespaces(contextName string) ([]corev1.Namespace, error)

GetNamespaces returns all the Namespace.

func GetNetworkPolicies

func GetNetworkPolicies(contextName string, namespace string) ([]networkingv1.NetworkPolicy, error)

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

func GetNetworkPolicy

func GetNetworkPolicy(contextName string, 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(contextName string, name string) (*corev1.Node, error)

GetNode returns the Node by its name.

func GetNodeMetrics

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

GetNodeMetrics returns the NodeMetrics by its name.

func GetNodeMetricses

func GetNodeMetricses(contextName string) ([]metricsv1beta1.NodeMetrics, error)

GetNodeMetricses returns all the NodeMetrics.

func GetNodes

func GetNodes(contextName string) ([]corev1.Node, error)

GetNodes returns all the Node.

func GetPersistentVolume

func GetPersistentVolume(contextName string, name string) (*corev1.PersistentVolume, error)

GetPersistentVolume returns the PersistentVolume by its name.

func GetPersistentVolumeClaim

func GetPersistentVolumeClaim(contextName string, 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(contextName string, namespace string) ([]corev1.PersistentVolumeClaim, error)

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

func GetPersistentVolumes

func GetPersistentVolumes(contextName string) ([]corev1.PersistentVolume, error)

GetPersistentVolumes returns all the PersistentVolume.

func GetPod

func GetPod(contextName string, 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(contextName string, 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(contextName string, namespace string) ([]metricsv1beta1.PodMetrics, error)

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

func GetPods

func GetPods(contextName string, namespace string) ([]corev1.Pod, error)

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

func GetReplicaSet

func GetReplicaSet(contextName string, 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(contextName string, namespace string) ([]appsv1.ReplicaSet, error)

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

func GetReplicationController

func GetReplicationController(contextName string, 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(contextName string, namespace string) ([]corev1.ReplicationController, error)

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

func GetRole

func GetRole(contextName string, 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(contextName string, 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(contextName string, namespace string) ([]rbacv1.RoleBinding, error)

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

func GetRoles

func GetRoles(contextName string, namespace string) ([]rbacv1.Role, error)

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

func GetSecret

func GetSecret(contextName string, 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(contextName string, namespace string) ([]corev1.Secret, error)

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

func GetService

func GetService(contextName string, 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(contextName string, 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(contextName string, namespace string) ([]corev1.ServiceAccount, error)

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

func GetServices

func GetServices(contextName string, namespace string) ([]corev1.Service, error)

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

func GetStatefulSet

func GetStatefulSet(contextName string, 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(contextName string, namespace string) ([]appsv1.StatefulSet, error)

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

func GetStorageClass

func GetStorageClass(contextName string, name string) (*storagev1.StorageClass, error)

GetStorageClass returns the StorageClass by its name.

func GetStorageClasses

func GetStorageClasses(contextName string) ([]storagev1.StorageClass, error)

GetStorageClasses returns all the StorageClass.

func UpdateClusterRole

func UpdateClusterRole(contextName string, clusterRole *rbacv1.ClusterRole) (*rbacv1.ClusterRole, error)

UpdateClusterRole updates the ClusterRole with the given model.

func UpdateClusterRoleBinding

func UpdateClusterRoleBinding(contextName string, clusterRoleBinding *rbacv1.ClusterRoleBinding) (*rbacv1.ClusterRoleBinding, error)

UpdateClusterRoleBinding updates the ClusterRoleBinding with the given model.

func UpdateConfigMap

func UpdateConfigMap(contextName string, 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(contextName string, 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(contextName string, 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(contextName string, 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(contextName string, 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(contextName string, namespace *corev1.Namespace) (*corev1.Namespace, error)

UpdateNamespace updates the Namespace with the given model.

func UpdateNetworkPolicy

func UpdateNetworkPolicy(contextName string, 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(contextName string, node *corev1.Node) (*corev1.Node, error)

UpdateNode updates the Node with the given model.

func UpdatePersistentVolume

func UpdatePersistentVolume(contextName string, persistentVolume *corev1.PersistentVolume) (*corev1.PersistentVolume, error)

UpdatePersistentVolume updates the PersistentVolume with the given model.

func UpdatePersistentVolumeClaim

func UpdatePersistentVolumeClaim(contextName string, 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(contextName string, 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(contextName string, 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(contextName string, 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(contextName string, 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(contextName string, 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(contextName string, 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(contextName string, 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(contextName string, 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(contextName string, 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(contextName string, 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