Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSkipped = errors.New("skipped performing")
ErrSkipped is returned when an edge skips performing because the operation would be a no-op.
Functions ¶
This section is empty.
Types ¶
type PromotionEdge ¶
PromotionEdge is a type edge implementation which supports promoting from a source phase to a destination phase.
func Promotes ¶
func Promotes[R core.Resource](from typed.Phase[R], to typed.UpdatablePhase[R]) *PromotionEdge[R]
func (*PromotionEdge[R]) CanPerform ¶
func (s *PromotionEdge[R]) CanPerform(ctx context.Context) (bool, error)
func (*PromotionEdge[R]) From ¶
func (s *PromotionEdge[R]) From() core.Descriptor
func (*PromotionEdge[R]) Kind ¶
func (s *PromotionEdge[R]) Kind() string
func (*PromotionEdge[R]) Perform ¶
Perform causes a promotion from a dependent to a target phase. The phase fetches both its current resource state, and that of the promotion source phase. If the resources differ, then the phase updates its source to match the promoted version.
func (*PromotionEdge[R]) To ¶
func (s *PromotionEdge[R]) To() core.Descriptor
Click to show internal directories.
Click to hide internal directories.