Documentation ¶
Overview ¶
Copyright Jetstack Ltd. See LICENSE for details.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrorNoImpersonationUserFound = errors.New("no Impersonation-User header found for request")
)
Functions ¶
This section is empty.
Types ¶
type SubjectAccessReview ¶
type SubjectAccessReview struct {
// contains filtered or unexported fields
}
structure for storing the review data
func New ¶
func New(subjectAccessReviewer clientazv1.SubjectAccessReviewInterface) (*SubjectAccessReview, error)
create a new SubjectAccessReview structure
func (*SubjectAccessReview) CheckAuthorizedForImpersonation ¶
func (subjectAccessReview *SubjectAccessReview) CheckAuthorizedForImpersonation(req *http.Request, requester user.Info) (user.Info, error)
checks the request for impersonation headers, validates that the user is able to perform that impersonation, and builds the target object
Click to show internal directories.
Click to hide internal directories.