netplan

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NETWROK           = "network"
	VERSION           = "version"
	RENDERER          = "renderer"
	RENDERER_NETWORKD = "networkd"
	RENDERER_NETWORKM = "NetworkManager"
	ADDRESSES         = "addresses"
	DHCP4             = "dhcp4"
	DHCP6             = "dhcp6"
	ETHERNETS         = "ethernets"
	VLANS             = "vlans"
	VLANS_ID          = "id"
	VLANS_LINK        = "link"
	BONDS             = "bonds"
	BONDS_IFACES      = "interfaces"
	BONDS_PARAMS      = "parameters"
)

Variables

This section is empty.

Functions

func NewBondPath

func NewBondPath(ifname string) []string

func NewConfig

func NewConfig() map[interface{}]interface{}

func NewEthernetPath

func NewEthernetPath(ifname string) []string

func NewVlanPath

func NewVlanPath(ifname string, vid uint16) []string

func ReadConfig

func ReadConfig(r io.Reader) (map[interface{}]interface{}, error)

func WriteConfig

func WriteConfig(w io.Writer, c map[interface{}]interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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