static

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parameter

type Parameter interface {
	// contains filtered or unexported methods
}

Parameter is the interface for service parameters.

func WithLogLevel

func WithLogLevel(logLevel zerolog.Level) Parameter

WithLogLevel sets the log level for the module.

func WithMonitor

func WithMonitor(monitor metrics.CheckerMonitor) Parameter

WithMonitor sets the monitor for this module.

func WithPermissions

func WithPermissions(permissions map[string][]*checker.Permissions) Parameter

WithPermissions sets the permissions for this module.

type Service

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

Service checks access against a static list.

func New

func New(_ context.Context, params ...Parameter) (*Service, error)

New creates a new static checker.

func (*Service) Check

func (s *Service) Check(_ context.Context, credentials *checker.Credentials, account string, operation string) bool

Check checks the client to see if the account is allowed.

Jump to

Keyboard shortcuts

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