credential

package
v0.0.0-...-da38339 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SessionDuration = 3600
)

Functions

func GetCache

func GetCache() (string, error)

func GetFederatedSigninURL

func GetFederatedSigninURL(signinToken string) string

Types

type AWSProcessCredential

type AWSProcessCredential struct {
	Version int `json:"Version"`
	Credential
}

func NewAWSProcessCredential

func NewAWSProcessCredential(c *Credential) *AWSProcessCredential

func (AWSProcessCredential) Cache

func (c AWSProcessCredential) Cache() error

type Credential

type Credential struct {
	AccessKeyID     string `json:"AccessKeyId"`
	SecretAccessKey string `json:"SecretAccessKey"`
	SessionToken    string `json:"SessionToken"`
	Expiration      string `json:"Expiration"`
}

func AssumeRoleWithWebIdentity

func AssumeRoleWithWebIdentity(roleArn, roleSessionName, idToken string) (*Credential, error)

func (Credential) GetSiginToken

func (c Credential) GetSiginToken() (string, error)

func (Credential) SetCredentialFile

func (c Credential) SetCredentialFile(path string) error

Jump to

Keyboard shortcuts

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