server

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CacheControlHeaderKey = "Cache-Control"
	NoCacheHeader         = "no-store, no-cache, max-age=0, must-revalidate, proxy-revalidate"

	// 604800: 7 days;
	Cache7DaysHeader = "max-age=604800"
	// 864000: 10 days;
	Cache10DaysHeader = "max-age=864000"
)

Variables

This section is empty.

Functions

func NewAPIFactory

func NewAPIFactory(
	ctx context.Context, remoteRawURL string, serverURL *url.URL, insecure bool,
) (*apiFactory, error)

Factory is the generator factory for SingleReverseProxy Server

func NewRegistryServer

func NewRegistryServer(
	ctx context.Context, c *config.Config,
) (*registryServer, error)

Types

type FactoryKind

type FactoryKind int
const (
	APIFactory FactoryKind = iota // Default Factory Kind
	ManifestFactory
	BlobsFactory
)

func (*FactoryKind) String

func (k *FactoryKind) String() string

type Server

type Server interface {
	Serve(ctx context.Context) error
}

Jump to

Keyboard shortcuts

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