Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Mgr is the global registry manager instance Mgr = NewManager() )
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface { // Create the registry Create(ctx context.Context, registry *model.Registry) (id int64, err error) // Count returns the count of registries according to the query Count(ctx context.Context, query *q.Query) (count int64, err error) // List registries according to the query List(ctx context.Context, query *q.Query) (registries []*model.Registry, err error) // Get the registry specified by ID Get(ctx context.Context, id int64) (registry *model.Registry, err error) // Update the specified registry Update(ctx context.Context, registry *model.Registry, props ...string) (err error) // Delete the registry specified by ID Delete(ctx context.Context, id int64) (err error) // CreateAdapter for the provided registry CreateAdapter(ctx context.Context, registry *model.Registry) (adapter adapter.Adapter, err error) // ListRegistryProviderTypes returns all the registered registry provider type ListRegistryProviderTypes(ctx context.Context) (types []string, err error) // ListRegistryProviderInfos returns all the registered registry provider information ListRegistryProviderInfos(ctx context.Context) (infos map[string]*model.AdapterPattern, err error) }
Manager defines the registry related operations
Click to show internal directories.
Click to hide internal directories.