Documentation
¶
Index ¶
- func Println(credentials string)
- type Credential
- func (c *Credential) IsExpired() bool
- func (c *Credential) Load() error
- func (c *Credential) Output() (string, error)
- func (c *Credential) Save() error
- func (c *Credential) SetAccessKeyID(accessKeyID *string)
- func (c *Credential) SetExpiration(expiration *time.Time)
- func (c *Credential) SetSecretAccessKey(secretAccessKey *string)
- func (c *Credential) SetSessionToken(sessionToken *string)
- type Credentialer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Credential ¶
type Credential struct { AccessKeyID *string Expiration *time.Time AwsProfile string SecretAccessKey *string SessionToken *string }
func New ¶
func New(awsProfile string) *Credential
func (*Credential) IsExpired ¶
func (c *Credential) IsExpired() bool
func (*Credential) Load ¶
func (c *Credential) Load() error
func (*Credential) Output ¶
func (c *Credential) Output() (string, error)
Output returns the credentials in JSON format. The JSON format is output in the JSON format specified in the aws cli. https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sourcing-external.html
func (*Credential) Save ¶
func (c *Credential) Save() error
func (*Credential) SetAccessKeyID ¶
func (c *Credential) SetAccessKeyID(accessKeyID *string)
func (*Credential) SetExpiration ¶
func (c *Credential) SetExpiration(expiration *time.Time)
func (*Credential) SetSecretAccessKey ¶
func (c *Credential) SetSecretAccessKey(secretAccessKey *string)
func (*Credential) SetSessionToken ¶
func (c *Credential) SetSessionToken(sessionToken *string)
Click to show internal directories.
Click to hide internal directories.