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.27.5
Published
Aug 24, 2023
Platform
linux/amd64
Imports
5 packages
Last checked
2 minutes ago

Tools for package owners.