virtwrap

package
v0.7.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

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
	SignalShutdownVMI(*v1.VirtualMachineInstance) error
	ListAllDomains() ([]*api.Domain, error)
}

func NewLibvirtDomainManager

func NewLibvirtDomainManager(connection cli.Connection) (DomainManager, error)

type LibvirtDomainManager

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

func (*LibvirtDomainManager) KillVMI added in v0.6.1

func (*LibvirtDomainManager) ListAllDomains

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

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, allowEmulation 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) EXPECT

func (_m *MockDomainManager) EXPECT() *_MockDomainManagerRecorder

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) 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

Jump to

Keyboard shortcuts

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