Documentation ¶
Index ¶
- type OContainer
- func (c *OContainer) Command(args ...string) *OContainer
- func (c *OContainer) EnvVar(name, value string) *OContainer
- func (c *OContainer) EnvVars(envs []kapi.EnvVar) *OContainer
- func (c *OContainer) Ports(ports ...*OContainerPort) *OContainer
- func (c *OContainer) ResourceLimit(name kapi.ResourceName, q resource.Quantity) *OContainer
- func (c *OContainer) ResourceRequest(name kapi.ResourceName, q resource.Quantity) *OContainer
- func (c *OContainer) SetLivenessProbe(probe kapi.Probe) *OContainer
- func (c *OContainer) SetReadinessProbe(probe kapi.Probe) *OContainer
- func (c *OContainer) SetVolumeMount(name, mountpath string, ro bool) *OContainer
- type OContainerPort
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OContainer ¶
func NewOContainer ¶ added in v0.5.5
func NewOContainer(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
Click to show internal directories.
Click to hide internal directories.