externalcmd

package
v0.59.4 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProvider

func NewProvider(opts *options.TerragruntOptions) providers.Provider

NewProvider returns a new Provider instance.

Types

type AWSCredentials

type AWSCredentials struct {
	AccessKeyID     string `json:"ACCESS_KEY_ID"`
	SecretAccessKey string `json:"SECRET_ACCESS_KEY"`
	SessionToken    string `json:"SESSION_TOKEN"`
}

func (*AWSCredentials) Envs

func (creds *AWSCredentials) Envs(opts *options.TerragruntOptions) map[string]string

type Provider

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

Provider runs external command that returns a json string with credentials.

func (*Provider) GetCredentials

func (provider *Provider) GetCredentials(ctx context.Context) (*providers.Credentials, error)

GetCredentials implements providers.GetCredentials

func (*Provider) Name

func (provider *Provider) Name() string

Name implements providers.Name

type Response

type Response struct {
	AWSCredentials *AWSCredentials   `json:"awsCredentials"`
	Envs           map[string]string `json:"envs"`
}

Jump to

Keyboard shortcuts

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