proxy

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CleanSettings

type CleanSettings struct {
	RegistryBinary              string
	RegistryDir                 string
	RegistryConfig              string
	TargetUsageBytes            uint64
	CleanTagsPercentage         float64
	TimeZone                    string
	CronSchedule                string
	UseOptimizedDiskCalculation bool
}

type Proxy

type Proxy struct {
	Server               *http.Server
	UseForwardedHeaders  bool
	RegistryHost         string
	RegistryProxy        *httputil.ReverseProxy
	Cache                *lru.Cache
	RegClient            *regclient.RegClient
	CleanSettings        CleanSettings
	MaintenanceSemaphore *semaphore.Weighted
	MaintenanceScheduler *gocron.Scheduler
}

func (*Proxy) RunProxy

func (proxy *Proxy) RunProxy(ctx context.Context)

Jump to

Keyboard shortcuts

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