awssts

package
v1.3.2 Latest Latest
Warning

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

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

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrProviderMetadataRequired indicates provider metadata is required but not supplied
	ErrProviderMetadataRequired = errors.New("awssts: provider metadata required")
	// ErrRoleARNRequired indicates the roleArn field is missing from metadata
	ErrRoleARNRequired = errors.New("awssts: roleArn required")
	// ErrRegionRequired indicates the region field is missing from metadata
	ErrRegionRequired = errors.New("awssts: region required")
	// ErrAuthTypeMismatch indicates the provider spec specifies an incompatible auth type
	ErrAuthTypeMismatch = errors.New("awssts: auth type mismatch")
	// ErrBeginAuthNotSupported indicates BeginAuth is not supported for AWS STS providers
	ErrBeginAuthNotSupported = errors.New("awssts: BeginAuth is not supported; configure credentials via metadata")
	// ErrProviderNotInitialized indicates the provider instance is nil
	ErrProviderNotInitialized = errors.New("awssts: provider not initialized")
)

Functions

func Builder

func Builder(provider types.ProviderType, opts ...ProviderOption) providers.Builder

Builder returns a providers.Builder that materializes AWS federation metadata.

Types

type Provider

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

Provider persists AWS STS metadata and exposes it via CredentialSet.

func (*Provider) BeginAuth

BeginAuth is not supported for AWS STS metadata flows.

func (*Provider) Capabilities

func (p *Provider) Capabilities() types.ProviderCapabilities

Capabilities returns optional capability flags.

func (*Provider) Mint

Mint validates the stored AWS metadata and persists structured credential fields.

func (*Provider) Operations

func (p *Provider) Operations() []types.OperationDescriptor

Operations returns provider-published operations.

func (*Provider) Type

func (p *Provider) Type() types.ProviderType

Type returns the provider identifier.

type ProviderOption

type ProviderOption func(*providerConfig)

ProviderOption customizes AWS STS providers.

func WithOperations

func WithOperations(descriptors []types.OperationDescriptor) ProviderOption

WithOperations registers provider-published operations.

Jump to

Keyboard shortcuts

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