api

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 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

func (APIStore) Apply

func (r APIStore) Apply(gk schema.GroupKind, rctx *ResourceContext) error

func (APIStore) Delete

func (r APIStore) Delete(gk schema.GroupKind) error

func (*APIStore) Get

func (*APIStore) GetAPIResources

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

func (*APIStore) GetExternalGVKSet added in v0.0.14

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

return the gvks as seen by the client

func (*APIStore) GetStorage

func (r *APIStore) GetStorage(gk schema.GroupKind) (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 {
	Internal *discoverypb.APIResource
	External *discoverypb.APIResource
	Storage  rest.Storage
	CRD      *apiextensionsv1.CustomResourceDefinition
}

func (*ResourceContext) ExternalGVK added in v0.0.14

func (r *ResourceContext) ExternalGVK() schema.GroupVersionKind

ExternalGVK return the gvk as seen by the client

func (*ResourceContext) GV added in v0.0.14

func (*ResourceContext) InternalGVK added in v0.0.14

func (r *ResourceContext) InternalGVK() schema.GroupVersionKind

InternalGVK return the gvk as seen by the storage layer

Jump to

Keyboard shortcuts

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