clone

package
v1.34.2 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanServiceAccountClonePVC

func CanServiceAccountClonePVC(client SubjectAccessReviewsProxy, pvcNamespace, pvcName, saNamespace, saName string) (bool, string, error)

CanServiceAccountClonePVC checks if a ServiceAccount has "appropriate" permission to clone from the given PVC

func CanUserClonePVC

func CanUserClonePVC(client SubjectAccessReviewsProxy, sourceNamespace, pvcName, targetNamespace string,
	userInfo authentication.UserInfo) (bool, string, error)

CanUserClonePVC checks if a user has "appropriate" permission to clone from the given PVC

Types

type SubjectAccessReviewsProxy added in v1.23.5

type SubjectAccessReviewsProxy interface {
	Create(*authorization.SubjectAccessReview) (*authorization.SubjectAccessReview, error)
}

SubjectAccessReviewsProxy proxies calls to work with SubjectAccessReviews

Jump to

Keyboard shortcuts

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