Documentation ¶
Index ¶
- type APIStore
- func (r APIStore) Apply(gk schema.GroupKind, rctx *ResourceContext) error
- func (r APIStore) Delete(gk schema.GroupKind) error
- func (r *APIStore) Get(gk schema.GroupKind) (*ResourceContext, error)
- func (r *APIStore) GetAPIResources() []*discoverypb.APIResource
- func (r *APIStore) GetExternalGVKSet() sets.Set[schema.GroupVersionKind]
- func (r *APIStore) GetStorage(gk schema.GroupKind) (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
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 (*APIStore) Watch ¶
func (r *APIStore) Watch(ctx context.Context, opts ...store.ListOption) (watch.WatchInterface[*ResourceContext], error)
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 (r *ResourceContext) GV() schema.GroupKind
func (*ResourceContext) InternalGVK ¶ added in v0.0.14
func (r *ResourceContext) InternalGVK() schema.GroupVersionKind
InternalGVK return the gvk as seen by the storage layer
Click to show internal directories.
Click to hide internal directories.