netmode

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package netmode is the container network-mode vocabulary.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mode

type Mode string

Mode is Engine NetworkMode / Compose network_mode.

const (
	Bridge  Mode = "bridge"
	Host    Mode = "host"
	None    Mode = "none"
	Default Mode = "default"
)

func All

func All() []Mode

All returns the fixed network modes (not container:/service: forms).

func Container

func Container(id string) Mode

Container uses another container's network namespace.

func Service

func Service(name string) Mode

Service uses a Compose service's network namespace.

Jump to

Keyboard shortcuts

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