Documentation ¶
Index ¶
- func GetGitTrackCondition(status farosv1alpha1.GitTrackStatus, ...) *farosv1alpha1.GitTrackCondition
- func NewGitTrackCondition(condType farosv1alpha1.GitTrackConditionType, status v1.ConditionStatus, ...) *farosv1alpha1.GitTrackCondition
- func RemoveGitTrackCondition(status *farosv1alpha1.GitTrackStatus, ...)
- func SetGitTrackCondition(status *farosv1alpha1.GitTrackStatus, ...)
- type ConditionReason
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGitTrackCondition ¶
func GetGitTrackCondition(status farosv1alpha1.GitTrackStatus, condType farosv1alpha1.GitTrackConditionType) *farosv1alpha1.GitTrackCondition
GetGitTrackCondition returns the condition with the provided type.
func NewGitTrackCondition ¶
func NewGitTrackCondition(condType farosv1alpha1.GitTrackConditionType, status v1.ConditionStatus, reason ConditionReason, message string) *farosv1alpha1.GitTrackCondition
NewGitTrackCondition creates a new GitTrack condition.
func RemoveGitTrackCondition ¶
func RemoveGitTrackCondition(status *farosv1alpha1.GitTrackStatus, condType farosv1alpha1.GitTrackConditionType)
RemoveGitTrackCondition removes the GitTrack condition with the provided type.
func SetGitTrackCondition ¶
func SetGitTrackCondition(status *farosv1alpha1.GitTrackStatus, condition farosv1alpha1.GitTrackCondition)
SetGitTrackCondition updates the GitTrack to include the provided condition. If the condition that we are about to add already exists and has the same status and reason then we are not going to update.
Types ¶
type ConditionReason ¶
type ConditionReason string
ConditionReason represents a valid condition reason
const ( // StatusUnknown is the default ConditionReason for all conditions StatusUnknown ConditionReason = "StatusUnknown" // ErrorFetchingFiles represents the condition reason when an error occurs // fetching files from the repository ErrorFetchingFiles ConditionReason = "ErrorFetchingFiles" // GitFetchSuccess represents the condition reason when no error occurs // fecthing files from the repository GitFetchSuccess ConditionReason = "GitFetchSuccess" // ErrorParsingFiles represents the condition reason when an error occurs // parsing files from the repository ErrorParsingFiles ConditionReason = "ErrorParsingFiles" // FileParseSuccess represents the condition reason when no error occurs // parsing files from the repository FileParseSuccess ConditionReason = "FileParseSuccess" // ErrorUpdatingChildren represents the condition reason when an error occurs // updating the child objects ErrorUpdatingChildren ConditionReason = "ErrorUpdatingChildren" // ChildrenUpdateSuccess represents the condition reason when no error occurs // updating the child objects ChildrenUpdateSuccess ConditionReason = "ChildUpdateSuccess" // ErrorDeletingChildren represents the condition reason when an error occurs // removing orphaned children ErrorDeletingChildren ConditionReason = "ErrorDeletingChildren" // GCSuccess represents the condition reason when no error occurs // removing orphaned children GCSuccess ConditionReason = "GCSuccess" )
Click to show internal directories.
Click to hide internal directories.