clone

package
v1.56.1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 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 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