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(clusterSARRegistry subjectaccessreview.Registry) *REST
func (*REST) Create ¶
func (r *REST) Create(ctx context.Context, obj runtime.Object, _ rest.ValidateObjectFunc, options *metav1.CreateOptions) (runtime.Object, error)
Create transforms a LocalSAR into an ClusterSAR that is requesting a namespace. That collapses the code paths. LocalSubjectAccessReview exists to allow clean expression of policy.
func (*REST) NamespaceScoped ¶
Click to show internal directories.
Click to hide internal directories.