principals

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotFoundError added in v0.6.0

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

NotFoundError it's principals provider error when no principals are found

func NewNotFoundError added in v0.6.0

func NewNotFoundError(provider, msg string) *NotFoundError

NewNotFoundError creates new NotFoundError error with given privder name and message

func (*NotFoundError) Error added in v0.6.0

func (e *NotFoundError) Error() string

type Principals

type Principals interface {
	Init(config *viper.Viper) error
	Get(ctx context.Context, payload []byte) (context.Context, []string, error)
}

Principals is the interface that wrap the get of SMK Principals.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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