model

package
v0.0.0-...-5c8f720 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2016 License: Apache-2.0 Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseCIDR

func ParseCIDR(cidr string) (n *net.IPNet, e error)

Types

type Firewall

type Firewall struct {
	Name        string
	Container   string
	DatapathID  string
	GatewayIP   string
	GatewayPort int
	ServicePort int
}

type Gateway

type Gateway struct {
	Node       string
	HostName   string
	DatapathID string
	IntDev     string
	IntIP      string
	ExtDev     string
	ExtIP      string
}

func NewGateway

func NewGateway(node, hostname, datapath, intdev, intip, extdev, extip string) *Gateway

type IPAMData

type IPAMData struct {
	AddressSpace string
	Pool         *net.IPNet
	Gateway      *net.IPNet
}

IPAMData represents the per-network ip related operational information libnetwork will send to the network driver during CreateNetwork()

func (*IPAMData) UnmarshalJSON

func (i *IPAMData) UnmarshalJSON(data []byte) error

type IpamInfo

type IpamInfo struct {
	PoolID string
	Meta   map[string]string
	IPAMData
}

func (*IpamInfo) UnmarshalJSON

func (i *IpamInfo) UnmarshalJSON(data []byte) error

type Network

type Network struct {
	Id          string
	NetworkType string
	IPAMV4Info  []*IpamInfo
}

func (*Network) UnmarshalJSON

func (n *Network) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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