Documentation ¶
Overview ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func ManipulateResource(x interface{})
- type Options
- func (kOpts *Options) CreateConfigMap(configmap *corev1.ConfigMap) (result *corev1.ConfigMap, err error)
- func (kOpts *Options) CreateDeployment(deployment *appv1.Deployment) (result *appv1.Deployment, err error)
- func (kOpts *Options) CreateIngress(ingress *v1beta1.Ingress) (result *v1beta1.Ingress, err error)
- func (kOpts *Options) CreateJob(job *batchv1.Job) (result *batchv1.Job, err error)
- func (kOpts *Options) CreateNS(namespace *v1.Namespace) (result *corev1.Namespace, err error)
- func (kOpts *Options) CreatePVC(pvc *corev1.PersistentVolumeClaim) (result *corev1.PersistentVolumeClaim, err error)
- func (kOpts *Options) CreateRBinding(rBinding *rbacv1.RoleBinding) (result *rbacv1.RoleBinding, err error)
- func (kOpts *Options) CreateRole(role *rbacv1.Role) (result *rbacv1.Role, err error)
- func (kOpts *Options) CreateSVC(service *corev1.Service) (result *corev1.Service, err error)
- func (kOpts *Options) CreateSecret(secret *corev1.Secret) (result *corev1.Secret, err error)
- func (kOpts *Options) DeleteConfigMap(name string) (err error)
- func (kOpts *Options) DeleteDeployment(name string) (err error)
- func (kOpts *Options) DeleteIngress(name string) (err error)
- func (kOpts *Options) DeleteJob(name string) (err error)
- func (kOpts *Options) DeleteNS(name string) (err error)
- func (kOpts *Options) DeletePVC(name string) (err error)
- func (kOpts *Options) DeleteRBinding(name string) (err error)
- func (kOpts *Options) DeleteRole(name string) (err error)
- func (kOpts *Options) DeleteSVC(name string) (err error)
- func (kOpts *Options) DeleteSecret(name string) (err error)
- func (kOpts *Options) GetConfigMaps() (result *corev1.ConfigMapList, err error)
- func (kOpts *Options) GetDeployments() (result *appv1.DeploymentList, err error)
- func (kOpts *Options) GetIngress() (result *v1beta1.IngressList, err error)
- func (kOpts *Options) GetJob() (result *batchv1.JobList, err error)
- func (kOpts *Options) GetNS() (result *corev1.Namespace, err error)
- func (kOpts *Options) GetPVC() (result *corev1.PersistentVolumeClaimList, err error)
- func (kOpts *Options) GetRoleBindings() (result *rbacv1.RoleBindingList, err error)
- func (kOpts *Options) GetRoles() (result *rbacv1.RoleList, err error)
- func (kOpts *Options) GetSVC() (result *corev1.ServiceList, err error)
- func (kOpts *Options) GetSecrets() (result *corev1.SecretList, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ManipulateResource ¶
func ManipulateResource(x interface{})
ManipulateResource helps to manipulate resources
Types ¶
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
Options to pass to all the methods
func (*Options) CreateConfigMap ¶
func (kOpts *Options) CreateConfigMap(configmap *corev1.ConfigMap) (result *corev1.ConfigMap, err error)
CreateConfigMap is a method to create a configmap
func (*Options) CreateDeployment ¶
func (kOpts *Options) CreateDeployment(deployment *appv1.Deployment) (result *appv1.Deployment, err error)
CreateDeployment method to create a deployment
func (*Options) CreateIngress ¶
CreateIngress method to create an ingress
func (*Options) CreatePVC ¶
func (kOpts *Options) CreatePVC(pvc *corev1.PersistentVolumeClaim) (result *corev1.PersistentVolumeClaim, err error)
CreatePVC method to create a pvc
func (*Options) CreateRBinding ¶
func (kOpts *Options) CreateRBinding(rBinding *rbacv1.RoleBinding) (result *rbacv1.RoleBinding, err error)
CreateRBinding method creates a rolebinding
func (*Options) CreateRole ¶
CreateRole method creates a role
func (*Options) CreateSecret ¶
CreateSecret method creates a secret
func (*Options) DeleteConfigMap ¶
DeleteConfigMap is a method to delete a provided configmap name
func (*Options) DeleteDeployment ¶
DeleteDeployment is a method to delete a provided deployment name
func (*Options) DeleteIngress ¶
DeleteIngress method deletes an ingress with the given name
func (*Options) DeleteRBinding ¶
DeleteRBinding method deletes a rolebindings with the given name
func (*Options) DeleteRole ¶
DeleteRole method deletes a role based on the name provided
func (*Options) DeleteSecret ¶
DeleteSecret method deletes a secret with the name
func (*Options) GetConfigMaps ¶
func (kOpts *Options) GetConfigMaps() (result *corev1.ConfigMapList, err error)
GetConfigMaps returns all the Configmaps in the given namespace and clientset
func (*Options) GetDeployments ¶
func (kOpts *Options) GetDeployments() (result *appv1.DeploymentList, err error)
GetDeployments returns all the Deployments in the given namespace and clientset
func (*Options) GetIngress ¶
func (kOpts *Options) GetIngress() (result *v1beta1.IngressList, err error)
GetIngress returns all the Ingresses in the given namespace and clientset
func (*Options) GetPVC ¶
func (kOpts *Options) GetPVC() (result *corev1.PersistentVolumeClaimList, err error)
GetPVC returns all the pvc in the given namespace and clientset
func (*Options) GetRoleBindings ¶
func (kOpts *Options) GetRoleBindings() (result *rbacv1.RoleBindingList, err error)
GetRoleBindings returns all the RoleBindings in the given namespace and clientset
func (*Options) GetSVC ¶
func (kOpts *Options) GetSVC() (result *corev1.ServiceList, err error)
GetSVC returns all the Services in the given namespace and clientset
func (*Options) GetSecrets ¶
func (kOpts *Options) GetSecrets() (result *corev1.SecretList, err error)
GetSecrets returns all the Secrets in the given namespace and clientset