internal

package
v0.33.20 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: MIT Imports: 6 Imported by: 0

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