network

package
v0.31.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: Apache-2.0 Imports: 10 Imported by: 194

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialer added in v0.31.0

type Dialer interface {
	DialContext(ctx context.Context, network, address string) (net.Conn, error)
}

type Namespace

type Namespace interface {
	io.Closer
	// Set the namespace on the spec
	Set(*specs.Spec) error

	Sample() (*resourcestypes.NetworkSample, error)
}

Namespace of network for workers

type NamespaceOptions added in v0.31.0

type NamespaceOptions struct{}

type Provider

type Provider interface {
	io.Closer
	New(ctx context.Context, hostname string, opt NamespaceOptions) (Namespace, error)
}

Provider interface for Network

func NewHostProvider

func NewHostProvider() Provider

func NewNoneProvider

func NewNoneProvider() Provider

type ProxyCapture added in v0.31.0

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

func NewProxyCapture added in v0.31.0

func NewProxyCapture() *ProxyCapture

func (*ProxyCapture) AddIncomplete added in v0.31.0

func (c *ProxyCapture) AddIncomplete(in ProxyIncomplete)

func (*ProxyCapture) AddMaterial added in v0.31.0

func (c *ProxyCapture) AddMaterial(m ProxyMaterial)

func (*ProxyCapture) AddRequest added in v0.31.0

func (c *ProxyCapture) AddRequest(r ProxyRequest)

func (*ProxyCapture) Incomplete added in v0.31.0

func (c *ProxyCapture) Incomplete() []ProxyIncomplete

func (*ProxyCapture) Materials added in v0.31.0

func (c *ProxyCapture) Materials() []ProxyMaterial

func (*ProxyCapture) Requests added in v0.31.0

func (c *ProxyCapture) Requests() []ProxyRequest

type ProxyConfig added in v0.31.0

type ProxyConfig struct {
	Policy     ProxyPolicy
	Capture    *ProxyCapture
	EgressMode pb.NetMode
}

type ProxyIncomplete added in v0.31.0

type ProxyIncomplete struct {
	Method string
	URL    string
	Reason string
}

type ProxyMaterial added in v0.31.0

type ProxyMaterial struct {
	URL    string
	Digest digest.Digest
}

type ProxyNamespace added in v0.31.0

type ProxyNamespace interface {
	Namespace
	ProxyEnv() []string
	ProxyCACert() []byte
}

ProxyNamespace is implemented by network namespaces that expose an internal HTTP(S) proxy to the container.

type ProxyPolicy added in v0.31.0

type ProxyPolicy interface {
	Evaluate(context.Context, *pb.Op) (bool, error)
}

ProxyPolicy authorizes requests made through a BuildKit-owned exec proxy.

type ProxyProvider added in v0.31.0

type ProxyProvider interface {
	io.Closer
	NewProxy(ctx context.Context, cfg *ProxyConfig) (ProxyNamespace, error)
}

type ProxyRequest added in v0.31.0

type ProxyRequest struct {
	Method         string
	URL            string
	RedirectTarget string
	StatusCode     int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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