Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Container struct {
DeviceName string
TemporaryDeviceName string
Namespace netNS
Address DualAddress
MTU int
Routes []*types.Route
}
Host struct {
DeviceName string
Namespace netNS
Address DualAddress
}
}
func (*Config) AsCNIResult ¶
type ConfigCreator ¶
type DeviceNameGenerator ¶
type DeviceNameGenerator struct{}
func (*DeviceNameGenerator) GenerateForHost ¶
func (g *DeviceNameGenerator) GenerateForHost(containerIP net.IP) (string, error)
func (*DeviceNameGenerator) GenerateForHostIFB ¶
func (g *DeviceNameGenerator) GenerateForHostIFB(containerIP net.IP) (string, error)
func (*DeviceNameGenerator) GenerateTemporaryForContainer ¶
func (g *DeviceNameGenerator) GenerateTemporaryForContainer(containerIP net.IP) (string, error)
type DualAddress ¶
type DualAddress struct {
Hardware net.HardwareAddr
IP net.IP
}
type HardwareAddressGenerator ¶
type HardwareAddressGenerator struct{}
func (*HardwareAddressGenerator) GenerateForContainer ¶
func (g *HardwareAddressGenerator) GenerateForContainer(containerIP net.IP) (net.HardwareAddr, error)
func (*HardwareAddressGenerator) GenerateForHost ¶
func (g *HardwareAddressGenerator) GenerateForHost(containerIP net.IP) (net.HardwareAddr, error)
type HostLocalIPAM ¶
type HostLocalIPAM struct {
CNIVersion string `json:"cniVersion"`
Name string `json:"name"`
IPAM IPAMConfig `json:"ipam"`
}
type IPAMConfig ¶
type IPAMConfigGenerator ¶
type IPAMConfigGenerator struct{}
func (IPAMConfigGenerator) GenerateConfig ¶
func (IPAMConfigGenerator) GenerateConfig(subnet, network, dataDirPath string) (*HostLocalIPAM, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.