types

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package types provides common types used in cloudinit & ignition.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FIBRuleData

type FIBRuleData struct {
	To       string
	From     string
	Priority uint32
	Table    uint32
}

FIBRuleData stores forward information base rules (routing policies).

type NetworkConfigData

type NetworkConfigData struct {
	ProxName    string // Device name in Proxmox
	MacAddress  string
	DHCP4       bool
	DHCP6       bool
	IPAddress   string
	IPV6Address string
	Gateway     string
	Metric      *uint32
	Gateway6    string
	Metric6     *uint32
	DNSServers  []string
	Type        string
	Name        string
	Interfaces  []string // Interfaces controlled by this one.
	Table       uint32   // linux routing table number for VRF.
	Routes      []RoutingData
	FIBRules    []FIBRuleData // Forwarding information block for routing.
	LinkMTU     *uint16       // linux network device MTU
	VRF         string        // linux VRF name // only used in networkd config.
}

NetworkConfigData is used to render network-config.

type RoutingData

type RoutingData struct {
	To     string
	Via    string
	Metric uint32
	Table  uint32
}

RoutingData stores routing configuration.

Jump to

Keyboard shortcuts

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