Documentation
¶
Index ¶
- type CronJobController
- type DaemonSetController
- type DeploymentController
- type GenericController
- type Interface
- func LoadControllersByKind(controllerKind config.SupportedController, ...) ([]Interface, error)
- func NewCronJobController(originalDeploymentResource kubeAPIBatchV1beta1.CronJob) Interface
- func NewDaemonSetController(originalResource kubeAPIAppsV1.DaemonSet) Interface
- func NewDeploymentController(originalDeploymentResource kubeAPIAppsV1.Deployment) Interface
- func NewJobController(originalResource kubeAPIBatchV1.Job) Interface
- func NewNakedPodController(originalNakedPodResource kubeAPICoreV1.Pod) Interface
- func NewReplicationControllerController(originalResource kubeAPICoreV1.ReplicationController) Interface
- func NewStatefulSetController(originalResource kubeAPIAppsV1.StatefulSet) Interface
- type JobController
- type NakedPodController
- type ReplicationControllerController
- func (r ReplicationControllerController) GetKind() config.SupportedController
- func (r ReplicationControllerController) GetObjectMeta() kubeAPIMetaV1.ObjectMeta
- func (r ReplicationControllerController) GetPodSpec() *kubeAPICoreV1.PodSpec
- func (r ReplicationControllerController) GetPodTemplate() *kubeAPICoreV1.PodTemplateSpec
- type StatefulSetController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CronJobController ¶
type CronJobController struct { GenericController K8SResource kubeAPIBatchV1beta1.CronJob }
CronJobController is an implementation of controller for deployments
func (CronJobController) GetKind ¶
func (c CronJobController) GetKind() config.SupportedController
GetKind returns the supportedcontroller enum type
func (CronJobController) GetObjectMeta ¶
func (c CronJobController) GetObjectMeta() kubeAPIMetaV1.ObjectMeta
GetObjectMeta returns the metadata
func (CronJobController) GetPodSpec ¶
func (c CronJobController) GetPodSpec() *kubeAPICoreV1.PodSpec
GetPodSpec returns the original kubernetes template pod spec
func (CronJobController) GetPodTemplate ¶
func (c CronJobController) GetPodTemplate() *kubeAPICoreV1.PodTemplateSpec
GetPodTemplate returns the original template spec
type DaemonSetController ¶
type DaemonSetController struct { GenericController K8SResource kubeAPIAppsV1.DaemonSet }
DaemonSetController is an implementation of controller for deployments
func (DaemonSetController) GetKind ¶
func (d DaemonSetController) GetKind() config.SupportedController
GetKind returns the supportedcontroller enum type
func (DaemonSetController) GetObjectMeta ¶
func (d DaemonSetController) GetObjectMeta() kubeAPIMetaV1.ObjectMeta
GetObjectMeta returns the metadata
func (DaemonSetController) GetPodSpec ¶
func (d DaemonSetController) GetPodSpec() *kubeAPICoreV1.PodSpec
GetPodSpec returns the original kubernetes template pod spec
func (DaemonSetController) GetPodTemplate ¶
func (d DaemonSetController) GetPodTemplate() *kubeAPICoreV1.PodTemplateSpec
GetPodTemplate returns the original template spec
type DeploymentController ¶
type DeploymentController struct { GenericController K8SResource kubeAPIAppsV1.Deployment }
DeploymentController is an implementation of controller for deployments
func (DeploymentController) GetKind ¶
func (d DeploymentController) GetKind() config.SupportedController
GetKind returns the supportedcontroller enum type
func (DeploymentController) GetObjectMeta ¶
func (d DeploymentController) GetObjectMeta() kubeAPIMetaV1.ObjectMeta
GetObjectMeta returns the metadata
func (DeploymentController) GetPodSpec ¶
func (d DeploymentController) GetPodSpec() *kubeAPICoreV1.PodSpec
GetPodSpec returns the original kubernetes template pod spec
func (DeploymentController) GetPodTemplate ¶
func (d DeploymentController) GetPodTemplate() *kubeAPICoreV1.PodTemplateSpec
GetPodTemplate returns the original template spec
type GenericController ¶
GenericController is a base implementation with some free methods for inherited structs
func (GenericController) GetName ¶
func (g GenericController) GetName() string
GetName is inherited by all controllers using generic controller to get the name of the controller
func (GenericController) GetNamespace ¶
func (g GenericController) GetNamespace() string
GetNamespace is inherited by all controllers using generic controller to get the namespace of the controller
type Interface ¶
type Interface interface { GetName() string GetNamespace() string GetPodTemplate() *kubeAPICoreV1.PodTemplateSpec GetPodSpec() *kubeAPICoreV1.PodSpec GetKind() config.SupportedController GetObjectMeta() kubeAPIMetaV1.ObjectMeta }
Interface is an interface for k8s controllers (e.g. Deployments and StatefulSets)
func LoadControllersByKind ¶
func LoadControllersByKind(controllerKind config.SupportedController, kubeResources *kube.ResourceProvider) ([]Interface, error)
LoadControllersByKind loads a list of controllers from the kubeResources by detecting their type
func NewCronJobController ¶
func NewCronJobController(originalDeploymentResource kubeAPIBatchV1beta1.CronJob) Interface
NewCronJobController builds a new controller interface for Deployments
func NewDaemonSetController ¶
func NewDaemonSetController(originalResource kubeAPIAppsV1.DaemonSet) Interface
NewDaemonSetController builds a new controller interface for Deployments
func NewDeploymentController ¶
func NewDeploymentController(originalDeploymentResource kubeAPIAppsV1.Deployment) Interface
NewDeploymentController builds a new controller interface for Deployments
func NewJobController ¶
func NewJobController(originalResource kubeAPIBatchV1.Job) Interface
NewJobController builds a new controller interface for Deployments
func NewNakedPodController ¶
func NewNakedPodController(originalNakedPodResource kubeAPICoreV1.Pod) Interface
NewNakedPodController builds a new controller interface for NakedPods
func NewReplicationControllerController ¶
func NewReplicationControllerController(originalResource kubeAPICoreV1.ReplicationController) Interface
NewReplicationControllerController builds a new controller interface for Deployments
func NewStatefulSetController ¶
func NewStatefulSetController(originalResource kubeAPIAppsV1.StatefulSet) Interface
NewStatefulSetController builds a statefulset controller
type JobController ¶
type JobController struct { GenericController K8SResource kubeAPIBatchV1.Job }
JobController is an implementation of controller for deployments
func (JobController) GetKind ¶
func (j JobController) GetKind() config.SupportedController
GetKind returns the supportedcontroller enum type
func (JobController) GetObjectMeta ¶
func (j JobController) GetObjectMeta() kubeAPIMetaV1.ObjectMeta
GetObjectMeta returns the metadata
func (JobController) GetPodSpec ¶
func (j JobController) GetPodSpec() *kubeAPICoreV1.PodSpec
GetPodSpec returns the original kubernetes template pod spec
func (JobController) GetPodTemplate ¶
func (j JobController) GetPodTemplate() *kubeAPICoreV1.PodTemplateSpec
GetPodTemplate returns the original template spec
type NakedPodController ¶
type NakedPodController struct { GenericController K8SResource kubeAPICoreV1.Pod }
NakedPodController is an implementation of controller for deployments
func (NakedPodController) GetKind ¶
func (n NakedPodController) GetKind() config.SupportedController
GetKind returns the supportedcontroller enum type
func (NakedPodController) GetObjectMeta ¶
func (n NakedPodController) GetObjectMeta() kubeAPIMetaV1.ObjectMeta
GetObjectMeta returns the metadata
func (NakedPodController) GetPodSpec ¶
func (n NakedPodController) GetPodSpec() *kubeAPICoreV1.PodSpec
GetPodSpec returns the original kubernetes template pod spec
func (NakedPodController) GetPodTemplate ¶
func (n NakedPodController) GetPodTemplate() *kubeAPICoreV1.PodTemplateSpec
GetPodTemplate returns the original template spec
type ReplicationControllerController ¶
type ReplicationControllerController struct { GenericController K8SResource kubeAPICoreV1.ReplicationController }
ReplicationControllerController is an implementation of controller for deployments
func (ReplicationControllerController) GetKind ¶
func (r ReplicationControllerController) GetKind() config.SupportedController
GetKind returns the supportedcontroller enum type
func (ReplicationControllerController) GetObjectMeta ¶
func (r ReplicationControllerController) GetObjectMeta() kubeAPIMetaV1.ObjectMeta
GetObjectMeta returns the metadata
func (ReplicationControllerController) GetPodSpec ¶
func (r ReplicationControllerController) GetPodSpec() *kubeAPICoreV1.PodSpec
GetPodSpec returns the original kubernetes template pod spec
func (ReplicationControllerController) GetPodTemplate ¶
func (r ReplicationControllerController) GetPodTemplate() *kubeAPICoreV1.PodTemplateSpec
GetPodTemplate returns the original template spec
type StatefulSetController ¶
type StatefulSetController struct { GenericController K8SResource kubeAPIAppsV1.StatefulSet }
StatefulSetController is an implementation of controller for deployments
func (StatefulSetController) GetKind ¶
func (s StatefulSetController) GetKind() config.SupportedController
GetKind returns the supportedcontroller enum type
func (StatefulSetController) GetObjectMeta ¶
func (s StatefulSetController) GetObjectMeta() kubeAPIMetaV1.ObjectMeta
GetObjectMeta returns the metadata
func (StatefulSetController) GetPodSpec ¶
func (s StatefulSetController) GetPodSpec() *kubeAPICoreV1.PodSpec
GetPodSpec returns the podspec from the original kubernetes resource
func (StatefulSetController) GetPodTemplate ¶
func (s StatefulSetController) GetPodTemplate() *kubeAPICoreV1.PodTemplateSpec
GetPodTemplate returns the kubernetes template spec