config

package
v0.0.0-...-10a5688 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPAMArgs

type IPAMArgs struct {
	types.CommonArgs
	IP net.IP `json:"ip,omitempty"`
}

type IPAMConfig

type IPAMConfig struct {
	Name       string
	Type       string        `json:"type"`
	RangeStart net.IP        `json:"rangeStart"`
	RangeEnd   net.IP        `json:"rangeEnd"`
	Subnet     types.IPNet   `json:"subnet"`
	Gateway    net.IP        `json:"gateway"`
	ConsulAddr string        `json:"consul_addr"`
	ConsulPort string        `json:"consul_port"`
	ConsulDC   string        `json:"dc"`
	Routes     []types.Route `json:"routes"`
	Args       *IPAMArgs     `json:"-"`
}

IPAMConfig represents the IP related network configuration.

func LoadIPAMConfig

func LoadIPAMConfig(bytes []byte, args string) (*IPAMConfig, error)

NewIPAMConfig creates a NetworkConfig from the given network name.

type Net

type Net struct {
	Name string      `json:"name"`
	IPAM *IPAMConfig `json:"ipam"`
}

Jump to

Keyboard shortcuts

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