containers

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2021 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Capabilities

type Capabilities struct {
	Add  []string
	Drop []string
}

Capabilities represents Kubernetes Capabilities

type ConfigMapKey

type ConfigMapKey struct {
	ConfigMapName string
	Key           string
	Optional      bool
}

ConfigMapKey represents Kubernetes ConfigMapKey

type ConfigMapRef

type ConfigMapRef struct {
	Name     string
	Optional bool
}

ConfigMapRef represents Kubernetes ConfigMapRef

type Container

type Container struct {
	Name                     string
	Args                     []string
	Command                  []string
	Env                      EnvVars
	EnvFrom                  EnvFroms
	Image                    string
	ImagePullPolicy          string
	Lifecycle                Lifecycle
	LivenessProbe            Probe
	Ports                    Ports
	ReadinessProbe           Probe
	Resources                Resources
	SecurityContext          SecurityContext
	StartupProbe             Probe
	Stdin                    bool
	StdinOnce                bool
	TerminationMessagePath   string
	TerminationMessagePolicy string
	TTY                      bool
	VolumeDevices            VolumeDevices
	VolumeMounts             VolumeMounts
	WorkingDir               string
}

Container represents Kubernetes Container

func (*Container) ToK8S

func (c *Container) ToK8S() v1.Container

ToK8S converts Container to Kuberntes client object

type Containers

type Containers []Container

Containers represents Kubernetes Containers

func (Containers) ToK8S

func (cs Containers) ToK8S() (l []v1.Container)

ToK8S converts Containers to Kuberntes client objects

type EnvFrom

type EnvFrom struct {
	Prefix    string
	ConfigMap ConfigMapRef
	Secret    SecretRef
}

EnvFrom represents Kubernetes EnvFromSource

type EnvFroms

type EnvFroms []EnvFrom

EnvFroms represents Kubernetes EnvFromSources

type EnvVar

type EnvVar struct {
	Name      string
	Value     string
	ValueFrom ValueFrom
}

EnvVar represents Kubernetes EnvVar

type EnvVars

type EnvVars []EnvVar

EnvVars represents Kubernetes EnvVars

type EphemeralContainer

type EphemeralContainer struct {
	EphemeralContainerCommon
	TargetContainerName string
}

EphemeralContainer represents Kubernetes EphemeralContainer

func (*EphemeralContainer) ToK8S

ToK8S converts EphemeralContainer to Kuberntes client object

type EphemeralContainerCommon

type EphemeralContainerCommon struct {
	Name                     string
	Args                     []string
	Command                  []string
	Env                      EnvVars
	EnvFrom                  EnvFroms
	Image                    string
	ImagePullPolicy          string
	Lifecycle                Lifecycle
	LivenessProbe            Probe
	Ports                    Ports
	ReadinessProbe           Probe
	Resources                Resources
	SecurityContext          SecurityContext
	StartupProbe             Probe
	Stdin                    bool
	StdinOnce                bool
	TerminationMessagePath   string
	TerminationMessagePolicy string
	TTY                      bool
	VolumeDevices            VolumeDevices
	VolumeMounts             VolumeMounts
	WorkingDir               string
}

EphemeralContainerCommon represents Kubernetes EphemeralContainerCommon

type EphemeralContainers

type EphemeralContainers []EphemeralContainer

EphemeralContainers represents Kubernetes EphemeralContainers

func (EphemeralContainers) ToK8S

func (ecs EphemeralContainers) ToK8S() (l []v1.EphemeralContainer)

ToK8S converts EphemeralContainers to Kuberntes client objects

type ExecHandler

type ExecHandler struct {
	Command []string
}

ExecHandler represents Kubernetes ExecAction Handler

type ExecProbe

type ExecProbe struct {
	FailureThreshold    int32
	Handler             ExecHandler
	InitialDelaySeconds int32
	PeriodSeconds       int32
	SuccessThreshold    int32
	TimeoutSeconds      int32
}

ExecProbe represents Kubernetes ExecHandler Probe

type Field

type Field struct {
	APIVersion string
	Path       string
}

Field represents Kubernetes ObjectFieldSelector

type HTTPGetHandler

type HTTPGetHandler struct {
	Host        string
	Path        string
	Port        string
	Scheme      string
	HTTPHeaders HTTPHeaders
}

HTTPGetHandler represents Kubernetes HTTPGetAction Handler

type HTTPGetProbe

