netconf

package
v0.0.0-...-07a2936 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WAAddRange

func WAAddRange(config *whereabouts.IPAMConfig, ipRange string, ipRangeStart string, ipRangeEnd string)

func WAConfig

func WAConfig() *whereabouts.IPAMConfig

WAConfig returns a JSON byte array of the Whereabouts IPAM configuration

Types

type NetConf

type NetConf struct {
	CNIVersion string `json:"cniVersion,omitempty"`

	Name         string          `json:"name,omitempty"`
	Type         string          `json:"type,omitempty"`
	Capabilities map[string]bool `json:"capabilities,omitempty"`
	IPAM         interface{}     `json:"ipam,omitempty"`
	DNS          string          `json:"dns,omitempty"`
}

type NetConfMacvlan

type NetConfMacvlan struct {
	NetConf
	Master     string `json:"master"`
	Mode       string `json:"mode"`
	MTU        int    `json:"mtu"`
	Mac        string `json:"mac,omitempty"`
	LinkContNs bool   `json:"linkInContainer,omitempty"`
}

func NewNetConfMacvlan

func NewNetConfMacvlan() *NetConfMacvlan

Jump to

Keyboard shortcuts

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