Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
type Registry interface {
// SetupWithManger initialize registry with manager.
SetupWithManger(mgr manager.Manager)
// Register add a new backend store for given gvk
Register(store Store)
// Delete delete a backend store for given gvk
Delete(gvk schema.GroupVersionKind)
// If the gvk is registered and supported by all member clusters, Get returns the backend rest store.
Get(gvk schema.GroupVersionKind) (Store, error)
}
type Store ¶
type Store interface {
GroupVersionKind() schema.GroupVersionKind
// NewObject returns a new instance of the backend type
NewObject() client.Object
// Wrap get a client.Object and returns a backend interface
Wrap(cluster string, obj client.Object) (IBackend, error)
// Get returns a wrapped backend interface
Get(ctx context.Context, cluster, namespace, name string) (IBackend, error)
}
Click to show internal directories.
Click to hide internal directories.