Documentation ¶
Index ¶
- func SetFailed(conditions *nmstate.ConditionList, reason nmstate.ConditionReason, ...)
- func SetFailedToConfigure(conditions *nmstate.ConditionList, message string)
- func SetMatching(conditions *nmstate.ConditionList, message string)
- func SetNodeSelectorNotMatching(conditions *nmstate.ConditionList, message string)
- func SetNotMatching(conditions *nmstate.ConditionList, reason nmstate.ConditionReason, ...)
- func SetProgressing(conditions *nmstate.ConditionList, message string)
- func SetSuccess(conditions *nmstate.ConditionList, message string)
- type ConditionCount
- func (c ConditionCount) Available() int
- func (c ConditionCount) Failed() int
- func (c ConditionCount) Matching() int
- func (c ConditionCount) NotAvailable() int
- func (c ConditionCount) NotFailed() int
- func (c ConditionCount) NotMatching() int
- func (c ConditionCount) NotProgressing() int
- func (c ConditionCount) Progressing() int
- func (c ConditionCount) String() string
- type CountByConditionStatus
- type EnactmentConditions
- func (ec *EnactmentConditions) NotifyFailedToConfigure(failedErr error)
- func (ec *EnactmentConditions) NotifyMatching()
- func (ec *EnactmentConditions) NotifyNodeSelectorFailure(err error)
- func (ec *EnactmentConditions) NotifyNodeSelectorNotMatching(unmatchingLabels map[string]string)
- func (ec *EnactmentConditions) NotifyProgressing()
- func (ec *EnactmentConditions) NotifySuccess()
- func (ec *EnactmentConditions) Reset()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetFailed ¶
func SetFailed(conditions *nmstate.ConditionList, reason nmstate.ConditionReason, message string)
func SetFailedToConfigure ¶
func SetFailedToConfigure(conditions *nmstate.ConditionList, message string)
func SetMatching ¶
func SetMatching(conditions *nmstate.ConditionList, message string)
func SetNodeSelectorNotMatching ¶
func SetNodeSelectorNotMatching(conditions *nmstate.ConditionList, message string)
func SetNotMatching ¶
func SetNotMatching(conditions *nmstate.ConditionList, reason nmstate.ConditionReason, message string)
func SetProgressing ¶
func SetProgressing(conditions *nmstate.ConditionList, message string)
func SetSuccess ¶
func SetSuccess(conditions *nmstate.ConditionList, message string)
Types ¶
type ConditionCount ¶ added in v0.22.0
type ConditionCount map[nmstate.ConditionType]CountByConditionStatus
func Count ¶
func Count(enactments nmstatev1beta1.NodeNetworkConfigurationEnactmentList, policyGeneration int64) ConditionCount
func (ConditionCount) Available ¶ added in v0.22.0
func (c ConditionCount) Available() int
func (ConditionCount) Failed ¶ added in v0.22.0
func (c ConditionCount) Failed() int
func (ConditionCount) Matching ¶ added in v0.22.0
func (c ConditionCount) Matching() int
func (ConditionCount) NotAvailable ¶ added in v0.22.0
func (c ConditionCount) NotAvailable() int
func (ConditionCount) NotFailed ¶ added in v0.22.0
func (c ConditionCount) NotFailed() int
func (ConditionCount) NotMatching ¶ added in v0.22.0
func (c ConditionCount) NotMatching() int
func (ConditionCount) NotProgressing ¶ added in v0.22.0
func (c ConditionCount) NotProgressing() int
func (ConditionCount) Progressing ¶ added in v0.22.0
func (c ConditionCount) Progressing() int
func (ConditionCount) String ¶ added in v0.22.0
func (c ConditionCount) String() string
type CountByConditionStatus ¶ added in v0.22.0
type CountByConditionStatus map[corev1.ConditionStatus]int
func (CountByConditionStatus) String ¶ added in v0.22.0
func (c CountByConditionStatus) String() string
type EnactmentConditions ¶
type EnactmentConditions struct {
// contains filtered or unexported fields
}
func New ¶
func New(client client.Client, enactmentKey types.NamespacedName) EnactmentConditions
func (*EnactmentConditions) NotifyFailedToConfigure ¶
func (ec *EnactmentConditions) NotifyFailedToConfigure(failedErr error)
func (*EnactmentConditions) NotifyMatching ¶
func (ec *EnactmentConditions) NotifyMatching()
func (*EnactmentConditions) NotifyNodeSelectorFailure ¶
func (ec *EnactmentConditions) NotifyNodeSelectorFailure(err error)
func (*EnactmentConditions) NotifyNodeSelectorNotMatching ¶
func (ec *EnactmentConditions) NotifyNodeSelectorNotMatching(unmatchingLabels map[string]string)
func (*EnactmentConditions) NotifyProgressing ¶
func (ec *EnactmentConditions) NotifyProgressing()
func (*EnactmentConditions) NotifySuccess ¶
func (ec *EnactmentConditions) NotifySuccess()
func (*EnactmentConditions) Reset ¶
func (ec *EnactmentConditions) Reset()
Click to show internal directories.
Click to hide internal directories.