k8s

package
v0.0.0-...-621fd20 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2020 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	Obj *corev1.Container
}

Container abstraction

func NewContainer

func NewContainer(name, image string, command []string) Container

NewContainer create new Container object

func (Container) AddVolume

func (c Container) AddVolume(vol corev1.VolumeMount)

AddVolume extends Container volume mouns with a Volume

type Deployment

type Deployment struct {
	Obj *k8sapps.Deployment
}

Deployment abstraction

func NewDeployment

func NewDeployment(name, namespace string, replicas *int32, labels map[string]string) Deployment

NewDeployment creates new Deployment object

func (Deployment) AddContainer

func (d Deployment) AddContainer(c Container)

AddContainer extends Deployment pod with a Container

func (Deployment) AddVolume

func (d Deployment) AddVolume(v Volume)

AddVolume extends Deployment pod with a Volume

type Volume

type Volume struct {
	Obj *corev1.Volume
}

Volume abstraction

func NewEmptyVolume

func NewEmptyVolume(name string) Volume

func NewVolume

func NewVolume(name, objRefName string) Volume

NewVolume creates ConfigMap based volume object

Jump to

Keyboard shortcuts

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