networking

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIPv4SubnetPrefix

func GetIPv4SubnetPrefix(network string) (string, error)

GetIPv4SubnetPrefix returns the subnet prefix for the given docker network

func GetIPv6SubnetPrefix

func GetIPv6SubnetPrefix(network string) (string, error)

GetIPv6SubnetPrefix returns the subnet prefix for the given docker network

Types

type IPTable added in v0.1.0

type IPTable struct {
	// contains filtered or unexported fields
}

IPTable is a wrapper around iptables command

func NewIPTable added in v0.1.0

func NewIPTable() *IPTable

func (*IPTable) Command added in v0.1.0

func (ipt *IPTable) Command(cmd string) *IPTable

func (*IPTable) Specification added in v0.1.0

func (ipt *IPTable) Specification(specification string) *IPTable

func (*IPTable) String added in v0.1.0

func (ipt *IPTable) String() string

func (*IPTable) Sudo added in v0.1.0

func (ipt *IPTable) Sudo() *IPTable

func (*IPTable) Table added in v0.1.0

func (ipt *IPTable) Table(table string) *IPTable

Jump to

Keyboard shortcuts

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