wrapper

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

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{}

func (*CronJob) GetType

func (d *CronJob) GetType() string

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

Jump to

Keyboard shortcuts

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