Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CronJob ¶
type CronJob struct {
// contains filtered or unexported fields
}
func (*CronJob) GetMetadata ¶
func (d *CronJob) GetMetadata() v1meta.ObjectMeta
func (*CronJob) GetObjectSpec ¶
func (d *CronJob) GetObjectSpec() interface{}
type KubernetesObject ¶
type KubernetesObject interface { GetMetadata() v1.ObjectMeta GetObjectSpec() interface{} GetType() string }
KubernetesObject presents a consistent way of interacting with various Kubernetes objects
func WrapCronJob ¶
func WrapCronJob(i interface{}) (KubernetesObject, error)
WrapCronJob wraps a v1.CronJob behind a KubernetesObject interface
func WrapDaemonSet ¶
func WrapDaemonSet(i interface{}) (KubernetesObject, error)
WrapDaemonSet wraps a v1.DaemonSet behind a KubernetesObject interface
func WrapDeployment ¶
func WrapDeployment(i interface{}) (KubernetesObject, error)
WrapDeployment wraps a v1.Deployment behind a KubernetesObject interface
func WrapStatefulSet ¶
func WrapStatefulSet(i interface{}) (KubernetesObject, error)
WrapStatefulSet wraps a v1.WrapStatefulSet behind a KubernetesObject interface
type Wrap ¶
type Wrap func(interface{}) (KubernetesObject, error)
Wrap accepts an empty interface and returns a KubernetesObject
Click to show internal directories.
Click to hide internal directories.