terragrunt

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: MIT Imports: 19 Imported by: 0

README

POSH terragrunt provider

Usage

Plugin
func New(l log.Logger) (plugin.Plugin, error) {
	// ...
  inst.commands.MustAdd(terragrunt.NewCommand(l, inst.op, inst.cache))
	// ...
}
Config
terragrunt:
  path: devops/terragrunt
  cachPath: devops/cache/terragrunt

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	// contains filtered or unexported fields
}

func NewCommand

func NewCommand(l log.Logger, op *onepassword.OnePassword, cache cache.Cache, opts ...CommandOption) (*Command, error)

func (*Command) Complete

func (c *Command) Complete(ctx context.Context, r *readline.Readline) []goprompt.Suggest

func (*Command) Description

func (c *Command) Description() string

func (*Command) Execute

func (c *Command) Execute(ctx context.Context, r *readline.Readline) error

func (*Command) Help

func (c *Command) Help(ctx context.Context, r *readline.Readline) string

func (*Command) Name

func (c *Command) Name() string

func (*Command) Validate

func (c *Command) Validate(ctx context.Context, r *readline.Readline) error

type CommandOption

type CommandOption func(*Command)

func CommandWithName

func CommandWithName(v string) CommandOption

func WithConfigKey

func WithConfigKey(v string) CommandOption

type Config

type Config struct {
	Path      string `json:"path" yaml:"path"`
	CachePath string `json:"cachePath" yaml:"cachePath"`
}

func (Config) EnvNames

func (c Config) EnvNames() []string

func (Config) EnvsPath

func (c Config) EnvsPath() string

func (Config) SiteNames

func (c Config) SiteNames(env string) []string

func (Config) SitesPath

func (c Config) SitesPath(env string) string

func (Config) StackNames

func (c Config) StackNames(ctx context.Context, env, site string) ([]string, error)

func (Config) StacksPath

func (c Config) StacksPath(env, site string) string

type StackNameProvider

type StackNameProvider func(path string) string

Jump to

Keyboard shortcuts

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