network

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultCIDR = "10.87.0.0/16"

DefaultCIDR is the default address range to use for networked containers.

View Source
const DefaultName = "dagger"

DefaultName is a short name for the engine's container network. It is used for interface name.

View Source
const DomainSuffix = ".dagger.local"

DomainSuffix is an extra domain suffix appended to every session's unique domain. It is used to identify which domains to propagate from a parent session's /etc/resolv.conf to a child (nested Dagger) session's network config so that nested code can reach services in the parent.

Variables

This section is empty.

Functions

func BridgeFromCIDR added in v0.4.2

func BridgeFromCIDR(subnet string) (net.IP, error)

func ClientDomain added in v0.8.0

func ClientDomain(sid string) string

ClientDomain is a session-global domain suffix appended to every service's hostname. It is randomly generated on the first call.

Ideally we would base this on the Buildkit gateway session ID instead of using global state, but for exporting we actually establish multiple gateway sessions.

func HostHash added in v0.8.0

func HostHash(val digest.Digest) string

func HostHashStr added in v0.8.0

func HostHashStr(val string) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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