Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RoleMapper ¶
type RoleMapper struct {
// contains filtered or unexported fields
}
RoleMapper handles relevant logic around associating IPs with a given RAM role
func NewRoleMapper ¶
func NewRoleMapper(roleKey string, defaultRole string, namespaceRestriction bool, namespaceKey string, ramInstance *ram.Client, kubeStore store, namespaceRestrictionFormat string) *RoleMapper
NewRoleMapper returns a new RoleMapper for use.
func (*RoleMapper) DumpDebugInfo ¶
func (r *RoleMapper) DumpDebugInfo() map[string]interface{}
DumpDebugInfo outputs all the roles by IP address.
func (*RoleMapper) GetRoleMapping ¶
func (r *RoleMapper) GetRoleMapping(IP string) (*RoleMappingResult, error)
GetRoleMapping returns the normalized ram RoleMappingResult based on IP address
type RoleMappingResult ¶
RoleMappingResult represents the relevant information for a given mapping request
Click to show internal directories.
Click to hide internal directories.