token

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

type Option

type Option func(*Config) error

func DisableCache

func DisableCache(disableCache bool) Option

func Duration

func Duration(s string) Option

func Profile

func Profile(profile string) Option

func RoleArn added in v0.8.0

func RoleArn(roleArn string) Option

func SerialNumber

func SerialNumber(sNum string) Option

func SourceProfile added in v0.8.0

func SourceProfile(sourceProfile string) Option

func TokenCode

func TokenCode(tokenCode string) Option

type Token

type Token struct {
	Region          string `json:"-"`
	AccessKeyId     string `json:"sessionId"`
	SecretAccessKey string `json:"sessionKey"`
	SessionToken    string `json:"sessionToken"`
}

func Get

func Get(ctx context.Context, options ...Option) (*Token, error)

Jump to

Keyboard shortcuts

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