federator

package
v0.0.0-...-af63e3c Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credentials

type Credentials struct {
	AccessKeyId     string
	Expiration      time.Time
	SecretAccessKey string
	SessionToken    string
}

type Federator

type Federator struct {
	Username    string
	Password    string
	SPEntityUrl string
	// contains filtered or unexported fields
}

func New

func New(u, p, sp string) (Federator, error)

func (*Federator) AssumeRole

func (a *Federator) AssumeRole(r Role) (Credentials, error)

func (*Federator) GetRoles

func (a *Federator) GetRoles() ([]Role, error)

func (*Federator) Login

func (a *Federator) Login() error

type Role

type Role string

func (Role) AccountId

func (r Role) AccountId() string

func (Role) PrincipalArn

func (r Role) PrincipalArn() string

func (Role) RoleArn

func (r Role) RoleArn() string

func (Role) RoleName

func (r Role) RoleName() string

func (Role) String

func (r Role) String() string

String creates a prettier representation of the raw RoleArn/PrincipalArn

string for presenting to the user

Jump to

Keyboard shortcuts

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