internal

package
v0.0.0-...-e117ae6 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2020 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("cache entry not found")

Functions

func CacheClear

func CacheClear() error

func CacheShow

func CacheShow() (string, error)

func ConfigPath

func ConfigPath() string

func GetCred

func GetCred(providerName string, roleARN string) error

func RunSetup

func RunSetup(providerName string) error

Types

type AWSCredentials

type AWSCredentials struct {
	AWSAccessKey     string
	AWSSecretKey     string
	AWSSessionToken  string
	AWSSecurityToken string
	PrincipalARN     string
	Expires          time.Time
}

func GetCredentialsWithOIDC

func GetCredentialsWithOIDC(client *OIDCClient, idToken string, roleARN string, durationSeconds int64) (*AWSCredentials, error)

func (AWSCredentials) Valid

func (cred AWSCredentials) Valid() bool

type AWSCredentialsJSON

type AWSCredentialsJSON struct {
	Version         int
	AccessKeyID     string `json:"AccessKeyId"`
	SecretAccessKey string
	SessionToken    string
}

type OIDCClient

type OIDCClient struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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