Documentation
¶
Index ¶
- Constants
- func FalseCondition(t ConditionType, reason ConditionReason, message string) *metav1.Condition
- func Get(o ConditionStatusObject, t ConditionType) *metav1.Condition
- func Has(o ConditionStatusObject, t ConditionType) bool
- func MarkFalse(o ConditionStatusObject, t ConditionType, reason ConditionReason, ...)
- func MarkTrue(o ConditionStatusObject, t ConditionType, reason ConditionReason, ...)
- func MarkUnknown(o ConditionStatusObject, t ConditionType, reason ConditionReason, ...)
- func NilLastTransitionTime(o ConditionStatusObject)
- func Remove(o ConditionStatusObject, t ConditionType)
- func Set(o ConditionStatusObject, condition metav1.Condition)
- func TrueCondition(t ConditionType, reason ConditionReason, message string) *metav1.Condition
- func UnknownCondition(t ConditionType, reason ConditionReason, message string) *metav1.Condition
- type ConditionReason
- type ConditionStatusObject
- type ConditionType
Constants ¶
View Source
const ( ReadyCondition ConditionType = "Ready" SuccessfulReconcileReason ConditionReason = "ReconcileSuccess" ReconcileErrorReason ConditionReason = "ReconcileError" DeletingReason ConditionReason = "Deleting" DeletionFailedReason ConditionReason = "DeletionFailed" GarmAPIErrorReason ConditionReason = "GarmAPIError" UnknownReason ConditionReason = "UnknownReason" )
Common Conditions & Reasons
View Source
const ( ImageReference ConditionType = "ImageReference" FetchingImageRefSuccessReason ConditionReason = "FetchingImageRefSuccess" FetchingImageRefFailedReason ConditionReason = "FetchingImageRefFailed" ScopeReference ConditionType = "ScopeReference" FetchingScopeRefSuccessReason ConditionReason = "FetchingScopeRefSuccess" FetchingScopeRefFailedReason ConditionReason = "FetchingScopeRefFailed" ScopeRefNotReadyReason ConditionReason = "ScopeRefNotReady" DuplicatePoolReason ConditionReason = "DuplicatePoolFound" )
Pool Conditions & Reasons
View Source
const ( PoolManager ConditionType = "PoolManager" PoolManagerRunningReason ConditionReason = "PoolManagerRunning" PoolManagerFailureReason ConditionReason = "PoolManagerFailure" SecretReference ConditionType = "SecretReference" FetchingSecretRefSuccessReason ConditionReason = "FetchingSecretRefSuccess" FetchingSecretRefFailedReason ConditionReason = "FetchingSecretRefFailed" CredentialsReference ConditionType = "CredentialsReference" FetchingCredentialsRefSuccessReason ConditionReason = "CredentialsRefSuccess" FetchingCredentialsRefFailedReason ConditionReason = "CredentialsRefFailed" )
Enterprise, Org & Repo Conditions
View Source
const ( EndpointReference ConditionType = "EndpointReference" FetchingEndpointRefSuccessReason ConditionReason = "FetchingEndpointRefSuccess" FetchingEndpointRefFailedReason ConditionReason = "FetchingEndpointRefFailed" )
Credential Conditions
View Source
const ( GarmServerNotReconciledYetMsg string = "GARM server not reconciled yet" CredentialsNotReconciledYetMsg string = "credentials not reconciled yet" DeletingEnterpriseMsg string = "Deleting enterprise" DeletingOrgMsg string = "Deleting organization" DeletingRepoMsg string = "Deleting repository" DeletingPoolMsg string = "Deleting pool" DeletingEndpointMsg string = "Deleting endpoint" DeletingCredentialsMsg string = "Deleting credentials" // #nosec G101 )
Variables ¶
This section is empty.
Functions ¶
func FalseCondition ¶
func FalseCondition(t ConditionType, reason ConditionReason, message string) *metav1.Condition
func Get ¶
func Get(o ConditionStatusObject, t ConditionType) *metav1.Condition
func Has ¶
func Has(o ConditionStatusObject, t ConditionType) bool
func MarkFalse ¶
func MarkFalse(o ConditionStatusObject, t ConditionType, reason ConditionReason, message string)
func MarkTrue ¶
func MarkTrue(o ConditionStatusObject, t ConditionType, reason ConditionReason, message string)
func MarkUnknown ¶
func MarkUnknown(o ConditionStatusObject, t ConditionType, reason ConditionReason, message string)
func NilLastTransitionTime ¶
func NilLastTransitionTime(o ConditionStatusObject)
func Remove ¶
func Remove(o ConditionStatusObject, t ConditionType)
func Set ¶
func Set(o ConditionStatusObject, condition metav1.Condition)
func TrueCondition ¶
func TrueCondition(t ConditionType, reason ConditionReason, message string) *metav1.Condition
func UnknownCondition ¶
func UnknownCondition(t ConditionType, reason ConditionReason, message string) *metav1.Condition
Types ¶
type ConditionReason ¶
type ConditionReason string
type ConditionStatusObject ¶
type ConditionType ¶
type ConditionType string
Click to show internal directories.
Click to hide internal directories.