api

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIStore

type APIStore struct {
	store.Storer[*ResourceContext]
}

key 1 is gvk.String; key 2 is the name of the choreoinst

func NewAPIStore

func NewAPIStore() *APIStore

NewAPIResourceStore stores gvk -> multiple storages embedded API(s) are stored twice internal/dynamic API(s) can only be stored once

func (APIStore) Apply

func (APIStore) Delete

func (r APIStore) Delete(gvk schema.GroupVersionKind) error

func (*APIStore) Get

func (*APIStore) GetAPIResources

func (r *APIStore) GetAPIResources() []*discoverypb.APIResource

func (*APIStore) GetGVKSet

func (r *APIStore) GetGVKSet() sets.Set[schema.GroupVersionKind]

func (*APIStore) GetStorage

func (r *APIStore) GetStorage(gvk schema.GroupVersionKind) (rest.Storage, error)

func (*APIStore) Has

func (r *APIStore) Has(gvk schema.GroupVersionKind) bool

func (*APIStore) Import

func (r *APIStore) Import(other *APIStore)

func (*APIStore) Watch

type ResourceContext

type ResourceContext struct {
	*discoverypb.APIResource
	Storage rest.Storage
	CRD     *apiextensionsv1.CustomResourceDefinition
}

func (*ResourceContext) GVK

Jump to

Keyboard shortcuts

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