Documentation ¶
Index ¶
- type DynamicFileData
- type DynamicFileMapStore
- func (ms *DynamicFileMapStore) AWSAccount(id string) bool
- func (ms *DynamicFileMapStore) CallBackForFileDeletion() error
- func (ms *DynamicFileMapStore) CallBackForFileLoad(dynamicContent []byte) error
- func (ms *DynamicFileMapStore) LogMapping()
- func (ms *DynamicFileMapStore) RoleMapping(key string) (config.RoleMapping, error)
- func (ms *DynamicFileMapStore) UserMapping(key string) (config.UserMapping, error)
- type DynamicFileMapper
- func (m *DynamicFileMapper) IsAccountAllowed(accountID string) bool
- func (m *DynamicFileMapper) Map(identity *token.Identity) (*config.IdentityMapping, error)
- func (m *DynamicFileMapper) Name() string
- func (m *DynamicFileMapper) Start(stopCh <-chan struct{}) error
- func (m *DynamicFileMapper) UsernamePrefixReserveList() []string
- type ErrParsingMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DynamicFileData ¶
type DynamicFileData struct { // Time that the object takes from update time to load time LastUpdatedDateTime string `json:"LastUpdatedDateTime"` // Version is the version number of the update Version string `json:"Version"` // RoleMappings is a list of mappings from AWS IAM Role to // Kubernetes username + groups. RoleMappings []config.RoleMapping `json:"mapRoles"` // UserMappings is a list of mappings from AWS IAM User to // Kubernetes username + groups. UserMappings []config.UserMapping `json:"mapUsers"` // AutoMappedAWSAccounts is a list of AWS accounts that are allowed without an explicit user/role mapping. // IAM ARN from these accounts automatically maps to the Kubernetes username. AutoMappedAWSAccounts []string `json:"mapAccounts"` }
type DynamicFileMapStore ¶
type DynamicFileMapStore struct {
// contains filtered or unexported fields
}
func NewDynamicFileMapStore ¶
func NewDynamicFileMapStore(cfg config.Config) (*DynamicFileMapStore, error)
func (*DynamicFileMapStore) AWSAccount ¶
func (ms *DynamicFileMapStore) AWSAccount(id string) bool
func (*DynamicFileMapStore) CallBackForFileDeletion ¶ added in v0.5.18
func (ms *DynamicFileMapStore) CallBackForFileDeletion() error
func (*DynamicFileMapStore) CallBackForFileLoad ¶ added in v0.5.18
func (ms *DynamicFileMapStore) CallBackForFileLoad(dynamicContent []byte) error
func (*DynamicFileMapStore) LogMapping ¶
func (ms *DynamicFileMapStore) LogMapping()
func (*DynamicFileMapStore) RoleMapping ¶
func (ms *DynamicFileMapStore) RoleMapping(key string) (config.RoleMapping, error)
func (*DynamicFileMapStore) UserMapping ¶
func (ms *DynamicFileMapStore) UserMapping(key string) (config.UserMapping, error)
type DynamicFileMapper ¶
type DynamicFileMapper struct {
*DynamicFileMapStore
}
func NewDynamicFileMapper ¶
func NewDynamicFileMapper(cfg config.Config) (*DynamicFileMapper, error)
func (*DynamicFileMapper) IsAccountAllowed ¶
func (m *DynamicFileMapper) IsAccountAllowed(accountID string) bool
func (*DynamicFileMapper) Map ¶
func (m *DynamicFileMapper) Map(identity *token.Identity) (*config.IdentityMapping, error)
func (*DynamicFileMapper) Name ¶
func (m *DynamicFileMapper) Name() string
func (*DynamicFileMapper) Start ¶
func (m *DynamicFileMapper) Start(stopCh <-chan struct{}) error
func (*DynamicFileMapper) UsernamePrefixReserveList ¶ added in v0.5.15
func (m *DynamicFileMapper) UsernamePrefixReserveList() []string
type ErrParsingMap ¶
type ErrParsingMap struct {
// contains filtered or unexported fields
}
func (ErrParsingMap) Error ¶
func (err ErrParsingMap) Error() string
Click to show internal directories.
Click to hide internal directories.