oidctoken

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credential

type Credential struct {
	AccessKeyId     string
	AccessKeySecret string
	SecurityToken   string
	Expiration      time.Time
}

func AssumeRoleWithOIDCToken

func AssumeRoleWithOIDCToken(ctx context.Context, providerArn, roleArn, token, stsEndpoint, stsProtocol, policy, roleSessionName string,
	sessionDuration time.Duration) (*Credential, error)

func (*Credential) DeepCopy

func (c *Credential) DeepCopy() *Credential

type RoleProvider

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

func NewRoleProvider

func NewRoleProvider(providerArn, roleArn, tokenFile, policy, roleSessionName string, sessionDuration time.Duration) (*RoleProvider, error)

func (*RoleProvider) GetCredential

func (p *RoleProvider) GetCredential(ctx context.Context) (*Credential, error)

Jump to

Keyboard shortcuts

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