Documentation
¶
Index ¶
Constants ¶
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 ¶
func (a *AWSCredentialsFile) Output(c *config.Config, cc *oaws.CredentialContainer) 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
type NoopCredentials ¶
type NoopCredentials struct{}
NoopCredentials Don't output credentials
func NewNoopCredentials ¶
func NewNoopCredentials() *NoopCredentials
NewNoopCredentials Creates a new NoopCredentials
func (*NoopCredentials) Output ¶
func (n *NoopCredentials) Output(c *config.Config, cc *oaws.CredentialContainer) error
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 ¶
func (p *ProcessCredentials) Output(c *config.Config, cc *oaws.CredentialContainer) error
Output Satisfies the Outputter interface and outputs AWS credentials as JSON to STDOUT