Documentation ¶
Index ¶
- Variables
- func EncodeMap(userMappings []config.UserMapping, roleMappings []config.RoleMapping, ...) (m map[string]string, err error)
- func ParseMap(m map[string]string) (userMappings []config.UserMapping, roleMappings []config.RoleMapping, ...)
- type ConfigMapMapper
- func (m *ConfigMapMapper) IsAccountAllowed(accountID string) bool
- func (m *ConfigMapMapper) Map(identity *token.Identity) (*config.IdentityMapping, error)
- func (m *ConfigMapMapper) Name() string
- func (m *ConfigMapMapper) Start(stopCh <-chan struct{}) error
- func (m *ConfigMapMapper) UsernamePrefixReserveList() []string
- type ErrParsingMap
- type MapStore
Constants ¶
This section is empty.
Variables ¶
View Source
var RoleNotFound = errors.New("Role not found in configmap")
RoleNotFound is the error returned when the role is not found in the config map.
View Source
var UserNotFound = errors.New("User not found in configmap")
UserNotFound is the error returned when the user is not found in the config map.
Functions ¶
func EncodeMap ¶ added in v0.5.4
func EncodeMap(userMappings []config.UserMapping, roleMappings []config.RoleMapping, awsAccounts []string) (m map[string]string, err error)
func ParseMap ¶ added in v0.5.4
func ParseMap(m map[string]string) (userMappings []config.UserMapping, roleMappings []config.RoleMapping, awsAccounts []string, err error)
Types ¶
type ConfigMapMapper ¶
type ConfigMapMapper struct {
*MapStore
}
func NewConfigMapMapper ¶
func NewConfigMapMapper(cfg config.Config) (*ConfigMapMapper, error)
func (*ConfigMapMapper) IsAccountAllowed ¶
func (m *ConfigMapMapper) IsAccountAllowed(accountID string) bool
func (*ConfigMapMapper) Map ¶
func (m *ConfigMapMapper) Map(identity *token.Identity) (*config.IdentityMapping, error)
func (*ConfigMapMapper) Name ¶
func (m *ConfigMapMapper) Name() string
func (*ConfigMapMapper) Start ¶
func (m *ConfigMapMapper) Start(stopCh <-chan struct{}) error
func (*ConfigMapMapper) UsernamePrefixReserveList ¶ added in v0.5.15
func (m *ConfigMapMapper) UsernamePrefixReserveList() []string
type ErrParsingMap ¶
type ErrParsingMap struct {
// contains filtered or unexported fields
}
func (ErrParsingMap) Error ¶
func (err ErrParsingMap) Error() string
type MapStore ¶
type MapStore struct {
// contains filtered or unexported fields
}
func (*MapStore) AWSAccount ¶
func (*MapStore) RoleMapping ¶
func (ms *MapStore) RoleMapping(arn string) (config.RoleMapping, error)
func (*MapStore) UserMapping ¶
func (ms *MapStore) UserMapping(arn string) (config.UserMapping, error)
Click to show internal directories.
Click to hide internal directories.