Documentation
¶
Index ¶
- type Capabilities
- type ConfigMapKey
- type ConfigMapRef
- type Container
- type Containers
- type EnvFrom
- type EnvFroms
- type EnvVar
- type EnvVars
- type EphemeralContainer
- type EphemeralContainerCommon
- type EphemeralContainers
- type ExecHandler
- type ExecProbe
- type Field
- type HTTPGetHandler
- type HTTPGetProbe
- type HTTPHeader
- type HTTPHeaders
- type Handler
- type Lifecycle
- type Limit
- type Port
- type Ports
- type Probe
- type Request
- type ResourceField
- type Resources
- type SELinuxOptions
- type SecretKey
- type SecretRef
- type SecurityContext
- type TCPSocketHandler
- type TCPSocketProbe
- type ValueFrom
- type VolumeDevice
- type VolumeDevices
- type VolumeMount
- type VolumeMounts
- type WindowsOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Capabilities ¶
Capabilities represents Kubernetes Capabilities
type ConfigMapKey ¶
ConfigMapKey represents Kubernetes ConfigMapKey
type ConfigMapRef ¶
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
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 EphemeralContainer ¶
type EphemeralContainer struct {
EphemeralContainerCommon
TargetContainerName string
}
EphemeralContainer represents Kubernetes EphemeralContainer
func (*EphemeralContainer) ToK8S ¶
func (ec *EphemeralContainer) ToK8S() v1.EphemeralContainer
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 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 ¶
HTTPHeader represents Kubernetes HTTPHeader
type Handler ¶
type Handler struct {
Exec *ExecHandler
HTTPGet *HTTPGetHandler
TCPSocket *TCPSocketHandler
}
Handler represents Kubernetes Handler
type Probe ¶
type Probe struct {
Exec *ExecProbe
HTTPGet *HTTPGetProbe
TCPSocket *TCPSocketProbe
}
Probe represents Kubernetes Probe
type ResourceField ¶
ResourceField represents Kubernetes ResourceField
type SELinuxOptions ¶
SELinuxOptions represents Kubernetes SELinuxOptions
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 ¶
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 ¶
VolumeDevice represents Kubernetes VolumeDevice
type VolumeDevices ¶
type VolumeDevices []VolumeDevice
VolumeDevices represents Kubernetes VolumeDevices
type VolumeMount ¶
VolumeMount represents Kubernetes VolumeMount
type WindowsOptions ¶
type WindowsOptions struct {
GMSACredentialSpecName string
GMSACredentialSpec string
RunAsUserName string
}
WindowsOptions represents Kubernetes WindowsSecurityContextOptions