cache

package
v0.3.31 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CredentialCache

type CredentialCache struct {
	sync.RWMutex
	RoleCredentials map[string]*creds.RefreshableProvider
	DefaultRole     string
}
var GlobalCache CredentialCache

func (*CredentialCache) DefaultArn

func (cc *CredentialCache) DefaultArn() string

func (*CredentialCache) DefaultLastUpdated

func (cc *CredentialCache) DefaultLastUpdated() string

func (*CredentialCache) Get

func (cc *CredentialCache) Get(searchString string, assumeChain []string) (*creds.RefreshableProvider, error)

func (*CredentialCache) GetDefault

func (cc *CredentialCache) GetDefault() (*creds.RefreshableProvider, error)

func (*CredentialCache) GetOrSet

func (cc *CredentialCache) GetOrSet(client creds.HTTPClient, role, region string, assumeChain []string) (*creds.RefreshableProvider, error)

func (*CredentialCache) SetDefault

func (cc *CredentialCache) SetDefault(client creds.HTTPClient, role, region string, assumeChain []string) error

Jump to

Keyboard shortcuts

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