registry

package
Version: v0.0.0-...-0feb2aa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL