dhcp

package
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBridgeConfigurator added in v0.44.1

func NewBridgeConfigurator(cacheFactory cache.InterfaceCacheFactory, launcherPID string, advertisingIfaceName string, handler netdriver.NetworkHandler, podInterfaceName string,
	vmiSpecIfaces []v1.Interface, vmiSpecIface *v1.Interface) *configurator

func NewMasqueradeConfigurator added in v0.44.1

func NewMasqueradeConfigurator(advertisingIfaceName string, handler netdriver.NetworkHandler, vmiSpecIface *v1.Interface, vmiSpecNetwork *v1.Network, podInterfaceName string) *configurator

Types

type BridgeConfigGenerator added in v0.44.1

type BridgeConfigGenerator struct {
	// contains filtered or unexported fields
}

func (*BridgeConfigGenerator) Generate added in v0.44.1

func (d *BridgeConfigGenerator) Generate() (*cache.DHCPConfig, error)

type ConfigGenerator added in v0.44.1

type ConfigGenerator interface {
	Generate() (*cache.DHCPConfig, error)
}

type Configurator

type Configurator interface {
	EnsureDHCPServerStarted(podInterfaceName string, dhcpConfig cache.DHCPConfig, dhcpOptions *v1.DHCPOptions) error
	Generate() (*cache.DHCPConfig, error)
}

type MasqueradeConfigGenerator added in v0.44.1

type MasqueradeConfigGenerator struct {
	// contains filtered or unexported fields
}

func (*MasqueradeConfigGenerator) Generate added in v0.44.1

func (d *MasqueradeConfigGenerator) Generate() (*cache.DHCPConfig, error)

type MockConfigGenerator added in v0.44.1

type MockConfigGenerator struct {
	// contains filtered or unexported fields
}

Mock of ConfigGenerator interface

func NewMockConfigGenerator added in v0.44.1

func NewMockConfigGenerator(ctrl *gomock.Controller) *MockConfigGenerator

func (*MockConfigGenerator) EXPECT added in v0.44.1

func (_m *MockConfigGenerator) EXPECT() *_MockConfigGeneratorRecorder

func (*MockConfigGenerator) Generate added in v0.44.1

func (_m *MockConfigGenerator) Generate() (*cache.DHCPConfig, error)

type MockConfigurator added in v0.44.1

type MockConfigurator struct {
	// contains filtered or unexported fields
}

Mock of Configurator interface

func NewMockConfigurator added in v0.44.1

func NewMockConfigurator(ctrl *gomock.Controller) *MockConfigurator

func (*MockConfigurator) EXPECT added in v0.44.1

func (_m *MockConfigurator) EXPECT() *_MockConfiguratorRecorder

func (*MockConfigurator) EnsureDHCPServerStarted added in v0.44.1

func (_m *MockConfigurator) EnsureDHCPServerStarted(podInterfaceName string, dhcpConfig cache.DHCPConfig, dhcpOptions *v1.DHCPOptions) error

func (*MockConfigurator) Generate added in v0.44.1

func (_m *MockConfigurator) Generate() (*cache.DHCPConfig, error)

Directories

Path Synopsis
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.

Jump to

Keyboard shortcuts

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