Documentation
¶
Index ¶
- type BaseRuntime
- type CloudVolumeSpec
- type Container
- type ContainerSpec
- type Dependency
- type DependencyPolicy
- type ExpectState
- type HealthCnfOptions
- type HealthConfig
- type HealthState
- type ImRuntime
- type ImSpec
- type Pod
- type PodGroup
- type PodGroupSpec
- type PodGroupWithSpec
- type PodPrevState
- type PodSpec
- type RestartPolicy
- type RunState
- type SharedPodWithSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseRuntime ¶
type CloudVolumeSpec ¶
type ContainerSpec ¶
type ContainerSpec struct {
ImSpec
Image string
Env []string
User string
WorkingDir string
DnsSearch []string
Volumes []string // a stateful flag
SystemVolumes []string // not a stateful flag, every node has system volumes
CloudVolumes []CloudVolumeSpec
Command []string
Entrypoint []string
CpuLimit int
MemoryLimit int64
Expose int
LogConfig adoc.LogConfig
}
type Dependency ¶
type Dependency struct {
PodName string
Policy DependencyPolicy
}
type DependencyPolicy ¶
type DependencyPolicy int
type ExpectState ¶
type ExpectState int
type HealthCnfOptions ¶
type HealthConfig ¶
type HealthConfig struct {
Cmd string `json:"cmd"`
Options HealthCnfOptions `json:"options"`
}
type HealthState ¶
type HealthState int
type ImRuntime ¶
type ImRuntime struct {
BaseRuntime
TargetState ExpectState
DriftCount int
RestartCount int
RestartAt time.Time
}
type PodGroup ¶
type PodGroup struct {
Pods []Pod
BaseRuntime
}
type PodGroupSpec ¶
type PodGroupSpec struct {
ImSpec
Pod PodSpec
NumInstances int
RestartPolicy RestartPolicy
}
type PodGroupWithSpec ¶
type PodGroupWithSpec struct {
Spec PodGroupSpec
PrevState []PodPrevState
PodGroup
}
type PodPrevState ¶
type PodSpec ¶
type PodSpec struct {
ImSpec
Network string
Containers []ContainerSpec
Filters []string // for cluster scheduling
Labels map[string]string
Dependencies []Dependency
Annotation string
Stateful bool
SetupTime int
KillTimeout int
PrevState PodPrevState
HealthConfig HealthConfig
}
type RestartPolicy ¶
type RestartPolicy int
type SharedPodWithSpec ¶
type SharedPodWithSpec struct {
}
Click to show internal directories.
Click to hide internal directories.