output

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (

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

Variables

This section is empty.

Functions

func RenderAWSCredential

func RenderAWSCredential(cfg *config.Config, cc *oaws.CredentialContainer) error

RenderAWSCredential Renders the credentials in the prescribed format.

Types

type AWSCredentialsFile

type AWSCredentialsFile struct {
	LegacyAWSVariables bool
	ExpiryAWSVariables bool
	Expiry             string
	Region             string
}

AWSCredentialsFile AWS credentials file output formatter

func NewAWSCredentialsFile

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

NewAWSCredentialsFile Creates a new

func (*AWSCredentialsFile) Output

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, cc *oaws.CredentialContainer) error

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

type NoopCredentials

type NoopCredentials struct{}

NoopCredentials Don't output credentials

func NewNoopCredentials

func NewNoopCredentials() *NoopCredentials

NewNoopCredentials Creates a new NoopCredentials

func (*NoopCredentials) Output

Output Satisfies the Outputter interface and outputs nothing

type Outputter

type Outputter interface {
	Output(c *config.Config, cc *oaws.CredentialContainer) error
}

Outputter Interface to output AWS credentials in different formats.

type ProcessCredentials

type ProcessCredentials struct{}

ProcessCredentials AWS CLI Process Credentials output formatter https://docs.aws.amazon.com/sdkref/latest/guide/feature-process-credentials.html

func NewProcessCredentials

func NewProcessCredentials() *ProcessCredentials

NewProcessCredentials Creates a new ProcessCredentials

func (*ProcessCredentials) Output

Output Satisfies the Outputter interface and outputs AWS credentials as JSON to STDOUT

Jump to

Keyboard shortcuts

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