credscacheutil

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssumeRoleCacheKeyGenerator

type AssumeRoleCacheKeyGenerator struct {
	RoleARN         string
	RoleSessionName string
	ExternalID      *string
	SerialNumber    *string
	Duration        time.Duration
}

func (*AssumeRoleCacheKeyGenerator) CacheKey

func (g *AssumeRoleCacheKeyGenerator) CacheKey() (string, error)

func (AssumeRoleCacheKeyGenerator) String

type CacheKeyer

type CacheKeyer interface {
	CacheKey() (string, error)
}

type CachedCredentials

type CachedCredentials struct {
	AccessKeyID     string    `json:"AccessKeyId"`
	SecretAccessKey string    `json:"SecretAccessKey"`
	SessionToken    string    `json:"SessionToken"`
	Expires         time.Time `json:"Expiration"`
}

type FileCache

type FileCache struct {
	Credentials CachedCredentials `json:"Credentials"`
}

func (*FileCache) Load

func (c *FileCache) Load(path string) error

func (*FileCache) Store

func (c *FileCache) Store(path string) error

type Loader

type Loader interface {
	Load(path string) error
}

type Storer

type Storer interface {
	Store(path string) error
}

Jump to

Keyboard shortcuts

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