client

package
v0.6.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckResourceAccess

func CheckResourceAccess(ctx context.Context, sar authv1.SelfSubjectAccessReviewInterface, grs []GroupResource, verbs []string, namespace *string) result.ResourceAccess

CheckResourceAccess determines the access rights for the given GroupResources and verbs. Since it needs to do a lot of requests, the SelfSubjectAccessReviewInterface needs to be configured for high queries per second.

func GetSubjectAccess

func GetSubjectAccess(ctx context.Context, opts *options.RakkessOptions, gr schema.GroupResource, resourceName string) (*result.SubjectAccess, error)

GetSubjectAccess determines subjects with access to the given resource.

Types

type GroupResource

type GroupResource struct {
	APIGroup    string
	APIResource metav1.APIResource
}

GroupResource contains the APIGroup and APIResource

func FetchAvailableGroupResources

func FetchAvailableGroupResources(opts *options.RakkessOptions) ([]GroupResource, error)

FetchAvailableGroupResources fetches a list of known APIResources on the server.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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