sts

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CredentialMapper

type CredentialMapper interface {
	MapCredential(accessKeyID, accountID string)
	ResolveCredential(accessKeyID string) (string, bool)
}

CredentialMapper maps temporary credentials to accounts for cross-account STS AssumeRole support. The account.Registry implements this interface.

type STSService

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

STSService is the cloudmock implementation of the AWS Security Token Service API.

func New

func New(accountID string) *STSService

New returns a new STSService for the given AWS account ID.

func (*STSService) Actions

func (s *STSService) Actions() []service.Action

Actions returns the list of STS API actions supported by this service.

func (*STSService) HandleRequest

func (s *STSService) HandleRequest(ctx *service.RequestContext) (*service.Response, error)

HandleRequest routes an incoming STS request to the appropriate handler. STS uses form-encoded POST bodies; the Action may appear in the query string (already parsed into ctx.Params) or in the form-encoded body.

func (*STSService) HealthCheck

func (s *STSService) HealthCheck() error

HealthCheck always returns nil (no external dependencies).

func (*STSService) Name

func (s *STSService) Name() string

Name returns the AWS service name used for routing.

func (*STSService) SetCredentialMapper

func (s *STSService) SetCredentialMapper(cm CredentialMapper)

SetCredentialMapper attaches a CredentialMapper for cross-account credential tracking. When set, AssumeRole will register temporary credentials against the target account.

Jump to

Keyboard shortcuts

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