kubeclient

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeClient

type KubeClient interface {
	EnsureDeployment(name, namespace string, factory func() (*appsv1.Deployment, error)) (*appsv1.Deployment, error)
	EnsurePod(name, namespace string, factory func() (*corev1.Pod, error)) (*corev1.Pod, error)
	EnsureService(name, namespace string, factory func() (*corev1.Service, error)) (*corev1.Service, error)
	EnsureConfigMap(name, namespace string, factory func() (*corev1.ConfigMap, error)) (*corev1.ConfigMap, error)
	EnsureJob(name, namespace string, factory func() (*v1.Job, error)) (*v1.Job, error)

	ApplyStatefulSet(name, namespace string, s *appsv1.StatefulSet) error
	ApplyService(name, namespace string, s *corev1.Service) error
	ApplyDeployment(name, namespace string, d *appsv1.Deployment) error
	ApplySecret(name, namespace string, s *corev1.Secret) error
	GetDeployment(name, namespace string) (*appsv1.Deployment, error)
	DeleteDeployment(name, namespace string) error
}

func New

func New(kubeClientSet kubernetes.Interface, jobsLister batchlisters.JobLister) KubeClient

Jump to

Keyboard shortcuts

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