internal

package
v0.34.4 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	DefaultSubjType = "user"
)

Variables

This section is empty.

Functions

func DefaultPolicyContext

func DefaultPolicyContext(policy *middleware.Policy) *api.PolicyContext

func HostnameSegment added in v0.32.0

func HostnameSegment(u *url.URL, index int) string

func ToPolicyPath

func ToPolicyPath(path string) string

func ValueOrEmpty

func ValueOrEmpty(ctx context.Context, key any) string

Types

type Identity

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

func NewIdentity

func NewIdentity(identityType api.IdentityType, identity string) *Identity

func (*Identity) Context

func (id *Identity) Context() *api.IdentityContext

func (*Identity) ID

func (id *Identity) ID(identity string) middleware.Identity

func (*Identity) IsJWT

func (id *Identity) IsJWT() bool

func (*Identity) IsManual added in v0.30.0

func (id *Identity) IsManual() bool

func (*Identity) IsSubject

func (id *Identity) IsSubject() bool

func (*Identity) JWT

func (id *Identity) JWT() middleware.Identity

func (*Identity) Manual added in v0.30.0

func (id *Identity) Manual() middleware.Identity

func (*Identity) None

func (id *Identity) None() middleware.Identity

func (*Identity) Subject

func (id *Identity) Subject() middleware.Identity

type Lookup added in v0.32.1

type Lookup[T comparable] map[T]struct{}

func NewLookup added in v0.32.1

func NewLookup[T comparable](items ...T) Lookup[T]

func (Lookup[T]) Contains added in v0.32.1

func (l Lookup[T]) Contains(item T) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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