kubernetes

package
v0.0.0-...-bdcd3c7 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deployment

type Deployment interface {
	GetDeploymentPods(namespace, name string) (*corev1.PodList, error)
}

Deployment the Deployment service that knows how to interact with k8s to manage them

type DeploymentService

type DeploymentService struct {
	// contains filtered or unexported fields
}

DeploymentService is the service account service implementation using API calls to kubernetes.

func NewDeploymentService

func NewDeploymentService(kubeClient kubernetes.Interface) *DeploymentService

NewDeploymentService returns a new Deployment KubeService.

func (*DeploymentService) GetDeploymentPods

func (d *DeploymentService) GetDeploymentPods(namespace, name string) (*corev1.PodList, error)

GetDeploymentPods will retrieve the pods managed by a given deployment

type Services

type Services interface {
	Deployment
	StatefulSet
}

Service is the K8s service entrypoint.

func New

func New(kubeClient kubernetes.Interface) Services

New returns a new Kubernetes service.

type StatefulSet

type StatefulSet interface {
	GetStatefulSet(namespace, name string) (*appsv1.StatefulSet, error)
	GetStatefulSetPods(namespace, name string) (*corev1.PodList, error)
}

StatefulSet the StatefulSet service that knows how to interact with k8s to manage them

type StatefulSetService

type StatefulSetService struct {
	// contains filtered or unexported fields
}

StatefulSetService is the service account service implementation using API calls to kubernetes.

func NewStatefulSetService

func NewStatefulSetService(kubeClient kubernetes.Interface) *StatefulSetService

NewStatefulSetService returns a new StatefulSet KubeService.

func (*StatefulSetService) GetStatefulSet

func (s *StatefulSetService) GetStatefulSet(namespace, name string) (*appsv1.StatefulSet, error)

GetStatefulSet will retrieve the requested statefulset based on namespace and name

func (*StatefulSetService) GetStatefulSetPods

func (s *StatefulSetService) GetStatefulSetPods(namespace, name string) (*corev1.PodList, error)

GetStatefulSetPods will give a list of pods that are managed by the statefulset

Jump to

Keyboard shortcuts

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