credential

package module
v0.0.0-...-00d2d94 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TOKEN_TYPE_OIDC        string = "OIDC"
	TOKEN_TYPE_UNSPECIFIED string = "UNSPECIFIED"
)
View Source
const (
	ISO8601 = "2006-01-02T15:04:05-0700"
	RFC3339 = "2006-01-02T15:04:05Z07:00"
)
View Source
const (
	EKMProviderName = "EKMProvider"
)

Variables

This section is empty.

Functions

func NewEKMAWSCredentials

func NewEKMAWSCredentials(cfg CredConfig) (creds.Credentials, error)

Types

type CredConfig

type CredConfig struct {
	STSEndpointHost      string
	STSEndpoint          string
	Audience             string
	STSSNI               string
	AttestationTokenPath string
	UseMTLS              bool
	TrustCA              string
	ClientCert           string
	ClientKey            string
	AWSAccessKeyID       string
	AWSRoleArn           string
	AWSRegion            string
	Duration             uint64
	AWSSessionName       string
	UseAssumeRole        bool
}

type EKMProvider

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

func (*EKMProvider) ExpiresAt

func (s *EKMProvider) ExpiresAt() time.Time

func (*EKMProvider) IsExpired

func (s *EKMProvider) IsExpired() bool

func (*EKMProvider) Retrieve

func (s *EKMProvider) Retrieve() (creds.Value, error)

Jump to

Keyboard shortcuts

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