containers

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OContainer

type OContainer struct {
	kapi.Container
}

func Container

func Container(name, image string) *OContainer

func (*OContainer) Command

func (c *OContainer) Command(args ...string) *OContainer

func (*OContainer) EnvVar

func (c *OContainer) EnvVar(name, value string) *OContainer

func (*OContainer) EnvVars

func (c *OContainer) EnvVars(envs []kapi.EnvVar) *OContainer

func (*OContainer) Ports

func (c *OContainer) Ports(ports ...*OContainerPort) *OContainer

func (*OContainer) ResourceLimit

func (c *OContainer) ResourceLimit(name kapi.ResourceName, q resource.Quantity) *OContainer

TODO we might want to add some handling around building Quantities too

func (*OContainer) ResourceRequest

func (c *OContainer) ResourceRequest(name kapi.ResourceName, q resource.Quantity) *OContainer

func (*OContainer) SetLivenessProbe

func (c *OContainer) SetLivenessProbe(probe kapi.Probe) *OContainer

func (*OContainer) SetReadinessProbe

func (c *OContainer) SetReadinessProbe(probe kapi.Probe) *OContainer

func (*OContainer) SetVolumeMount

func (c *OContainer) SetVolumeMount(name, mountpath string, ro bool) *OContainer

type OContainerPort

type OContainerPort struct {
	kapi.ContainerPort
}

func ContainerPort

func ContainerPort(name string, port int) *OContainerPort

func (*OContainerPort) HostIP

func (cp *OContainerPort) HostIP(hostip string) *OContainerPort

func (*OContainerPort) HostPort

func (cp *OContainerPort) HostPort(port int) *OContainerPort

func (*OContainerPort) Protocol

func (cp *OContainerPort) Protocol(proto kapi.Protocol) *OContainerPort

func (*OContainerPort) SetName

func (cp *OContainerPort) SetName(name string) *OContainerPort

Jump to

Keyboard shortcuts

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