service

package
v0.0.0-...-a6c131b Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APISubdomainPrefix = "api."
)

Variables

ProviderSet is service providers.

Functions

This section is empty.

Types

type Mirror

type Mirror interface {
	GetClient() (*http.Client, string)
	Remote() string
	ServerName() string
	ServeHTTP(http.ResponseWriter, *http.Request)
	ObjectStorage() ObjectStorage
}

func NewMirror

func NewMirror(cfg *conf.Mirror, objectStorage *data.ObjectStorage, logger log.Logger) (Mirror, error)

type RepositoryService

type RepositoryService struct {
	Mirror

	registryv1alpha1connect.UnimplementedRepositoryServiceHandler
	// contains filtered or unexported fields
}

func NewRepositoryService

func NewRepositoryService(m Mirror) *RepositoryService

type ResolveService

type ResolveService struct {
	Mirror

	registryv1alpha1connect.UnimplementedResolveServiceHandler
	// contains filtered or unexported fields
}

func NewResolveService

func NewResolveService(m Mirror) *ResolveService

Jump to

Keyboard shortcuts

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