file

package
v0.6.29 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileMapper

type FileMapper struct {
	// contains filtered or unexported fields
}

func NewFileMapper

func NewFileMapper(cfg config.Config) (*FileMapper, error)

func NewFileMapperWithMaps

func NewFileMapperWithMaps(
	lowercaseRoleMap map[string]config.RoleMapping,
	lowercaseUserMap map[string]config.UserMapping,
	accountMap map[string]bool) *FileMapper

func (*FileMapper) IsAccountAllowed

func (m *FileMapper) IsAccountAllowed(accountID string) bool

func (*FileMapper) Map

func (m *FileMapper) Map(identity *token.Identity) (*config.IdentityMapping, error)

func (*FileMapper) Name

func (m *FileMapper) Name() string

func (*FileMapper) Start

func (m *FileMapper) Start(_ <-chan struct{}) error

func (*FileMapper) UsernamePrefixReserveList added in v0.5.15

func (m *FileMapper) UsernamePrefixReserveList() []string

Jump to

Keyboard shortcuts

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