Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deployment ¶
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.
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