type HTTPGetProbe struct {
	FailureThreshold    int32
	Handler             HTTPGetHandler
	InitialDelaySeconds int32
	PeriodSeconds       int32
	SuccessThreshold    int32
	TimeoutSeconds      int32
}

HTTPGetProbe represents Kubernetes HTTPGetHandler Probe

type HTTPHeader

type HTTPHeader struct {
	Name  string
	Value string
}

HTTPHeader represents Kubernetes HTTPHeader

type HTTPHeaders

type HTTPHeaders []HTTPHeader

HTTPHeaders represents Kubernetes HTTPHeader

type Handler

type Handler struct {
	Exec      *ExecHandler
	HTTPGet   *HTTPGetHandler
	TCPSocket *TCPSocketHandler
}

Handler represents Kubernetes Handler

type Lifecycle

type Lifecycle struct {
	PostStart *Handler
	PreStop   *Handler
}

Lifecycle represents Kubernetes Lifecycle

type Limit

type Limit struct {
	CPU              string
	Memory           string
	Storage          string
	EphemeralStorage string
}

Limit represents Kubernetes ResourceList with Limits

type Port

type Port struct {
	Name          string
	ContainerPort int32
	HostIP        string
	HostPort      int32
	Protocol      string
}

Port represents Kubernetes ContainerPort

type Ports

type Ports []Port

Ports represents Kubernetes ContainerPorts

type Probe

type Probe struct {
	Exec      *ExecProbe
	HTTPGet   *HTTPGetProbe
	TCPSocket *TCPSocketProbe
}

Probe represents Kubernetes Probe

type Request

type Request struct {
	CPU              string
	Memory           string
	Storage          string
	EphemeralStorage string
}

Request represents Kubernetes ResourceList with Requests

type ResourceField

type ResourceField struct {
	ContainerName string
	Resource      string
	Divisor       string
}

ResourceField represents Kubernetes ResourceField

type Resources

type Resources struct {
	Limit   Limit
	Request Request
}

Resources represents Kubernetes ResourceRequirements

type SELinuxOptions

type SELinuxOptions struct {
	User  string
	Role  string
	Type  string
	Level string
}

SELinuxOptions represents Kubernetes SELinuxOptions

type SecretKey

type SecretKey struct {
	SecretName string
	Key        string
	Optional   bool
}

SecretKey represents Kubernetes SecretKey

type SecretRef

type SecretRef struct {
	Name     string
	Optional bool
}

SecretRef represents Kubernetes SecretRef

type SecurityContext

type SecurityContext struct {
	AllowPrivilegeEscalation bool
	Capabilities             Capabilities
	Privileged               bool
	ProcMount                string
	ReadOnlyRootFilesystem   bool
	RunAsGroup               int64
	RunAsNonRoot             bool
	RunAsUser                int64
	SELinuxOptions           SELinuxOptions
	WindowsOptions           WindowsOptions
}

SecurityContext represents Kubernetes SecurityContext

type TCPSocketHandler

type TCPSocketHandler struct {
	Host string
	Port string
}

TCPSocketHandler represents Kubernetes TCPSocket Handler

type TCPSocketProbe

type TCPSocketProbe struct {
	FailureThreshold    int32
	Handler             TCPSocketHandler
	InitialDelaySeconds int32
	PeriodSeconds       int32
	SuccessThreshold    int32
	TimeoutSeconds      int32
}

TCPSocketProbe represents Kubernetes TCPSocketHandler Probe

type ValueFrom

type ValueFrom struct {
	Field         Field
	ResourceField ResourceField
	ConfigMap     ConfigMapKey
	Secret        SecretKey
}

ValueFrom represents Kubernetes ValueFrom

type VolumeDevice

type VolumeDevice struct {
	Name       string
	DevicePath string
}

VolumeDevice represents Kubernetes VolumeDevice

type VolumeDevices

type VolumeDevices []VolumeDevice

VolumeDevices represents Kubernetes VolumeDevices

type VolumeMount

type VolumeMount struct {
	Name      string
	MountPath string
	SubPath   string
	ReadOnly  bool
}

VolumeMount represents Kubernetes VolumeMount

type VolumeMounts

type VolumeMounts []VolumeMount

VolumeMounts represents Kubernetes VolumeMounts

type WindowsOptions

type WindowsOptions struct {
	GMSACredentialSpecName string
	GMSACredentialSpec     string
	RunAsUserName          string
}

WindowsOptions represents Kubernetes WindowsSecurityContextOptions

Jump to

Keyboard shortcuts

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