auth

package
v0.0.0-...-9408163 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2022 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CredentialsCache

type CredentialsCache struct {
	AccessKeyId     string    `json:"accessKeyId"`
	Expiration      time.Time `json:"expiration"`
	SecretAccessKey string    `json:"secretAccessKey"`
	SessionToken    string    `json:"sessionToken"`
	// contains filtered or unexported fields
}

func NewCredentials

func NewCredentials(cfgPath string) *CredentialsCache

func (*CredentialsCache) Load

func (cc *CredentialsCache) Load() (*CredentialsCache, error)

func (*CredentialsCache) Retrieve

func (cc *CredentialsCache) Retrieve(ctx context.Context) (aws.Credentials, error)

func (*CredentialsCache) Save

func (cc *CredentialsCache) Save(credentials *CredentialsCache) error

func (*CredentialsCache) Valid

func (cc *CredentialsCache) Valid() bool

Jump to

Keyboard shortcuts

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