class K8S::Api::Core::V1::ContainerState
- K8S::Api::Core::V1::ContainerState
- Reference
- Object
Overview
ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.
Included Modules
- JSON::Serializable
- YAML::Serializable
Defined in:
versions/v1.21/api/core/v1/container_state.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(*, running : Api::Core::V1::ContainerStateRunning? = nil, terminated : Api::Core::V1::ContainerStateTerminated? = nil, waiting : Api::Core::V1::ContainerStateWaiting? = nil)
Instance Method Summary
- #running : Api::Core::V1::ContainerStateRunning?
- #running=(running : Api::Core::V1::ContainerStateRunning?)
- #terminated : Api::Core::V1::ContainerStateTerminated?
- #terminated=(terminated : Api::Core::V1::ContainerStateTerminated?)
- #waiting : Api::Core::V1::ContainerStateWaiting?
- #waiting=(waiting : Api::Core::V1::ContainerStateWaiting?)
Constructor Detail
def self.new(*, running : Api::Core::V1::ContainerStateRunning? = nil, terminated : Api::Core::V1::ContainerStateTerminated? = nil, waiting : Api::Core::V1::ContainerStateWaiting? = nil)
#