Documentation
¶
Overview ¶
Package virtual provides shared building blocks for the virtual workspaces served by this binary, built on the kcp virtual-workspace-framework.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthenticatedOnlyAuthorizer ¶
func AuthenticatedOnlyAuthorizer() authorizer.Authorizer
AuthenticatedOnlyAuthorizer allows any authenticated, non-anonymous user. SCAR is a self-review — the caller only asks about themselves — so the access graph, not the authorizer, decides what the answer contains.
Types ¶
type CoreVirtualWorkspace ¶
type CoreVirtualWorkspace interface {
authorizer.Authorizer
framework.RootPathResolver
framework.ReadyChecker
Register(name string, rootAPIServerConfig genericapiserver.CompletedConfig, delegateAPIServer genericapiserver.DelegationTarget) (genericapiserver.DelegationTarget, error)
}
CoreVirtualWorkspace is framework.VirtualWorkspace without the admission interfaces.
type WithoutAdmission ¶
type WithoutAdmission struct {
CoreVirtualWorkspace
}
TODO: if SCAR ever grows persisted (writable) state, replace this with real admission — at minimum validation of the incoming object.
func (*WithoutAdmission) Admit ¶
func (w *WithoutAdmission) Admit(_ context.Context, _ admission.Attributes, _ admission.ObjectInterfaces) error
func (*WithoutAdmission) Validate ¶
func (w *WithoutAdmission) Validate(_ context.Context, _ admission.Attributes, _ admission.ObjectInterfaces) error
Click to show internal directories.
Click to hide internal directories.