infraconfigurators

package
v0.59.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LibvirtDirectMigrationPort = 49152
	LibvirtBlockMigrationPort  = 49153
)

Variables

This section is empty.

Functions

func GetLoopbackAdrress

func GetLoopbackAdrress(proto iptables.Protocol) string

Types

type BridgePodNetworkConfigurator

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

func NewBridgePodNetworkConfigurator

func NewBridgePodNetworkConfigurator(vmi *v1.VirtualMachineInstance, vmiSpecIface *v1.Interface, bridgeIfaceName string, launcherPID int, handler netdriver.NetworkHandler) *BridgePodNetworkConfigurator

func (*BridgePodNetworkConfigurator) DiscoverPodNetworkInterface

func (b *BridgePodNetworkConfigurator) DiscoverPodNetworkInterface(podIfaceName string) error

func (*BridgePodNetworkConfigurator) GenerateNonRecoverableDHCPConfig added in v0.44.1

func (b *BridgePodNetworkConfigurator) GenerateNonRecoverableDHCPConfig() *cache.DHCPConfig

func (*BridgePodNetworkConfigurator) GenerateNonRecoverableDomainIfaceSpec added in v0.44.1

func (b *BridgePodNetworkConfigurator) GenerateNonRecoverableDomainIfaceSpec() *api.Interface

func (*BridgePodNetworkConfigurator) PreparePodNetworkInterface

func (b *BridgePodNetworkConfigurator) PreparePodNetworkInterface() error

type MasqueradePodNetworkConfigurator

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

func NewMasqueradePodNetworkConfigurator

func NewMasqueradePodNetworkConfigurator(vmi *v1.VirtualMachineInstance, vmiSpecIface *v1.Interface, bridgeIfaceName string, vmiSpecNetwork *v1.Network, launcherPID int, handler netdriver.NetworkHandler) *MasqueradePodNetworkConfigurator

func (*MasqueradePodNetworkConfigurator) DiscoverPodNetworkInterface

func (b *MasqueradePodNetworkConfigurator) DiscoverPodNetworkInterface(podIfaceName string) error

func (*MasqueradePodNetworkConfigurator) GenerateNonRecoverableDHCPConfig added in v0.44.1

func (b *MasqueradePodNetworkConfigurator) GenerateNonRecoverableDHCPConfig() *cache.DHCPConfig

func (*MasqueradePodNetworkConfigurator) GenerateNonRecoverableDomainIfaceSpec added in v0.44.1

func (b *MasqueradePodNetworkConfigurator) GenerateNonRecoverableDomainIfaceSpec() *api.Interface

func (*MasqueradePodNetworkConfigurator) PreparePodNetworkInterface

func (b *MasqueradePodNetworkConfigurator) PreparePodNetworkInterface() error

type MockPodNetworkInfraConfigurator added in v0.44.1

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

Mock of PodNetworkInfraConfigurator interface

func NewMockPodNetworkInfraConfigurator added in v0.44.1

func NewMockPodNetworkInfraConfigurator(ctrl *gomock.Controller) *MockPodNetworkInfraConfigurator

func (*MockPodNetworkInfraConfigurator) DiscoverPodNetworkInterface added in v0.44.1

func (_m *MockPodNetworkInfraConfigurator) DiscoverPodNetworkInterface(podIfaceName string) error

func (*MockPodNetworkInfraConfigurator) EXPECT added in v0.44.1

func (_m *MockPodNetworkInfraConfigurator) EXPECT() *_MockPodNetworkInfraConfiguratorRecorder

func (*MockPodNetworkInfraConfigurator) GenerateNonRecoverableDHCPConfig added in v0.44.1

func (_m *MockPodNetworkInfraConfigurator) GenerateNonRecoverableDHCPConfig() *cache.DHCPConfig

func (*MockPodNetworkInfraConfigurator) GenerateNonRecoverableDomainIfaceSpec added in v0.44.1

func (_m *MockPodNetworkInfraConfigurator) GenerateNonRecoverableDomainIfaceSpec() *api.Interface

func (*MockPodNetworkInfraConfigurator) PreparePodNetworkInterface added in v0.44.1

func (_m *MockPodNetworkInfraConfigurator) PreparePodNetworkInterface() error

type PasstPodNetworkConfigurator added in v0.56.0

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

func NewPasstPodNetworkConfigurator added in v0.56.0

func NewPasstPodNetworkConfigurator(handler netdriver.NetworkHandler) *PasstPodNetworkConfigurator

func (*PasstPodNetworkConfigurator) DiscoverPodNetworkInterface added in v0.56.0

func (b *PasstPodNetworkConfigurator) DiscoverPodNetworkInterface(_ string) error

func (*PasstPodNetworkConfigurator) GenerateNonRecoverableDHCPConfig added in v0.56.0

func (b *PasstPodNetworkConfigurator) GenerateNonRecoverableDHCPConfig() *cache.DHCPConfig

func (*PasstPodNetworkConfigurator) GenerateNonRecoverableDomainIfaceSpec added in v0.56.0

func (b *PasstPodNetworkConfigurator) GenerateNonRecoverableDomainIfaceSpec() *api.Interface

func (*PasstPodNetworkConfigurator) PreparePodNetworkInterface added in v0.56.0

func (b *PasstPodNetworkConfigurator) PreparePodNetworkInterface() error

type PodNetworkInfraConfigurator

type PodNetworkInfraConfigurator interface {
	DiscoverPodNetworkInterface(podIfaceName string) error
	PreparePodNetworkInterface() error
	GenerateNonRecoverableDomainIfaceSpec() *api.Interface
	// The method should return dhcp configuration that cannot be calculated in virt-launcher's phase2
	GenerateNonRecoverableDHCPConfig() *cache.DHCPConfig
}

Jump to

Keyboard shortcuts

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