externalcmd

package
v0.71.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package externalcmd provides a provider that runs an external command that returns a json string with credentials.

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

type AWSRole added in v0.68.14

type AWSRole struct {
	RoleARN          string `json:"roleARN"`
	RoleSessionName  string `json:"roleSessionName"`
	Duration         int64  `json:"duration"`
	WebIdentityToken string `json:"webIdentityToken"`
}

func (*AWSRole) Envs added in v0.68.14

func (role *AWSRole) Envs(ctx context.Context, 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"`
	AWSRole        *AWSRole          `json:"awsRole"`
	Envs           map[string]string `json:"envs"`
}

Jump to

Keyboard shortcuts

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