registry

package
v0.0.27 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: MIT Imports: 20 Imported by: 1

Documentation

Index

Constants

View Source
const (
	MirroredHeaderKey = "X-Spegel-Mirrored"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Registry)

func WithLocalAddress

func WithLocalAddress(localAddr string) Option

func WithLogger

func WithLogger(log logr.Logger) Option

func WithResolveLatestTag

func WithResolveLatestTag(resolveLatestTag bool) Option

func WithResolveRetries

func WithResolveRetries(resolveRetries int) Option

func WithResolveTimeout

func WithResolveTimeout(resolveTimeout time.Duration) Option

func WithTransport

func WithTransport(transport http.RoundTripper) Option

type Registry

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

func NewRegistry

func NewRegistry(ociClient oci.Client, router routing.Router, opts ...Option) *Registry

func (*Registry) Server

func (r *Registry) Server(addr string) (*http.Server, error)

Jump to

Keyboard shortcuts

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