mappings

package
v0.0.0-...-d1ede0d Latest Latest
Warning

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

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

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 IAM role

func NewRoleMapper

func NewRoleMapper(roleKey string, defaultRole string, namespaceRestriction bool, namespaceKey string, iamInstance *iam.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 iam RoleMappingResult based on IP address

type RoleMappingResult

type RoleMappingResult struct {
	Role      string
	IP        string
	Namespace string
}

RoleMappingResult 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