package osl
import "github.com/docker/docker/libnetwork/osl"
Package osl describes structures and interfaces which abstract os entities
Index ¶
- Constants
- Variables
- func GenerateKey(containerID string) string
- type Iface
- type IfaceOption
- type Interface
- type Namespace
- func GetSandboxForExternalKey(path string, key string) (*Namespace, error)
- func NewSandbox(key string, osCreate, isRestore bool) (*Namespace, error)
- func (n *Namespace) Destroy() error
- type NeighOption
- type SandboxType
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 ¶
ErrNotImplemented is for platforms which don't implement sandbox
Functions ¶
func GenerateKey ¶
GenerateKey generates a sandbox key based on the passed container id.
Types ¶
type Iface ¶
type Iface struct { SrcName, DstPrefix, DstName string }
type IfaceOption ¶
IfaceOption is a function option type to set interface options.
type Interface ¶
type Interface struct{}
type Namespace ¶
type Namespace struct{}
func GetSandboxForExternalKey ¶
GetSandboxForExternalKey returns sandbox object for the supplied path
func NewSandbox ¶
NewSandbox provides a new sandbox instance created in an os specific way provided a key which uniquely identifies the sandbox
func (*Namespace) Destroy ¶
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 ¶
Path | Synopsis |
---|---|
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.