Documentation
¶
Overview ¶
Package runner provides logic for applying Stacks and Units Terragrunt.
Index ¶
- func BuildUnitOpts(l log.Logger, stackOpts *options.TerragruntOptions, unit *component.Unit) (*options.TerragruntOptions, log.Logger, error)
- func FindDependentUnits(ctx context.Context, l log.Logger, opts *options.TerragruntOptions, ...) []*component.Unit
- func NewStackRunner(ctx context.Context, l log.Logger, opts *options.TerragruntOptions, ...) (common.StackRunner, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildUnitOpts ¶ added in v1.0.0
func BuildUnitOpts(l log.Logger, stackOpts *options.TerragruntOptions, unit *component.Unit) (*options.TerragruntOptions, log.Logger, error)
BuildUnitOpts is a facade for runnerpool.BuildUnitOpts.
func FindDependentUnits ¶ added in v0.99.0
func FindDependentUnits( ctx context.Context, l log.Logger, opts *options.TerragruntOptions, cfg *config.TerragruntConfig, ) []*component.Unit
FindDependentUnits - find dependent units for a given unit. 1. Find root git top level directory and build list of units 2. Iterate over includes from opts if git top level directory detection failed 3. Filter found units for those that have dependencies on the unit in the working directory
func NewStackRunner ¶ added in v1.0.0
func NewStackRunner( ctx context.Context, l log.Logger, opts *options.TerragruntOptions, runnerOpts ...common.Option, ) (common.StackRunner, error)
NewStackRunner discovers all Terragrunt units under the working directory and assembles them into a StackRunner that can apply or destroy them.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package common defines minimal runner interfaces to allow multiple implementations.
|
Package common defines minimal runner interfaces to allow multiple implementations. |
|
Package graph implements the logic for running commands against the graph of dependencies for the unit in the current working directory.
|
Package graph implements the logic for running commands against the graph of dependencies for the unit in the current working directory. |
|
Package run provides the main entry point for running orchestrated runs.
|
Package run provides the main entry point for running orchestrated runs. |
|
creds
Package creds provides a way to obtain credentials through different providers and set them to `opts.Env`.
|
Package creds provides a way to obtain credentials through different providers and set them to `opts.Env`. |
|
creds/providers
Package providers defines the interface for a provider.
|
Package providers defines the interface for a provider. |
|
creds/providers/amazonsts
Package amazonsts provides a credentials provider that obtains credentials by making API requests to Amazon STS.
|
Package amazonsts provides a credentials provider that obtains credentials by making API requests to Amazon STS. |
|
creds/providers/externalcmd
Package externalcmd provides a provider that runs an external command that returns a json string with credentials.
|
Package externalcmd provides a provider that runs an external command that returns a json string with credentials. |
|
Package runall implements the logic for running commands across all units in a stack.
|
Package runall implements the logic for running commands across all units in a stack. |
|
Package runcfg provides configuration types for running terragrunt commands.
|
Package runcfg provides configuration types for running terragrunt commands. |
|
Package runnerpool provides a runner implementation based on a pool pattern for executing multiple units concurrently.
|
Package runnerpool provides a runner implementation based on a pool pattern for executing multiple units concurrently. |
Click to show internal directories.
Click to hide internal directories.