aclfilter

package
v1.16.109 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RedactedToken is shown in structures with embedded tokens when they
	// are not allowed to be displayed.
	RedactedToken = "<hidden>"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

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

Filter is used to filter results based on ACL rules.

func New

func New(authorizer acl.Authorizer, logger hclog.Logger) *Filter

New constructs a Filter with the given authorizer.

func (*Filter) Filter

func (f *Filter) Filter(subject any)

Filter the given subject in-place.

Jump to

Keyboard shortcuts

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