Documentation ¶
Index ¶
- func GetCSPICondition(status cstor.CStorPoolInstanceStatus, ...) *cstor.CStorPoolInstanceCondition
- func NewCSPICondition(condType cstor.CStorPoolInstanceConditionType, status corev1.ConditionStatus, ...) *cstor.CStorPoolInstanceCondition
- func RemoveCSPICondition(status *cstor.CStorPoolInstanceStatus, ...)
- func SetCSPICondition(status *cstor.CStorPoolInstanceStatus, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCSPICondition ¶
func GetCSPICondition( status cstor.CStorPoolInstanceStatus, condType cstor.CStorPoolInstanceConditionType) *cstor.CStorPoolInstanceCondition
GetCSPICondition returns the condition with the provided type.
func NewCSPICondition ¶
func NewCSPICondition(condType cstor.CStorPoolInstanceConditionType, status corev1.ConditionStatus, reason, message string) *cstor.CStorPoolInstanceCondition
NewCSPICondition creates a new cspi condition.
func RemoveCSPICondition ¶
func RemoveCSPICondition(status *cstor.CStorPoolInstanceStatus, condType cstor.CStorPoolInstanceConditionType)
RemoveCSPICondition removes the cspi condition with the provided type.
func SetCSPICondition ¶
func SetCSPICondition(status *cstor.CStorPoolInstanceStatus, condition cstor.CStorPoolInstanceCondition)
SetCSPICondition updates the cspi 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 ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.