Documentation
¶
Overview ¶
Package policy inspects and verifies any potential state drift in order to either allow the reconciliation loop to continue, or cancel it. Only valid state drifts can be applied within the underlying infrastructure.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Policy ¶
type Policy struct {
// contains filtered or unexported fields
}
func (*Policy) Cancel ¶
Cancel tells us whether it is safe to proceed with the next CloudFormation update this time around. Note that Cancel uses the stack cache that is being purged at the start of every reconciliation loop. Further note that any internal error causes Cancel to return true, which is meant to stop processing in case our understanding of the current state of the system is incomplete.
func (*Policy) Delete ¶
func (p *Policy) Delete()
Delete purges the underlying local cache, causing Cancel to fetch the latest version of the stack object state again over network.
func (*Policy) Drift ¶
Drift returns all cached artifact releases that have valid state drift according to the provided ready flag. In other words, the cache objects returned here indicate that their respective releases should be updated.