scar

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package scar implements the SelfClusterAccessReview API of the Access Virtual Workspace.

Index

Constants

View Source
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.

View Source
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 NewREST

func NewREST(g *graph.Graph) *REST

NewREST returns the REST storage backed by the given access graph.

func (*REST) Create

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

func (r *REST) GetSingularName() string

GetSingularName returns the singular resource name.

func (*REST) NamespaceScoped

func (r *REST) NamespaceScoped() bool

NamespaceScoped reports that the resource is cluster-scoped.

func (*REST) New

func (r *REST) New() runtime.Object

New returns an empty SelfClusterAccessReview.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL