Documentation ¶
Index ¶
- type Dag
- func (d *Dag) Execute(action string, stackObj interfaces.IStack, plan bool, approved bool, ...) error
- func (d *Dag) ExecuteGetVars(action string, stackObj interfaces.IStack, loadOutputs bool, suppress []string) error
- func (g *Dag) GetInstallables() []interfaces.IInstallable
- func (g *Dag) Print() error
- func (g *Dag) Visualise(clusterName string) string
- type NamedNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dag ¶
type Dag struct {
// contains filtered or unexported fields
}
Wrapper around a directed graph so we can define our own methods on it
func BuildDagForSelected ¶
func BuildDagForSelected(stackObj interfaces.IStack, workspaceDir string, includeSelector []string, excludeSelector []string, includeParents bool) (*Dag, error)
Creates a DAG for installables matched by selectors. If an optional state (e.g. present, absent, etc.) is provided, only installables with the same state will be included in the returned DAG
func Create ¶
func Create(stackObj interfaces.IStack, selectedInstallableIds []string, includeParents bool) (*Dag, error)
Creates a DAG for installables in the given manifests. If a list of selected installable IDs is given a subgraph will be returned containing only those installables and their ancestors.
func (*Dag) Execute ¶
func (d *Dag) Execute(action string, stackObj interfaces.IStack, plan bool, approved bool, skipPreActions bool, skipPostActions bool, ignoreErrors bool, dryRun bool) error
Traverses the DAG executing the named action on marked/processable nodes depending on the given options
func (*Dag) ExecuteGetVars ¶
func (d *Dag) ExecuteGetVars(action string, stackObj interfaces.IStack, loadOutputs bool, suppress []string) error
Traverses the DAG printing vars for all marked nodes, optionally suppressing output for certain keys
func (*Dag) GetInstallables ¶
func (g *Dag) GetInstallables() []interfaces.IInstallable
Returns a list of all marked installables in the DAG (in any order).