fixedgvs

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package fixedgvs provides the types (and underlying implementation) required to build virtual workspaces which allow adding well-defined APIs in a limited number of group/versions, implemented as Rest storages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FixedGroupVersionsVirtualWorkspace

type FixedGroupVersionsVirtualWorkspace struct {
	framework.RootPathResolver
	authorizer.Authorizer
	framework.ReadyChecker
	GroupVersionAPISets []GroupVersionAPISet
}

FixedGroupVersionsVirtualWorkspace is an implementation of the VirtualWorkspace interface, which allows adding well-defined APIs in a limited number of group/versions, implemented as Rest storages.

func (*FixedGroupVersionsVirtualWorkspace) Register

type GroupVersionAPISet

type GroupVersionAPISet struct {
	GroupVersion schema.GroupVersion

	// AddToScheme adds the additional schemes required to register the REST storages
	AddToScheme func(*runtime.Scheme) error

	// OpenAPIDefinitions contains the OpenAPI v2 definitions of resources provided by the REST storages
	OpenAPIDefinitions openapicommon.GetOpenAPIDefinitions

	// BootstrapRestResources bootstraps the various Rest storage builders (one for each REST resource name),
	// that will be later registered in dedicated delegated APIServer by the framework.
	// This bootstrapping may include creating active objects like controllers,
	// adding poststart hooks into the rootAPIServerConfig, etc ...
	BootstrapRestResources func(rootAPIServerConfig genericapiserver.CompletedConfig) (map[string]RestStorageBuilder, error)
}

GroupVersionAPISet describes the set of APIs that should be added in a given group/version. This allows specifying the logic that should build related REST storages, as well as the additional schemes required to register the REST storages.

type RestStorageBuilder

type RestStorageBuilder func(apiGroupAPIServerConfig genericapiserver.CompletedConfig) (reststorage.Storage, error)

RestStorageBuilder is a function that builds a REST Storage based on the config of the dedicated delegated APIServer is will be created on.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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