terradagger

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BashEntrypoint = "bash"
	ShEntrypoint   = "sh"
)

Variables

This section is empty.

Functions

func BuildCMDWithBash added in v1.2.0

func BuildCMDWithBash(command string) []string

func BuildCMDWithSH added in v1.2.0

func BuildCMDWithSH(command string) []string

func BuildTerraformCommand added in v1.2.0

func BuildTerraformCommand(args BuildTerraformCommandOptions) string

func BuildTerragruntCommand added in v1.2.0

func BuildTerragruntCommand(args BuildTerragruntCommandOptions) string

Types

type BuildTerraformCommandOptions added in v1.2.0

type BuildTerraformCommandOptions struct {
	Binary      string
	Command     string
	CommandArgs []string // Terraform-specific arguments
}

type BuildTerragruntCommandOptions added in v1.2.0

type BuildTerragruntCommandOptions struct {
	Binary         string   // The Terragrunt binary to use
	Subcommand     string   // e.g., "run-all"
	TerragruntArgs []string // Global options that apply to Terragrunt
	Command        string   // The Terraform command to run, e.g., "init", "apply"
	CommandArgs    []string // Arguments for the Terraform command
}

type Client

type Client interface {
	StartEngine() error
}

type ContainerCommand added in v1.2.0

type ContainerCommand []string

type Options added in v1.2.0

type Options struct {
	Workspace     string
	EnvVars       map[string]string
	ExcludeDirs   []string
	ExcludedFiles []string
}

type Runner added in v1.2.0

type Runner interface {
	Exec(cmds []ContainerCommand) *dagger.Container
}

type TD added in v1.2.0

type TD struct {
	Ctx    context.Context
	Log    logger.Log
	Engine daggerx.Engine
	Config config.Config
	ID     string
}

func New

func New(ctx context.Context, options *Options) *TD

func (*TD) StartEngine added in v1.2.0

func (td *TD) StartEngine() error

StartEngine starts the Dagger engine.

Jump to

Keyboard shortcuts

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