package osl

import "github.com/docker/docker/libnetwork/osl"

Package osl describes structures and interfaces which abstract os entities

Index

Constants

const (
	// SandboxTypeIngress indicates that the sandbox is for the ingress
	SandboxTypeIngress = iota
	// SandboxTypeLoadBalancer indicates that the sandbox is a load balancer
	SandboxTypeLoadBalancer = iota
)

Variables

var ErrNotImplemented = errors.New("not implemented")

ErrNotImplemented is for platforms which don't implement sandbox

Functions

func GenerateKey

func GenerateKey(containerID string) string

GenerateKey generates a sandbox key based on the passed container id.

Types

type Iface

type Iface struct {
	SrcName, DstPrefix, DstName string
}

type IfaceOption

type IfaceOption func(i *Interface) error

IfaceOption is a function option type to set interface options.

type Interface

type Interface struct{}

type Namespace

type Namespace struct{}

func GetSandboxForExternalKey

func GetSandboxForExternalKey(path string, key string) (*Namespace, error)

GetSandboxForExternalKey returns sandbox object for the supplied path

func NewSandbox

func NewSandbox(key string, osCreate, isRestore bool) (*Namespace, error)

NewSandbox provides a new sandbox instance created in an os specific way provided a key which uniquely identifies the sandbox

func (*Namespace) Destroy

func (n *Namespace) Destroy() error

type NeighOption

type NeighOption func(nh *neigh)

NeighOption is a function option type to set neighbor options.

type SandboxType

type SandboxType int

SandboxType specify the time of the sandbox, this can be used to apply special configs

Source Files

interface_unsupported.go namespace_unsupported.go neigh_unsupported.go sandbox.go sandbox_unsupported.go

Directories

PathSynopsis
libnetwork/osl/kernel
Version
v28.0.3+incompatible
Published
Mar 25, 2025
Platform
js/wasm
Imports
1 packages
Last checked
7 minutes ago

Tools for package owners.