sts

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: MIT Imports: 6 Imported by: 0

README

AWS Provider

TODO

Documentation

Overview

Package sts implements a sidecred.Provider for AWS STS Credentials.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(client STSAPI, options ...option) sidecred.Provider

New returns a new sidecred.Provider for STS Credentials.

func WithExternalID

func WithExternalID(id string) option

WithExternalID sets the external ID used to assume roles.

func WithSessionDuration

func WithSessionDuration(duration time.Duration) option

WithSessionDuration overrides the default session duration.

Types

type RequestConfig

type RequestConfig struct {
	RoleARN  string             `json:"role_arn"`
	Duration *sidecred.Duration `json:"duration"`
}

RequestConfig ...

func (*RequestConfig) Validate added in v0.11.0

func (c *RequestConfig) Validate() error

Validate implements sidecred.Validatable.

type STSAPI

type STSAPI interface {
	AssumeRole(input *sts.AssumeRoleInput) (*sts.AssumeRoleOutput, error)
}

STSAPI wraps the interface for the API and provides a mocked implementation.

func NewClient

func NewClient(sess *session.Session) STSAPI

NewClient returns a new client for STSAPI.

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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