Documentation ¶
Index ¶
- func SetAborted(conditions *nmstate.ConditionList, reason nmstate.ConditionReason, ...)
- func SetConfigurationAborted(conditions *nmstate.ConditionList, message string)
- func SetFailed(conditions *nmstate.ConditionList, reason nmstate.ConditionReason, ...)
- func SetFailedToConfigure(conditions *nmstate.ConditionList, message string)
- func SetPending(conditions *nmstate.ConditionList, message string)
- func SetProgressing(conditions *nmstate.ConditionList, message string)
- func SetSuccess(conditions *nmstate.ConditionList, message string)
- type ConditionCount
- func (c ConditionCount) Aborted() int
- func (c ConditionCount) Available() int
- func (c ConditionCount) Failed() int
- func (c ConditionCount) NotAborted() int
- func (c ConditionCount) NotAvailable() int
- func (c ConditionCount) NotFailed() int
- func (c ConditionCount) NotPending() int
- func (c ConditionCount) NotProgressing() int
- func (c ConditionCount) Pending() int
- func (c ConditionCount) Progressing() int
- func (c ConditionCount) String() string
- type CountByConditionStatus
- type EnactmentConditions
- func (ec *EnactmentConditions) NotifyAborted(failedErr error)
- func (ec *EnactmentConditions) NotifyFailedToConfigure(failedErr error)
- func (ec *EnactmentConditions) NotifyGenerateFailure(err error)
- func (ec *EnactmentConditions) NotifyPending()
- func (ec *EnactmentConditions) NotifyProgressing()
- func (ec *EnactmentConditions) NotifySuccess()
- func (ec *EnactmentConditions) Reset()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetAborted ¶ added in v0.35.0
func SetAborted(conditions *nmstate.ConditionList, reason nmstate.ConditionReason, message string)
func SetConfigurationAborted ¶ added in v0.35.0
func SetConfigurationAborted(conditions *nmstate.ConditionList, message string)
func SetFailed ¶
func SetFailed(conditions *nmstate.ConditionList, reason nmstate.ConditionReason, message string)
func SetFailedToConfigure ¶
func SetFailedToConfigure(conditions *nmstate.ConditionList, message string)
func SetPending ¶ added in v0.48.0
func SetPending(conditions *nmstate.ConditionList, message string)
func SetProgressing ¶
func SetProgressing(conditions *nmstate.ConditionList, message string)
func SetSuccess ¶
func SetSuccess(conditions *nmstate.ConditionList, message string)
Types ¶
type ConditionCount ¶
type ConditionCount map[nmstate.ConditionType]CountByConditionStatus
func Count ¶
func Count(enactments nmstatev1beta1.NodeNetworkConfigurationEnactmentList, policyGeneration int64) ConditionCount
func (ConditionCount) Aborted ¶ added in v0.35.0
func (c ConditionCount) Aborted() int
func (ConditionCount) Available ¶
func (c ConditionCount) Available() int
func (ConditionCount) Failed ¶
func (c ConditionCount) Failed() int
func (ConditionCount) NotAborted ¶ added in v0.35.0
func (c ConditionCount) NotAborted() int
func (ConditionCount) NotAvailable ¶
func (c ConditionCount) NotAvailable() int
func (ConditionCount) NotFailed ¶
func (c ConditionCount) NotFailed() int
func (ConditionCount) NotPending ¶ added in v0.48.0
func (c ConditionCount) NotPending() int
func (ConditionCount) NotProgressing ¶
func (c ConditionCount) NotProgressing() int
func (ConditionCount) Pending ¶ added in v0.48.0
func (c ConditionCount) Pending() int
func (ConditionCount) Progressing ¶
func (c ConditionCount) Progressing() int
func (ConditionCount) String ¶
func (c ConditionCount) String() string
type CountByConditionStatus ¶
type CountByConditionStatus map[corev1.ConditionStatus]int
func (CountByConditionStatus) String ¶
func (c CountByConditionStatus) String() string
type EnactmentConditions ¶
type EnactmentConditions struct {
// contains filtered or unexported fields
}
func New ¶
func New(cli client.Client, enactmentKey types.NamespacedName) EnactmentConditions
func (*EnactmentConditions) NotifyAborted ¶ added in v0.35.0
func (ec *EnactmentConditions) NotifyAborted(failedErr error)
func (*EnactmentConditions) NotifyFailedToConfigure ¶
func (ec *EnactmentConditions) NotifyFailedToConfigure(failedErr error)
func (*EnactmentConditions) NotifyGenerateFailure ¶ added in v0.64.0
func (ec *EnactmentConditions) NotifyGenerateFailure(err error)
func (*EnactmentConditions) NotifyPending ¶ added in v0.48.0
func (ec *EnactmentConditions) NotifyPending()
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.