sts

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response struct {
	sdksts.AssumeRoleWithSAMLOutput
}

type STS

type STS struct {
	AwsProfile         string
	AwsRegion          string
	AwsRoleArn         string
	AwsSessionDuration int32
	AwsPrincipalArn    string
	SAMLAssertion      string
}

func New

func New(profile, region, roleArn string, duration int32) *STS

func (*STS) AssumeRoleWithSAML

func (s *STS) AssumeRoleWithSAML() (*Response, error)

func (*STS) SetAwsPrincipalArn added in v0.7.0

func (s *STS) SetAwsPrincipalArn(principalArn string)

func (*STS) SetSAMLAssertion

func (s *STS) SetSAMLAssertion(samlAssertion string)

type STSer

type STSer interface {
	AssumeRoleWithSAML() (*Response, error)
	SetAwsPrincipalArn(string)
	SetSAMLAssertion(string)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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