package path

import "k8s.io/apiserver/pkg/authorization/path"

Package path contains an authorizer that allows certain paths and path prefixes.

Index

Functions

func NewAuthorizer

func NewAuthorizer(alwaysAllowPaths []string) (authorizer.Authorizer, error)

NewAuthorizer returns an authorizer which accepts a given set of paths. Each path is either a fully matching path or it ends in * in case a prefix match is done. A leading / is optional.

Source Files

doc.go path.go

Version
v0.33.0 (latest)
Published
Apr 23, 2025
Platform
linux/amd64
Imports
5 packages
Last checked
1 hour ago

Tools for package owners.