containers

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2018 License: Apache-2.0 Imports: 2 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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