networkbridge

package
v3.0.0-beta10 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNetworker

func NewNetworker() network.Networker

Types

type T

type T struct {
	network.T
}

func New

func New() *T

func (*T) BackendDevName

func (t *T) BackendDevName() string

func (*T) CNIConfigData

func (t *T) CNIConfigData() (interface{}, error)

CNIConfigData returns a cni network configuration, like

{
  "bridge": "cni0",
  "cniVersion": "0.3.0",
  "ipMasq": false,
  "name": "mynet",
  "ipam": {
    "routes": [
      {"dst": "0.0.0.0/0"}
    ],
    "subnet": "10.22.0.0/16",
    "type": "host-local"
  },
  "isGateway": true,
  "type": "bridge"
}

func (*T) IsIP6

func (t *T) IsIP6() bool

func (*T) Setup

func (t *T) Setup() error

Jump to

Keyboard shortcuts

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