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
Click to show internal directories.
Click to hide internal directories.