mappings

package
v0.0.0-...-7b4a977 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2019 License: BSD-2-Clause Imports: 5 Imported by: 0

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

type ServiceAccountMappingResult struct {
	ServiceAccount string
	IP             string
	Namespace      string
}

ServiceAccountMappingResult represents the relevant information for a given mapping request

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL