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 ¶
- func CreateClusterRole(contextName string, clusterRole *rbacv1.ClusterRole) (*rbacv1.ClusterRole, error)
- func CreateClusterRoleBinding(contextName string, clusterRoleBinding *rbacv1.ClusterRoleBinding) (*rbacv1.ClusterRoleBinding, error)
- func CreateConfigMap(contextName string, namespace string, configMap *corev1.ConfigMap) (*corev1.ConfigMap, error)
- func CreateCronJob(contextName string, namespace string, cronJob *batchv1beta1.CronJob) (*batchv1beta1.CronJob, error)
- func CreateDaemonSet(contextName string, namespace string, daemonSet *appsv1.DaemonSet) (*appsv1.DaemonSet, error)
- func CreateDeployment(contextName string, namespace string, deployment *appsv1.Deployment) (*appsv1.Deployment, error)
- func CreateJob(contextName string, namespace string, job *batchv1.Job) (*batchv1.Job, error)
- func CreateNamespace(contextName string, namespace *corev1.Namespace) (*corev1.Namespace, error)
- func CreateNetworkPolicy(contextName string, namespace string, ...) (*networkingv1.NetworkPolicy, error)
- func CreateNode(contextName string, node *corev1.Node) (*corev1.Node, error)
- func CreatePersistentVolume(contextName string, persistentVolume *corev1.PersistentVolume) (*corev1.PersistentVolume, error)
- func CreatePersistentVolumeClaim(contextName string, namespace string, ...) (*corev1.PersistentVolumeClaim, error)
- func CreatePod(contextName string, namespace string, pod *corev1.Pod) (*corev1.Pod, error)
- func CreateReplicaSet(contextName string, namespace string, replicaSet *appsv1.ReplicaSet) (*appsv1.ReplicaSet, error)
- func CreateReplicationController(contextName string, namespace string, ...) (*corev1.ReplicationController, error)
- func CreateRole(contextName string, namespace string, role *rbacv1.Role) (*rbacv1.Role, error)
- func CreateRoleBinding(contextName string, namespace string, roleBinding *rbacv1.RoleBinding) (*rbacv1.RoleBinding, error)
- func CreateSecret(contextName string, namespace string, secret *corev1.Secret) (*corev1.Secret, error)
- func CreateService(contextName string, namespace string, service *corev1.Service) (*corev1.Service, error)
- func CreateServiceAccount(contextName string, namespace string, serviceAccount *corev1.ServiceAccount) (*corev1.ServiceAccount, error)
- func CreateStatefulSet(contextName string, namespace string, statefulSet *appsv1.StatefulSet) (*appsv1.StatefulSet, error)
- func CreateStorageClass(contextName string, storageClass *storagev1.StorageClass) (*storagev1.StorageClass, error)
- func DeleteClusterRole(contextName string, name string) error
- func DeleteClusterRoleBinding(contextName string, name string) error
- func DeleteConfigMap(contextName string, namespace string, name string) error
- func DeleteCronJob(contextName string, namespace string, name string) error
- func DeleteDaemonSet(contextName string, namespace string, name string) error
- func DeleteDeployment(contextName string, namespace string, name string) error
- func DeleteJob(contextName string, namespace string, name string) error
- func DeleteNamespace(contextName string, name string) error
- func DeleteNetworkPolicy(contextName string, namespace string, name string) error
- func DeleteNode(contextName string, name string) error
- func DeletePersistentVolume(contextName string, name string) error
- func DeletePersistentVolumeClaim(contextName string, namespace string, name string) error
- func DeletePod(contextName string, namespace string, name string) error
- func DeleteReplicaSet(contextName string, namespace string, name string) error
- func DeleteReplicationController(contextName string, namespace string, name string) error
- func DeleteRole(contextName string, namespace string, name string) error
- func DeleteRoleBinding(contextName string, namespace string, name string) error
- func DeleteSecret(contextName string, namespace string, name string) error
- func DeleteService(contextName string, namespace string, name string) error
- func DeleteServiceAccount(contextName string, namespace string, name string) error
- func DeleteStatefulSet(contextName string, namespace string, name string) error
- func DeleteStorageClass(contextName string, name string) error
- func GetClusterRole(contextName string, name string) (*rbacv1.ClusterRole, error)
- func GetClusterRoleBinding(contextName string, name string) (*rbacv1.ClusterRoleBinding, error)
- func GetClusterRoleBindings(contextName string) ([]rbacv1.ClusterRoleBinding, error)
- func GetClusterRoles(contextName string) ([]rbacv1.ClusterRole, error)
- func GetConfigMap(contextName string, namespace string, name string) (*corev1.ConfigMap, error)
- func GetConfigMaps(contextName string, namespace string) ([]corev1.ConfigMap, error)
- func GetCronJob(contextName string, namespace string, name string) (*batchv1beta1.CronJob, error)
- func GetCronJobs(contextName string, namespace string) ([]batchv1beta1.CronJob, error)
- func GetDaemonSet(contextName string, namespace string, name string) (*appsv1.DaemonSet, error)
- func GetDaemonSets(contextName string, namespace string) ([]appsv1.DaemonSet, error)
- func GetDeployment(contextName string, namespace string, name string) (*appsv1.Deployment, error)
- func GetDeployments(contextName string, namespace string) ([]appsv1.Deployment, error)
- func GetJob(contextName string, namespace string, name string) (*batchv1.Job, error)
- func GetJobs(contextName string, namespace string) ([]batchv1.Job, error)
- func GetNamespace(contextName string, name string) (*corev1.Namespace, error)
- func GetNamespaces(contextName string) ([]corev1.Namespace, error)
- func GetNetworkPolicies(contextName string, namespace string) ([]networkingv1.NetworkPolicy, error)
- func GetNetworkPolicy(contextName string, namespace string, name string) (*networkingv1.NetworkPolicy, error)
- func GetNode(contextName string, name string) (*corev1.Node, error)
- func GetNodeMetrics(contextName string, name string) (*metricsv1beta1.NodeMetrics, error)
- func GetNodeMetricses(contextName string) ([]metricsv1beta1.NodeMetrics, error)
- func GetNodes(contextName string) ([]corev1.Node, error)
- func GetPersistentVolume(contextName string, name string) (*corev1.PersistentVolume, error)
- func GetPersistentVolumeClaim(contextName string, namespace string, name string) (*corev1.PersistentVolumeClaim, error)
- func GetPersistentVolumeClaims(contextName string, namespace string) ([]corev1.PersistentVolumeClaim, error)
- func GetPersistentVolumes(contextName string) ([]corev1.PersistentVolume, error)
- func GetPod(contextName string, namespace string, name string) (*corev1.Pod, error)
- func GetPodMetrics(contextName string, namespace string, name string) (*metricsv1beta1.PodMetrics, error)
- func GetPodMetricses(contextName string, namespace string) ([]metricsv1beta1.PodMetrics, error)
- func GetPods(contextName string, namespace string) ([]corev1.Pod, error)
- func GetReplicaSet(contextName string, namespace string, name string) (*appsv1.ReplicaSet, error)
- func GetReplicaSets(contextName string, namespace string) ([]appsv1.ReplicaSet, error)
- func GetReplicationController(contextName string, namespace string, name string) (*corev1.ReplicationController, error)
- func GetReplicationControllers(contextName string, namespace string) ([]corev1.ReplicationController, error)
- func GetRole(contextName string, namespace string, name string) (*rbacv1.Role, error)
- func GetRoleBinding(contextName string, namespace string, name string) (*rbacv1.RoleBinding, error)
- func GetRoleBindings(contextName string, namespace string) ([]rbacv1.RoleBinding, error)
- func GetRoles(contextName string, namespace string) ([]rbacv1.Role, error)
- func GetSecret(contextName string, namespace string, name string) (*corev1.Secret, error)
- func GetSecrets(contextName string, namespace string) ([]corev1.Secret, error)
- func GetService(contextName string, namespace string, name string) (*corev1.Service, error)
- func GetServiceAccount(contextName string, namespace string, name string) (*corev1.ServiceAccount, error)
- func GetServiceAccounts(contextName string, namespace string) ([]corev1.ServiceAccount, error)
- func GetServices(contextName string, namespace string) ([]corev1.Service, error)
- func GetStatefulSet(contextName string, namespace string, name string) (*appsv1.StatefulSet, error)
- func GetStatefulSets(contextName string, namespace string) ([]appsv1.StatefulSet, error)
- func GetStorageClass(contextName string, name string) (*storagev1.StorageClass, error)
- func GetStorageClasses(contextName string) ([]storagev1.StorageClass, error)
- func UpdateClusterRole(contextName string, clusterRole *rbacv1.ClusterRole) (*rbacv1.ClusterRole, error)
- func UpdateClusterRoleBinding(contextName string, clusterRoleBinding *rbacv1.ClusterRoleBinding) (*rbacv1.ClusterRoleBinding, error)
- func UpdateConfigMap(contextName string, namespace string, configMap *corev1.ConfigMap) (*corev1.ConfigMap, error)
- func UpdateCronJob(contextName string, namespace string, cronJob *batchv1beta1.CronJob) (*batchv1beta1.CronJob, error)
- func UpdateDaemonSet(contextName string, namespace string, daemonSet *appsv1.DaemonSet) (*appsv1.DaemonSet, error)
- func UpdateDeployment(contextName string, namespace string, deployment *appsv1.Deployment) (*appsv1.Deployment, error)
- func UpdateJob(contextName string, namespace string, job *batchv1.Job) (*batchv1.Job, error)
- func UpdateNamespace(contextName string, namespace *corev1.Namespace) (*corev1.Namespace, error)
- func UpdateNetworkPolicy(contextName string, namespace string, ...) (*networkingv1.NetworkPolicy, error)
- func UpdateNode(contextName string, node *corev1.Node) (*corev1.Node, error)
- func UpdatePersistentVolume(contextName string, persistentVolume *corev1.PersistentVolume) (*corev1.PersistentVolume, error)
- func UpdatePersistentVolumeClaim(contextName string, namespace string, ...) (*corev1.PersistentVolumeClaim, error)
- func UpdatePod(contextName string, namespace string, pod *corev1.Pod) (*corev1.Pod, error)
- func UpdateReplicaSet(contextName string, namespace string, replicaSet *appsv1.ReplicaSet) (*appsv1.ReplicaSet, error)
- func UpdateReplicationController(contextName string, namespace string, ...) (*corev1.ReplicationController, error)
- func UpdateRole(contextName string, namespace string, role *rbacv1.Role) (*rbacv1.Role, error)
- func UpdateRoleBinding(contextName string, namespace string, roleBinding *rbacv1.RoleBinding) (*rbacv1.RoleBinding, error)
- func UpdateSecret(contextName string, namespace string, secret *corev1.Secret) (*corev1.Secret, error)
- func UpdateService(contextName string, namespace string, service *corev1.Service) (*corev1.Service, error)
- func UpdateServiceAccount(contextName string, namespace string, serviceAccount *corev1.ServiceAccount) (*corev1.ServiceAccount, error)
- func UpdateStatefulSet(contextName string, namespace string, statefulSet *appsv1.StatefulSet) (*appsv1.StatefulSet, error)
- func UpdateStorageClass(contextName string, storageClass *storagev1.StorageClass) (*storagev1.StorageClass, error)
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
DeleteClusterRole deletes the ClusterRole by its name.
func DeleteClusterRoleBinding ¶
DeleteClusterRoleBinding deletes the ClusterRoleBinding by its name.
func DeleteConfigMap ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
DeleteNamespace deletes the Namespace by its name.
func DeleteNetworkPolicy ¶
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 ¶
DeleteNode deletes the Node by its name.
func DeletePersistentVolume ¶
DeletePersistentVolume deletes the PersistentVolume by its name.
func DeletePersistentVolumeClaim ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
GetConfigMaps returns all the ConfigMap. If an empty namespace is given, returns all the ConfigMap
func GetCronJob ¶
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 ¶
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 ¶
GetDaemonSets returns all the DaemonSet. If an empty namespace is given, returns all the DaemonSet
func GetDeployment ¶
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 ¶
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 GetNamespace ¶
GetNamespace returns the Namespace by its name.
func GetNamespaces ¶
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 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 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 ¶
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 GetReplicaSet ¶
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 ¶
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 ¶
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 GetSecret ¶
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 ¶
GetSecrets returns all the Secret. If an empty namespace is given, returns all the Secret
func GetService ¶
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 ¶
GetServices returns all the Service. If an empty namespace is given, returns all the Service
func GetStatefulSet ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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.