Documentation ¶
Overview ¶
+k8s:openapi-gen=true +k8s:deepcopy-gen=package,register
Index ¶
- Variables
- func RegisterDefaults(scheme *runtime.Scheme) error
- type Condition
- func (in *Condition) DeepCopy() *Condition
- func (in *Condition) DeepCopyInto(out *Condition)
- func (*Condition) Descriptor() ([]byte, []int)
- func (c Condition) Equal(other Condition) bool
- func (c Condition) IsTrue() bool
- func (m *Condition) Marshal() (dAtA []byte, err error)
- func (m *Condition) MarshalTo(dAtA []byte) (int, error)
- func (m *Condition) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Condition) ProtoMessage()
- func (m *Condition) Reset()
- func (m *Condition) Size() (n int)
- func (this *Condition) String() string
- func (m *Condition) Unmarshal(dAtA []byte) error
- func (c Condition) WithMessage(msg string) Condition
- func (m *Condition) XXX_DiscardUnknown()
- func (m *Condition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Condition) XXX_Merge(src proto.Message)
- func (m *Condition) XXX_Size() int
- func (m *Condition) XXX_Unmarshal(b []byte) error
- type ConditionReason
- type ConditionType
- type ConditionedStatus
- func (in *ConditionedStatus) DeepCopy() *ConditionedStatus
- func (in *ConditionedStatus) DeepCopyInto(out *ConditionedStatus)
- func (*ConditionedStatus) Descriptor() ([]byte, []int)
- func (r *ConditionedStatus) Equal(other *ConditionedStatus) bool
- func (r *ConditionedStatus) GetCondition(t ConditionType) Condition
- func (r *ConditionedStatus) HasCondition(t ConditionType) bool
- func (r *ConditionedStatus) IsConditionTrue(t ConditionType) bool
- func (m *ConditionedStatus) Marshal() (dAtA []byte, err error)
- func (m *ConditionedStatus) MarshalTo(dAtA []byte) (int, error)
- func (m *ConditionedStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ConditionedStatus) ProtoMessage()
- func (m *ConditionedStatus) Reset()
- func (r *ConditionedStatus) SetConditions(c ...Condition)
- func (m *ConditionedStatus) Size() (n int)
- func (this *ConditionedStatus) String() string
- func (m *ConditionedStatus) Unmarshal(dAtA []byte) error
- func (m *ConditionedStatus) XXX_DiscardUnknown()
- func (m *ConditionedStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConditionedStatus) XXX_Merge(src proto.Message)
- func (m *ConditionedStatus) XXX_Size() int
- func (m *ConditionedStatus) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterDefaults ¶
RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.
Types ¶
type Condition ¶
func Ready ¶
func Ready() Condition
Ready returns a condition that indicates the resource is ready for use.
func Unknown ¶
func Unknown() Condition
Unknown returns a condition that indicates the resource is in an unknown status.
func (*Condition) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.
func (*Condition) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Condition) Descriptor ¶ added in v0.0.45
func (Condition) Equal ¶
Equal returns true if the condition is identical to the supplied condition, ignoring the LastTransitionTime.
func (*Condition) MarshalToSizedBuffer ¶ added in v0.0.45
func (*Condition) ProtoMessage ¶ added in v0.0.45
func (*Condition) ProtoMessage()
func (Condition) WithMessage ¶
WithMessage returns a condition by adding the provided message to existing condition.
func (*Condition) XXX_DiscardUnknown ¶ added in v0.0.45
func (m *Condition) XXX_DiscardUnknown()
func (*Condition) XXX_Marshal ¶ added in v0.0.45
func (*Condition) XXX_Unmarshal ¶ added in v0.0.45
type ConditionReason ¶
type ConditionReason string
A ConditionReason represents the reason a resource is in a condition.
const ( ConditionReasonReady ConditionReason = "Ready" ConditionReasonFailed ConditionReason = "Failed" ConditionReasonUnknown ConditionReason = "Unknown" )
Reasons a resource is ready or not
type ConditionType ¶
type ConditionType string
A ConditionType represents a condition type for a given KRM resource
const ( // ConditionTypeReady represents the resource ready condition ConditionTypeReady ConditionType = "Ready" )
Condition Types.
type ConditionedStatus ¶
type ConditionedStatus struct { // Conditions of the resource. // +optional // +listType=map // +listMapKey=type Conditions []Condition `json:"conditions,omitempty" protobuf:"bytes,1,rep,name=conditions"` }
A ConditionedStatus reflects the observed status of a resource. Only one condition of each type may exist.
func NewConditionedStatus ¶
func NewConditionedStatus(c ...Condition) *ConditionedStatus
NewConditionedStatus returns a stat with the supplied conditions set.
func (*ConditionedStatus) DeepCopy ¶
func (in *ConditionedStatus) DeepCopy() *ConditionedStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConditionedStatus.
func (*ConditionedStatus) DeepCopyInto ¶
func (in *ConditionedStatus) DeepCopyInto(out *ConditionedStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ConditionedStatus) Descriptor ¶ added in v0.0.45
func (*ConditionedStatus) Descriptor() ([]byte, []int)
func (*ConditionedStatus) Equal ¶
func (r *ConditionedStatus) Equal(other *ConditionedStatus) bool
Equal returns true if the status is identical to the supplied status, ignoring the LastTransitionTimes and order of statuses.
func (*ConditionedStatus) GetCondition ¶
func (r *ConditionedStatus) GetCondition(t ConditionType) Condition
GetCondition returns the condition for the given ConditionKind if exists, otherwise returns nil
func (*ConditionedStatus) HasCondition ¶
func (r *ConditionedStatus) HasCondition(t ConditionType) bool
HasCondition returns if the condition is set
func (*ConditionedStatus) IsConditionTrue ¶
func (r *ConditionedStatus) IsConditionTrue(t ConditionType) bool
func (*ConditionedStatus) Marshal ¶ added in v0.0.45
func (m *ConditionedStatus) Marshal() (dAtA []byte, err error)
func (*ConditionedStatus) MarshalTo ¶ added in v0.0.45
func (m *ConditionedStatus) MarshalTo(dAtA []byte) (int, error)
func (*ConditionedStatus) MarshalToSizedBuffer ¶ added in v0.0.45
func (m *ConditionedStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ConditionedStatus) ProtoMessage ¶ added in v0.0.45
func (*ConditionedStatus) ProtoMessage()
func (*ConditionedStatus) Reset ¶ added in v0.0.45
func (m *ConditionedStatus) Reset()
func (*ConditionedStatus) SetConditions ¶
func (r *ConditionedStatus) SetConditions(c ...Condition)
SetConditions sets the supplied conditions, replacing any existing conditions of the same type. This is a no-op if all supplied conditions are identical, ignoring the last transition time, to those already set.
func (*ConditionedStatus) Size ¶ added in v0.0.45
func (m *ConditionedStatus) Size() (n int)
func (*ConditionedStatus) String ¶ added in v0.0.45
func (this *ConditionedStatus) String() string
func (*ConditionedStatus) Unmarshal ¶ added in v0.0.45
func (m *ConditionedStatus) Unmarshal(dAtA []byte) error
func (*ConditionedStatus) XXX_DiscardUnknown ¶ added in v0.0.45
func (m *ConditionedStatus) XXX_DiscardUnknown()
func (*ConditionedStatus) XXX_Marshal ¶ added in v0.0.45
func (m *ConditionedStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConditionedStatus) XXX_Merge ¶ added in v0.0.45
func (m *ConditionedStatus) XXX_Merge(src proto.Message)
func (*ConditionedStatus) XXX_Size ¶ added in v0.0.45
func (m *ConditionedStatus) XXX_Size() int
func (*ConditionedStatus) XXX_Unmarshal ¶ added in v0.0.45
func (m *ConditionedStatus) XXX_Unmarshal(b []byte) error