output

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ExpirationField --
	ExpirationField = "Expiration"
	// SecurityTokenField --
	SecurityTokenField = "SecurityToken"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSCredentialsFile

type AWSCredentialsFile struct {
	LegacyAWSVariables bool
	ExpiryAWSVariables bool
	Expiry             string
}

AWSCredentialsFile AWS credentials file output formatter

func NewAWSCredentialsFile

func NewAWSCredentialsFile(legacyVars bool, expiryVars bool, expiry string) *AWSCredentialsFile

NewAWSCredentialsFile Creates a new

func (*AWSCredentialsFile) Output

func (e *AWSCredentialsFile) Output(c *config.Config, ac *aws.Credential) error

Output Satisfies the Outputter interface and appends AWS credentials to credentials file.

type EnvVar

type EnvVar struct {
	LegacyAWSVariables bool
}

EnvVar Environment Variable output formatter

func NewEnvVar

func NewEnvVar(legacyVars bool) *EnvVar

NewEnvVar Creates a new EnvVar

func (*EnvVar) Output

func (e *EnvVar) Output(c *config.Config, ac *aws.Credential) error

Output Satisfies the Outputter interface and outputs AWS credentials as shell export statements to STDOUT

type Outputter

type Outputter interface {
	Output(c *config.Config, ac *aws.Credential) error
}

Outputter Interface to output AWS credentials in different formats.

Jump to

Keyboard shortcuts

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