tg

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MPL-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package tg implements functions to deal with Terragrunt files.

Index

Constants

View Source
const ErrParsing errors.Kind = "parsing Terragrunt file"

ErrParsing indicates there is an error parsing a Terragrunt file.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct {
	Path       project.Path  `json:"path"`
	Source     string        `json:"source"`
	ConfigFile project.Path  `json:"config"`
	After      project.Paths `json:"after,omitempty"`

	// DependsOn are paths that, when changed, must mark the module as changed.
	DependsOn project.Paths `json:"depends_on,omitempty"`
}

Module is a Terragrunt module.

type Modules

type Modules []*Module

Modules is a list of Module.

func ScanModules

func ScanModules(rootdir string, dir project.Path, trackDependencies bool) (Modules, error)

ScanModules scans dir looking for Terragrunt modules. It returns a list of modules with its "DependsOn paths" computed.

Jump to

Keyboard shortcuts

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