Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Ctl = NewController()
Ctl is a global registry controller instance
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller 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) // GetInfo returns the basic information and capabilities of the registry GetInfo(ctx context.Context, id int64) (info *model.RegistryInfo, err error) // IsHealthy checks whether the provided registry is healthy or not IsHealthy(ctx context.Context, registry *model.Registry) (healthy bool, 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) // StartRegularHealthCheck for all registries StartRegularHealthCheck(ctx context.Context, closing, done chan struct{}) }
Controller defines the registry related operations
func NewController ¶
func NewController() Controller
NewController creates an instance of the registry controller
Click to show internal directories.
Click to hide internal directories.