driver

package
v0.23.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	FinchICCLabelIPv4           = "finch.network.bridge.enable_icc.ipv4"
	FinchICCLabelIPv6           = "finch.network.bridge.enable_icc.ipv6"
	BridgeICCOption             = "com.docker.network.bridge.enable_icc"
	BridgeHostBindingIpv4Option = "com.docker.network.bridge.host_binding_ipv4"
	BridgeNameOption            = "com.docker.network.bridge.name"
)
View Source
const (
	FilterTableName   = "filter"
	ForwardChainName  = "FORWARD"
	FinchIsolateChain = "FINCH-ISOLATE-CHAIN"
)

Variables

View Source
var NewBridgeDriver = func(netClient backend.NerdctlNetworkSvc, logger flog.Logger, IPv6 bool) (DriverHandler, error) {
	return &bridgeDriver{
		netClient: netClient,
		logger:    logger,
		IPv6:      IPv6,
	}, nil
}

Functions

This section is empty.

Types

type DriverHandler

type DriverHandler interface {
	HandleCreateOptions(request types.NetworkCreateRequest, options ncTypes.NetworkCreateOptions) (ncTypes.NetworkCreateOptions, error)
	HandlePostCreate(net *netutil.NetworkConfig) (string, error)
	HandleRemove(net *netutil.NetworkConfig) error
}

type IPTablesWrapper

type IPTablesWrapper interface {
	ChainExists(table, chain string) (bool, error)
	NewChain(table, chain string) error
	InsertUnique(table, chain string, pos int, rulespec ...string) error
	AppendUnique(table, chain string, rulespec ...string) error
	DeleteIfExists(table, chain string, rulespec ...string) error
	DeleteChain(table, chain string) error
}

IPTablesWrapper is an interface that wraps the methods of iptables.IPTables to help with mock

Jump to

Keyboard shortcuts

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