Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceAccountMapper ¶
type ServiceAccountMapper struct {
// contains filtered or unexported fields
}
ServiceAccountMapper handles relevant logic around associating IPs with a given IAM serviceAccount
func NewServiceAccountMapper ¶
func NewServiceAccountMapper(serviceAccountKey string, defaultServiceAccount string, namespaceRestriction bool, namespaceKey string, kubeStore store) *ServiceAccountMapper
NewServiceAccountMapper returns a new ServiceAccountMapper for use.
func (*ServiceAccountMapper) DumpDebugInfo ¶
func (r *ServiceAccountMapper) DumpDebugInfo() map[string]interface{}
DumpDebugInfo outputs all the serviceAccounts by IP address.
func (*ServiceAccountMapper) GetServiceAccountMapping ¶
func (r *ServiceAccountMapper) GetServiceAccountMapping(IP string) (*ServiceAccountMappingResult, error)
GetServiceAccountMapping returns the normalized iam ServiceAccountMappingResult based on IP address
type ServiceAccountMappingResult ¶
ServiceAccountMappingResult represents the relevant information for a given mapping request
Click to show internal directories.
Click to hide internal directories.