Documentation ¶
Index ¶
- type NSExecutor
- type NetConf
- type NetStat
- func (c *NetStat) CachePodInterfaceVolatileData(vmi *v1.VirtualMachineInstance, ifaceName string, ...)
- func (c *NetStat) PodInterfaceVolatileDataIsCached(vmi *v1.VirtualMachineInstance, ifaceName string) bool
- func (c *NetStat) Teardown(vmi *v1.VirtualMachineInstance)
- func (c *NetStat) UpdateStatus(vmi *v1.VirtualMachineInstance, domain *api.Domain) error
- type VMNetworkConfigurator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NSExecutor ¶ added in v0.49.0
type NetConf ¶ added in v0.49.0
type NetConf struct {
// contains filtered or unexported fields
}
func NewNetConf ¶ added in v0.49.0
func NewNetConf(ifaceCacheFactory cache.InterfaceCacheFactory) *NetConf
func NewNetConfWithNSFactory ¶ added in v0.49.0
func NewNetConfWithNSFactory(ifaceCacheFactory cache.InterfaceCacheFactory, nsFactory nsFactory) *NetConf
func (*NetConf) Setup ¶ added in v0.49.0
func (c *NetConf) Setup(vmi *v1.VirtualMachineInstance, launcherPid int, preSetup func() error) error
Setup applies (privilege) network related changes for an existing virt-launcher pod. As the changes are performed in the virt-launcher network namespace, which is relative expensive, an early cache check is performed to avoid executing the same operation again (if the last one completed).
func (*NetConf) SetupCompleted ¶ added in v0.49.0
func (c *NetConf) SetupCompleted(vmi *v1.VirtualMachineInstance) bool
SetupCompleted examines if the setup on a given VMI completed. It uses the (soft) cache to determine the information.
type NetStat ¶ added in v0.49.0
type NetStat struct {
// contains filtered or unexported fields
}
func NewNetStat ¶ added in v0.49.0
func NewNetStat(ifaceCacheFactory cache.InterfaceCacheFactory) *NetStat
func (*NetStat) CachePodInterfaceVolatileData ¶ added in v0.49.0
func (c *NetStat) CachePodInterfaceVolatileData(vmi *v1.VirtualMachineInstance, ifaceName string, data *cache.PodCacheInterface)
func (*NetStat) PodInterfaceVolatileDataIsCached ¶ added in v0.49.0
func (c *NetStat) PodInterfaceVolatileDataIsCached(vmi *v1.VirtualMachineInstance, ifaceName string) bool
func (*NetStat) Teardown ¶ added in v0.49.0
func (c *NetStat) Teardown(vmi *v1.VirtualMachineInstance)
func (*NetStat) UpdateStatus ¶ added in v0.49.0
type VMNetworkConfigurator ¶
type VMNetworkConfigurator struct {
// contains filtered or unexported fields
}
func NewVMNetworkConfigurator ¶
func NewVMNetworkConfigurator(vmi *v1.VirtualMachineInstance, cacheFactory cache.InterfaceCacheFactory) *VMNetworkConfigurator
func (*VMNetworkConfigurator) SetupPodNetworkPhase1 ¶
func (n *VMNetworkConfigurator) SetupPodNetworkPhase1(pid int) error
func (*VMNetworkConfigurator) SetupPodNetworkPhase2 ¶
func (n *VMNetworkConfigurator) SetupPodNetworkPhase2(domain *api.Domain) error
Click to show internal directories.
Click to hide internal directories.