types

package
v0.0.0-...-94e4715 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelManaged           = "yunion.io/managed"
	LabelManagedValueAgent = "calico-node-agent"
)
View Source
const (
	EnvKeyNodeName = "NODENAME"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeConfig

type NodeConfig struct {
	NodeName          string      `json:"nodeName"`
	IPPools           NodeIPPools `json:"ipPools"`
	ProxyARPInterface string      `json:"proxyARPInterface"`
}

func (NodeConfig) Validate

func (conf NodeConfig) Validate() error

type NodeIPPool

type NodeIPPool struct {
	// The node ip pool CIDR.
	CIDR string `json:"cidr"`
}

func (NodeIPPool) GetCIDR

func (pool NodeIPPool) GetCIDR() (string, error)

func (NodeIPPool) GetIPAndNet

func (pool NodeIPPool) GetIPAndNet() (*cnet.IP, *cnet.IPNet, error)

func (NodeIPPool) Validate

func (pool NodeIPPool) Validate() error

type NodeIPPools

type NodeIPPools []NodeIPPool

Jump to

Keyboard shortcuts

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