providers

package
v0.14.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func String added in v0.4.1

func String(s fmt.Stringer) string

Types

type Metadata

type Metadata struct {
	Attributes map[string]string
	Hostname   string
	SshKeys    []string
	Network    []NetworkInterface
	NetDev     []NetworkDevice
}

type NetworkDevice added in v0.12.0

type NetworkDevice struct {
	Name            string
	Kind            string
	HardwareAddress net.HardwareAddr
	Priority        int
	Sections        []Section
}

func (NetworkDevice) NetdevConfig added in v0.12.0

func (d NetworkDevice) NetdevConfig() string

func (NetworkDevice) UnitName added in v0.12.0

func (d NetworkDevice) UnitName() string

type NetworkInterface added in v0.6.0

type NetworkInterface struct {
	Name            string
	HardwareAddress net.HardwareAddr
	Priority        int
	Nameservers     []net.IP
	IPAddresses     []net.IPNet
	Routes          []NetworkRoute
	Bond            string
}

func (NetworkInterface) NetworkConfig added in v0.6.0

func (i NetworkInterface) NetworkConfig() string

func (NetworkInterface) UnitName added in v0.12.0

func (i NetworkInterface) UnitName() string

type NetworkRoute added in v0.6.0

type NetworkRoute struct {
	Destination net.IPNet
	Gateway     net.IP
}

type Section added in v0.12.0

type Section struct {
	Name       string
	Attributes [][2]string
}

Jump to

Keyboard shortcuts

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