package osl

import "github.com/dotcloud/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
)

Functions

func GC

func GC()

GC triggers garbage collection of namespace path right away and waits for it.

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 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)

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_windows.go neigh_unsupported.go sandbox.go

Directories

PathSynopsis
libnetwork/osl/kernel
Version
v26.0.2+incompatible
Published
Apr 18, 2024
Platform
windows/amd64
Last checked
35 minutes ago

Tools for package owners.