namespace_filter

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContext

func NewContext(ctx context.Context, level AccessLevel) context.Context

Types

type AccessLevel

type AccessLevel uint8
const (
	ReadWrite AccessLevel = iota
	ReadOnly
)

func LevelFromContext

func LevelFromContext(ctx context.Context) (AccessLevel, bool)

type NamespaceRegexp

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

func NewFromContext

func NewFromContext(ctx context.Context) NamespaceRegexp

func (NamespaceRegexp) Match

func (level NamespaceRegexp) Match(namespace string) bool

Jump to

Keyboard shortcuts

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