class Pyrite::Api::Core::V1::ContainerState
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.
Defined in:
versions/v1.14/api/core/v1/container_state.crConstructors
-
.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
ContainerState holds a possible state of container.
-
.new(pull : JSON::PullParser)
ContainerState holds a possible state of container.
- .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 methods inherited from class Pyrite::Kubernetes::Spec
new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)new(pull : JSON::PullParser) new
Constructor Detail
def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
#
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.
def self.new(pull : JSON::PullParser)
#
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.
def self.new(*, running : Api::Core::V1::ContainerStateRunning? = nil, terminated : Api::Core::V1::ContainerStateTerminated? = nil, waiting : Api::Core::V1::ContainerStateWaiting? = nil)
#