registry

package
v0.0.11-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Copyright (c) Microsoft Corporation. Licensed under the MIT License.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ResolveRetries is the number of times to attempt resolving a key before giving up.
	ResolveRetries = 3

	// ResolveTimeout is the timeout for resolving a key.
	ResolveTimeout = 1 * time.Second
)

Functions

This section is empty.

Types

type Mirror

type Mirror struct {
	// contains filtered or unexported fields
}

Mirror is a handler that handles requests to this registry proxy.

func New

func New(ctx context.Context, router routing.Router) *Mirror

New creates a new mirror handler.

func (*Mirror) Handle

func (m *Mirror) Handle(c pcontext.Context)

Handle handles a request to this registry mirror.

Jump to

Keyboard shortcuts

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