local

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Principals

type Principals struct {
	UserMap *viper.Viper
}

Principals struct represents map of principals by user.

func (Principals) Get

func (p Principals) Get(ctx context.Context, payload []byte) (context.Context, []string, error)

Get method is used to get the list of principals associated to a specific user.

func (*Principals) Init

func (p *Principals) Init(config *viper.Viper) error

Init method is used to ingest config of Principals

Jump to

Keyboard shortcuts

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