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.