virtwrap

package
v0.3.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2018 License: Apache-2.0 Imports: 15 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DomainManager

type DomainManager interface {
	SyncVMSecret(vm *v1.VirtualMachine, usageType string, usageID string, secretValue string) error
	RemoveVMSecrets(*v1.VirtualMachine) error
	SyncVM(*v1.VirtualMachine, map[string]*kubev1.Secret) (*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) RemoveVMSecrets

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

func (*LibvirtDomainManager) SignalShutdownVM

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

func (*LibvirtDomainManager) SyncVM

func (l *LibvirtDomainManager) SyncVM(vm *v1.VirtualMachine, secrets map[string]*kubev1.Secret) (*api.DomainSpec, error)

func (*LibvirtDomainManager) SyncVMSecret

func (l *LibvirtDomainManager) SyncVMSecret(vm *v1.VirtualMachine, usageType string, usageID string, secretValue string) 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) KillVM

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

func (*MockDomainManager) ListAllDomains

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

func (*MockDomainManager) RemoveVMSecrets

func (_m *MockDomainManager) RemoveVMSecrets(_param0 *v10.VirtualMachine) error

func (*MockDomainManager) SignalShutdownVM

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

func (*MockDomainManager) SyncVM

func (_m *MockDomainManager) SyncVM(_param0 *v10.VirtualMachine, _param1 map[string]*v1.Secret) (*api.DomainSpec, error)

func (*MockDomainManager) SyncVMSecret

func (_m *MockDomainManager) SyncVMSecret(vm *v10.VirtualMachine, usageType string, usageID string, secretValue string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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