Documentation ¶
Index ¶
- type Broker
- func (b *Broker) GenerateTokenCredentials(accountName string, roleName string, userName string) (*broker.AWSCredentialsJSON, error)
- func (b *Broker) GetConsoleURLForAccountRole(accountName string, roleName string, userName string, issuerURL string) (string, error)
- func (b *Broker) GetIsUnsealedChannel() (<-chan error, error)
- func (b *Broker) GetUserAllowedAccounts(username string) ([]broker.PermittedAccount, error)
- func (b *Broker) IsUserAllowedToAssumeRole(username string, accountName string, roleName string) (bool, error)
- func (b *Broker) LoadCredentialsFile() error
- func (b *Broker) ProcessNewUnsealingSecret(secret string) (ready bool, err error)
- func (b *Broker) UpdateConfiguration(config *configuration.Configuration) error
- type ExchangeCredentialsJSON
- type SessionTokenResponseJSON
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 (*Broker) GetConsoleURLForAccountRole ¶
func (*Broker) GetIsUnsealedChannel ¶
func (*Broker) GetUserAllowedAccounts ¶
func (b *Broker) GetUserAllowedAccounts(username string) ([]broker.PermittedAccount, error)
func (*Broker) IsUserAllowedToAssumeRole ¶
func (*Broker) LoadCredentialsFile ¶
func (*Broker) ProcessNewUnsealingSecret ¶
func (*Broker) UpdateConfiguration ¶
func (b *Broker) UpdateConfiguration( config *configuration.Configuration) error
type ExchangeCredentialsJSON ¶
type SessionTokenResponseJSON ¶
type SessionTokenResponseJSON struct {
SigninToken string `json:"SigninToken"`
}
Click to show internal directories.
Click to hide internal directories.