Documentation ¶
Index ¶
- Constants
- func GetLoopbackAdrress(ipVersion netdriver.IPVersion) string
- type BridgePodNetworkConfigurator
- func (b *BridgePodNetworkConfigurator) DiscoverPodNetworkInterface(podIfaceName string) error
- func (b *BridgePodNetworkConfigurator) GenerateNonRecoverableDHCPConfig() *cache.DHCPConfig
- func (b *BridgePodNetworkConfigurator) GenerateNonRecoverableDomainIfaceSpec() *api.Interface
- func (b *BridgePodNetworkConfigurator) PreparePodNetworkInterface() error
- type MasqueradePodNetworkConfigurator
- func (b *MasqueradePodNetworkConfigurator) DiscoverPodNetworkInterface(podIfaceName string) error
- func (b *MasqueradePodNetworkConfigurator) GenerateNonRecoverableDHCPConfig() *cache.DHCPConfig
- func (b *MasqueradePodNetworkConfigurator) GenerateNonRecoverableDomainIfaceSpec() *api.Interface
- func (b *MasqueradePodNetworkConfigurator) PreparePodNetworkInterface() error
- type MockPodNetworkInfraConfigurator
- func (_m *MockPodNetworkInfraConfigurator) DiscoverPodNetworkInterface(podIfaceName string) error
- func (_m *MockPodNetworkInfraConfigurator) EXPECT() *_MockPodNetworkInfraConfiguratorRecorder
- func (_m *MockPodNetworkInfraConfigurator) GenerateNonRecoverableDHCPConfig() *cache.DHCPConfig
- func (_m *MockPodNetworkInfraConfigurator) GenerateNonRecoverableDomainIfaceSpec() *api.Interface
- func (_m *MockPodNetworkInfraConfigurator) PreparePodNetworkInterface() error
- type PasstPodNetworkConfigurator
- func (b *PasstPodNetworkConfigurator) DiscoverPodNetworkInterface(_ string) error
- func (b *PasstPodNetworkConfigurator) GenerateNonRecoverableDHCPConfig() *cache.DHCPConfig
- func (b *PasstPodNetworkConfigurator) GenerateNonRecoverableDomainIfaceSpec() *api.Interface
- func (b *PasstPodNetworkConfigurator) PreparePodNetworkInterface() error
- type PodNetworkInfraConfigurator
Constants ¶
View Source
const ( LibvirtDirectMigrationPort = 49152 LibvirtBlockMigrationPort = 49153 )
Variables ¶
This section is empty.
Functions ¶
func GetLoopbackAdrress ¶
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 }
Click to show internal directories.
Click to hide internal directories.