helper

package
v1.7.1-0...-23dd39d Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIGroupMatches

func APIGroupMatches(limit apisconfig.ResourceLimit, group string) bool

APIGroupMatches returns `true` if the given group has a match in the given limit.

func ResourceMatches

func ResourceMatches(limit apisconfig.ResourceLimit, resource string) bool

ResourceMatches returns `true` if the given resource has a match in the given limit.

func ServiceAccountMatches

func ServiceAccountMatches(subject rbacv1.Subject, userInfo authenticationv1.UserInfo) bool

ServiceAccountMatches returns `true` if the given service account in the subject has a match in the given userConfig. Supports `apisconfig.WildcardAll` in subject name.

func UserGroupMatches

func UserGroupMatches(subject rbacv1.Subject, userInfo authenticationv1.UserInfo) bool

UserGroupMatches returns `true` if the given group in the subject has a match in the given userConfig. Always returns true if `apisconfig.WildcardAll` is used in subject.

func UserMatches

func UserMatches(subject rbacv1.Subject, userInfo authenticationv1.UserInfo) bool

UserMatches returns `true` if the given user in the subject has a match in the given userConfig.

func VersionMatches

func VersionMatches(limit apisconfig.ResourceLimit, version string) bool

VersionMatches returns `true` if the given version has a match in the given limit.

Types

This section is empty.

Jump to

Keyboard shortcuts

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