aws

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broker

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

func New

func New(userInfo userinfo.UserGroupsGetter, credentialsFilename string,
	listRolesRoleName string, logger log.DebugLogger,
	auditLogger log.DebugLogger) *Broker

func (*Broker) GenerateTokenCredentials

func (b *Broker) GenerateTokenCredentials(accountName string, roleName string, userName string) (*broker.AWSCredentialsJSON, error)

func (*Broker) GetConsoleURLForAccountRole

func (b *Broker) GetConsoleURLForAccountRole(accountName string, roleName string, userName string, issuerURL string) (string, error)

func (*Broker) GetIsUnsealedChannel

func (b *Broker) GetIsUnsealedChannel() (<-chan error, error)

func (*Broker) GetUserAllowedAccounts

func (b *Broker) GetUserAllowedAccounts(username string) ([]broker.PermittedAccount, error)

func (*Broker) IsUserAllowedToAssumeRole

func (b *Broker) IsUserAllowedToAssumeRole(username string, accountName string, roleName string) (bool, error)

func (*Broker) LoadCredentialsFile

func (b *Broker) LoadCredentialsFile() error

func (*Broker) ProcessNewUnsealingSecret

func (b *Broker) ProcessNewUnsealingSecret(secret string) (ready bool, err error)

func (*Broker) UpdateConfiguration

func (b *Broker) UpdateConfiguration(
	config *configuration.Configuration) error

type ExchangeCredentialsJSON

type ExchangeCredentialsJSON struct {
	SessionId    string `json:"sessionId"`
	SessionKey   string `json:"sessionKey"`
	SessionToken string `json:"sessionToken"`
}

type SessionTokenResponseJSON

type SessionTokenResponseJSON struct {
	SigninToken string `json:"SigninToken"`
}

Jump to

Keyboard shortcuts

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