virtwrap

package
v0.15.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2019 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const LibvirtLocalConnectionPort = 22222

Variables

This section is empty.

Functions

This section is empty.

Types

type DomainManager

type DomainManager interface {
	SyncVMI(*v1.VirtualMachineInstance, bool) (*api.DomainSpec, error)
	KillVMI(*v1.VirtualMachineInstance) error
	DeleteVMI(*v1.VirtualMachineInstance) error
	SignalShutdownVMI(*v1.VirtualMachineInstance) error
	ListAllDomains() ([]*api.Domain, error)
	MigrateVMI(*v1.VirtualMachineInstance) error
	PrepareMigrationTarget(*v1.VirtualMachineInstance, bool) error
	GetDomainStats() ([]*stats.DomainStats, error)
}

func NewLibvirtDomainManager

func NewLibvirtDomainManager(connection cli.Connection, virtShareDir string, notifier *eventsclient.NotifyClient, lessPVCSpaceToleration int) (DomainManager, error)

type LibvirtDomainManager

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

func (*LibvirtDomainManager) DeleteVMI added in v0.8.0

func (*LibvirtDomainManager) GetDomainStats added in v0.15.0

func (l *LibvirtDomainManager) GetDomainStats() ([]*stats.DomainStats, error)

func (*LibvirtDomainManager) KillVMI added in v0.6.1

func (*LibvirtDomainManager) ListAllDomains

func (l *LibvirtDomainManager) ListAllDomains() ([]*api.Domain, error)

func (*LibvirtDomainManager) MigrateVMI added in v0.9.2

func (*LibvirtDomainManager) PrepareMigrationTarget added in v0.9.2

func (l *LibvirtDomainManager) PrepareMigrationTarget(vmi *v1.VirtualMachineInstance, useEmulation bool) error

Prepares the target pod environment by executing the preStartHook

func (*LibvirtDomainManager) SignalShutdownVMI added in v0.6.1

func (l *LibvirtDomainManager) SignalShutdownVMI(vmi *v1.VirtualMachineInstance) error

func (*LibvirtDomainManager) SyncVMI added in v0.6.1

func (l *LibvirtDomainManager) SyncVMI(vmi *v1.VirtualMachineInstance, useEmulation bool) (*api.DomainSpec, error)

type MockDomainManager

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

Mock of DomainManager interface

func NewMockDomainManager

func NewMockDomainManager(ctrl *gomock.Controller) *MockDomainManager

func (*MockDomainManager) DeleteVMI added in v0.8.0

func (_m *MockDomainManager) DeleteVMI(_param0 *v1.VirtualMachineInstance) error

func (*MockDomainManager) EXPECT

func (_m *MockDomainManager) EXPECT() *_MockDomainManagerRecorder

func (*MockDomainManager) GetDomainStats added in v0.15.0

func (_m *MockDomainManager) GetDomainStats() ([]*stats.DomainStats, error)

func (*MockDomainManager) KillVMI added in v0.6.1

func (_m *MockDomainManager) KillVMI(_param0 *v1.VirtualMachineInstance) error

func (*MockDomainManager) ListAllDomains

func (_m *MockDomainManager) ListAllDomains() ([]*api.Domain, error)

func (*MockDomainManager) MigrateVMI added in v0.9.2

func (_m *MockDomainManager) MigrateVMI(_param0 *v1.VirtualMachineInstance) error

func (*MockDomainManager) PrepareMigrationTarget added in v0.9.2

func (_m *MockDomainManager) PrepareMigrationTarget(_param0 *v1.VirtualMachineInstance, _param1 bool) error

func (*MockDomainManager) SignalShutdownVMI added in v0.6.1

func (_m *MockDomainManager) SignalShutdownVMI(_param0 *v1.VirtualMachineInstance) error

func (*MockDomainManager) SyncVMI added in v0.6.1

func (_m *MockDomainManager) SyncVMI(_param0 *v1.VirtualMachineInstance, _param1 bool) (*api.DomainSpec, 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.

Jump to

Keyboard shortcuts

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