Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpdateClaim ¶
func UpdateClaim(claim *k8s.ServicePlanClaim, update Update)
UpdateClaim updates claim in-place, according to update
func UpdateIsTerminal ¶
UpdateIsTerminal returns true if u will, after applied to a ServicePlanClaim, result in the claim being in a potentially terminal state. Note that "potentially terminal state" doesn't necessarily mean that the claim is no longer actionable. It just means that steward has the option to not _automatically_ take more action on the claim. For example, a 'provision' claim will result in the claim becoming 'provisioned', which is a potentially terminal state. At this point, steward doesn't need to take further action on the claim, but it will if the user sets the claim's action to 'bind'
Types ¶
type Current ¶
type Current struct { Status k8s.ServicePlanClaimStatus StatusValid bool Action k8s.ServicePlanClaimAction EventType watch.EventType }
Current represents the current state of a ServicePlanClaim
func NewCurrent ¶
func NewCurrent( status k8s.ServicePlanClaimStatus, action k8s.ServicePlanClaimAction, evtType watch.EventType, ) Current
NewCurrent returns a new Current with the given parameters and StatusValid set to true
func NewCurrentNoStatus ¶
func NewCurrentNoStatus(action k8s.ServicePlanClaimAction, evtType watch.EventType) Current
NewCurrentNoStatus returns a new Current without a Status and StatusValid set to false
type Update ¶
type Update interface { fmt.Stringer Status() k8s.ServicePlanClaimStatus Description() string InstanceID() string BindID() string Extra() mode.JSONObject }
Update represents the update to the state of a ServicePlanClaim
func ErrUpdate ¶
ErrUpdate returns a new Update implementation that has a failed status and status description equal to e.Error()
func FullUpdate ¶
func FullUpdate(st k8s.ServicePlanClaimStatus, desc, instID, bindID string, extra mode.JSONObject) Update
FullUpdate returns an Update implementation with all fields filled in
func StatusUpdate ¶
func StatusUpdate(st k8s.ServicePlanClaimStatus) Update
StatusUpdate returns an Update implementation that only updates the status field of a claim