virtwrap

package
v0.4.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2018 License: Apache-2.0 Imports: 14 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 {
	SyncVM(*v1.VirtualMachine) (*api.DomainSpec, error)
	KillVM(*v1.VirtualMachine) error
	SignalShutdownVM(*v1.VirtualMachine) 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) KillVM

func (*LibvirtDomainManager) ListAllDomains

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

func (*LibvirtDomainManager) SignalShutdownVM

func (l *LibvirtDomainManager) SignalShutdownVM(vm *v1.VirtualMachine) error

func (*LibvirtDomainManager) SyncVM

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

func (_m *MockDomainManager) KillVM(_param0 *v1.VirtualMachine) error

func (*MockDomainManager) ListAllDomains

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

func (*MockDomainManager) SignalShutdownVM

func (_m *MockDomainManager) SignalShutdownVM(_param0 *v1.VirtualMachine) error

func (*MockDomainManager) SyncVM

func (_m *MockDomainManager) SyncVM(_param0 *v1.VirtualMachine) (*api.DomainSpec, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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