Documentation ¶
Index ¶
- type APIStore
- func (r APIStore) Apply(gvk schema.GroupVersionKind, rctx *ResourceContext) error
- func (r APIStore) Delete(gvk schema.GroupVersionKind) error
- func (r *APIStore) Get(gvk schema.GroupVersionKind) (*ResourceContext, error)
- func (r *APIStore) GetAPIResources() []*discoverypb.APIResource
- func (r *APIStore) GetGVKSet() sets.Set[schema.GroupVersionKind]
- func (r *APIStore) GetStorage(gvk schema.GroupVersionKind) (rest.Storage, error)
- func (r *APIStore) Has(gvk schema.GroupVersionKind) bool
- func (r *APIStore) Import(other *APIStore)
- func (r *APIStore) Watch(ctx context.Context, opts ...store.ListOption) (watch.WatchInterface[*ResourceContext], error)
- type ResourceContext
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 (r APIStore) Apply(gvk schema.GroupVersionKind, rctx *ResourceContext) error
func (*APIStore) Get ¶
func (r *APIStore) Get(gvk schema.GroupVersionKind) (*ResourceContext, error)
func (*APIStore) GetAPIResources ¶
func (r *APIStore) GetAPIResources() []*discoverypb.APIResource
func (*APIStore) GetStorage ¶
func (*APIStore) Watch ¶
func (r *APIStore) Watch(ctx context.Context, opts ...store.ListOption) (watch.WatchInterface[*ResourceContext], error)
type ResourceContext ¶
type ResourceContext struct { *discoverypb.APIResource Storage rest.Storage CRD *apiextensionsv1.CustomResourceDefinition }
func (*ResourceContext) GVK ¶
func (r *ResourceContext) GVK() schema.GroupVersionKind
Click to show internal directories.
Click to hide internal directories.