proxy

package
v1.110.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Proxy)

Option configures a Proxy at construction time.

func WithUpstreamRootCAs

func WithUpstreamRootCAs(pool *x509.CertPool) Option

WithUpstreamRootCAs overrides the certificate pool the proxy uses to verify the upstream registry's TLS certificate. When unset, the proxy verifies against the system trust store, which is the correct default. This option exists for tests (which need to trust an httptest.Server's self-signed cert) and for future support of enterprise CA bundles.

type Proxy

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

func New

func New(opts ...Option) (*Proxy, error)

func (*Proxy) Addr

func (p *Proxy) Addr() string

func (*Proxy) CACertificate

func (p *Proxy) CACertificate() *x509.Certificate

func (*Proxy) Start

func (p *Proxy) Start() error

func (*Proxy) Stop

func (p *Proxy) Stop()

func (*Proxy) Verdicts

func (p *Proxy) Verdicts() []verdict.Entry

Jump to

Keyboard shortcuts

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