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 ¶
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 (*Proxy) CACertificate ¶
func (p *Proxy) CACertificate() *x509.Certificate
Click to show internal directories.
Click to hide internal directories.