action_plan

package
v0.0.0-...-d7e1125 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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) String

func (ap *ActionPlan) String() string

String stringifies ActionPlan

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL