authorizationutil

package
Version: v0.0.0-...-fef421e Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: Apache-2.0 Imports: 10 Imported by: 24

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddUserToSAR

AddUserToSAR adds the requisite user information to a SubjectAccessReview. It returns the modified SubjectAccessReview.

func Authorize

Authorize verifies that a given user is permitted to carry out a given action. If this cannot be determined, or if the user is not permitted, an error is returned.

func BuildRBACSubjects

func BuildRBACSubjects(users, groups []string) []rbacv1.Subject

func RBACSubjectsToUsersAndGroups

func RBACSubjectsToUsersAndGroups(subjects []rbacv1.Subject, defaultNamespace string) (users []string, groups []string)

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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