Documentation ¶
Index ¶
- type ActionPlan
- func (ap *ActionPlan) GetRemovedHostsNum() int
- func (ap *ActionPlan) HasActionsToDo() bool
- func (ap *ActionPlan) String() string
- func (ap *ActionPlan) WalkAdded(clusterFunc func(cluster api.ICluster), shardFunc func(shard api.IShard), ...)
- func (ap *ActionPlan) WalkModified(clusterFunc func(cluster api.ICluster), shardFunc func(shard api.IShard), ...)
- func (ap *ActionPlan) WalkRemoved(clusterFunc func(cluster api.ICluster), shardFunc func(shard api.IShard), ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionPlan ¶
type ActionPlan struct {
// contains filtered or unexported fields
}
ActionPlan is an action plan with list of differences between two CHIs
func NewActionPlan ¶
func NewActionPlan(old, new api.ICustomResource) *ActionPlan
NewActionPlan makes new ActionPlan out of two CHIs
func (*ActionPlan) GetRemovedHostsNum ¶
func (ap *ActionPlan) GetRemovedHostsNum() int
GetRemovedHostsNum - how many hosts would be removed
func (*ActionPlan) HasActionsToDo ¶
func (ap *ActionPlan) HasActionsToDo() bool
HasActionsToDo checks whether there are any actions to do - meaning changes between states to reconcile
func (*ActionPlan) WalkAdded ¶
func (ap *ActionPlan) WalkAdded( clusterFunc func(cluster api.ICluster), shardFunc func(shard api.IShard), hostFunc func(host *api.Host), )
WalkAdded walk added cluster items
func (*ActionPlan) WalkModified ¶
func (ap *ActionPlan) WalkModified( clusterFunc func(cluster api.ICluster), shardFunc func(shard api.IShard), hostFunc func(host *api.Host), )
WalkModified walk modified cluster items
func (*ActionPlan) WalkRemoved ¶
func (ap *ActionPlan) WalkRemoved( clusterFunc func(cluster api.ICluster), shardFunc func(shard api.IShard), hostFunc func(host *api.Host), )
WalkRemoved walk removed cluster items
Click to show internal directories.
Click to hide internal directories.