Documentation
¶
Index ¶
- func CanServiceAccountClonePVC(client SubjectAccessReviewsProxy, ...) (bool, string, error)
- func CanServiceAccountCloneSnapshot(client SubjectAccessReviewsProxy, ...) (bool, string, error)
- func CanUserClonePVC(client SubjectAccessReviewsProxy, ...) (bool, string, error)
- func CanUserCloneSnapshot(client SubjectAccessReviewsProxy, ...) (bool, string, error)
- type ServiceAccountCloneAuthFunc
- type SubjectAccessReviewsProxy
- type UserCloneAuthFunc
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 CanServiceAccountCloneSnapshot ¶ added in v1.56.0
func CanServiceAccountCloneSnapshot(client SubjectAccessReviewsProxy, pvcNamespace, pvcName, saNamespace, saName string) (bool, string, error)
CanServiceAccountCloneSnapshot checks if a ServiceAccount has "appropriate" permission to clone from the given snapshot
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
func CanUserCloneSnapshot ¶ added in v1.56.0
func CanUserCloneSnapshot(client SubjectAccessReviewsProxy, sourceNamespace, pvcName, targetNamespace string, userInfo authentication.UserInfo) (bool, string, error)
CanUserCloneSnapshot checks if a user has "appropriate" permission to clone from the given snapshot
Types ¶
type ServiceAccountCloneAuthFunc ¶ added in v1.56.0
type ServiceAccountCloneAuthFunc func(client SubjectAccessReviewsProxy, pvcNamespace, pvcName, saNamespace, saName string) (bool, string, error)
ServiceAccountCloneAuthFunc represents a serviceaccount clone auth func
type SubjectAccessReviewsProxy ¶ added in v1.23.5
type SubjectAccessReviewsProxy interface {
Create(*authorization.SubjectAccessReview) (*authorization.SubjectAccessReview, error)
}
SubjectAccessReviewsProxy proxies calls to work with SubjectAccessReviews
type UserCloneAuthFunc ¶ added in v1.56.0
type UserCloneAuthFunc func(client SubjectAccessReviewsProxy, sourceNamespace, pvcName, targetNamespace string, userInfo authentication.UserInfo) (bool, string, error)
UserCloneAuthFunc represents a user clone auth func
Click to show internal directories.
Click to hide internal directories.