Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type REST ¶
type REST struct {
// contains filtered or unexported fields
}
REST implements the RESTStorage interface in terms of an Registry.
func NewREST ¶
func NewREST(authorizer kauthorizer.Authorizer, subjectLocator rbac.SubjectLocator) *REST
NewREST creates a new REST for policies.
func (*REST) Create ¶
func (r *REST) Create(ctx context.Context, obj runtime.Object, _ rest.ValidateObjectFunc, _ bool) (runtime.Object, error)
Create registers a given new ResourceAccessReview instance to r.registry.
func (*REST) NamespaceScoped ¶
type Registry ¶
type Registry interface {
CreateResourceAccessReview(ctx context.Context, resourceAccessReview *api.ResourceAccessReview) (*api.ResourceAccessReviewResponse, error)
}
func NewRegistry ¶
Click to show internal directories.
Click to hide internal directories.