package network

import "github.com/moby/buildkit/util/network"

Index

Functions

func Default

func Default() map[pb.NetMode]Provider

Default returns the default network provider set

Types

type Namespace

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

Namespace of network for workers

type NetworkOpts

type NetworkOpts struct {
	Type          string
	CNIConfigPath string
	CNIPluginPath string
}

NetworkOpts hold network options

type Provider

type Provider interface {
	New() (Namespace, error)
}

Provider interface for Network

func NewHostProvider

func NewHostProvider() Provider

func NewNoneProvider

func NewNoneProvider() Provider

Source Files

host.go network.go none.go

Version
v0.5.0
Published
Apr 27, 2019
Platform
js/wasm
Imports
4 packages
Last checked
3 minutes ago

Tools for package owners.