Documentation
¶
Overview ¶
Package scar implements the SelfClusterAccessReview API of the Access Virtual Workspace.
Index ¶
Constants ¶
const RootPath = "/services/" + VirtualWorkspaceName
RootPath is the URL prefix the front-proxy routes to this VW. SCAR is served at RootPath + /apis/access.contrib.kcp.io/v1alpha1/selfclusteraccessreviews.
const VirtualWorkspaceName = "access"
Variables ¶
This section is empty.
Functions ¶
func NewVirtualWorkspace ¶
func NewVirtualWorkspace(g *graph.Graph) rootapiserver.NamedVirtualWorkspace
NewVirtualWorkspace builds the Access VW: a fixed-group-version delegated apiserver serving the access.contrib.kcp.io/v1alpha1 API with the selfclusteraccessreviews REST storage, backed by the shared access graph.
Types ¶
type REST ¶
type REST struct {
// contains filtered or unexported fields
}
func (*REST) Create ¶
func (r *REST) Create(ctx context.Context, obj runtime.Object, _ rest.ValidateObjectFunc, _ *metav1.CreateOptions) (runtime.Object, error)
Create answers the self-review, it resolves the caller from the request context and fills Status.Clusters from the access graph.
func (*REST) Destroy ¶
func (r *REST) Destroy()
Destroy is a no-op; the storage holds no resources that need cleanup.
func (*REST) GetSingularName ¶
GetSingularName returns the singular resource name.
func (*REST) NamespaceScoped ¶
NamespaceScoped reports that the resource is cluster-scoped.