Documentation ¶
Index ¶
- func IsDisconnected(err error) bool
- func ListAllSockets(baseDir string) ([]string, error)
- func SocketFromUID(baseDir string, uid string) string
- func SocketsDirectory(baseDir string) string
- type LauncherClient
- type MigrationOptions
- type MockLauncherClient
- func (_m *MockLauncherClient) CancelVirtualMachineMigration(vmi *v1.VirtualMachineInstance) error
- func (_m *MockLauncherClient) Close()
- func (_m *MockLauncherClient) DeleteDomain(vmi *v1.VirtualMachineInstance) error
- func (_m *MockLauncherClient) EXPECT() *_MockLauncherClientRecorder
- func (_m *MockLauncherClient) GetDomain() (*api.Domain, bool, error)
- func (_m *MockLauncherClient) GetDomainStats() (*stats.DomainStats, bool, error)
- func (_m *MockLauncherClient) KillVirtualMachine(vmi *v1.VirtualMachineInstance) error
- func (_m *MockLauncherClient) MigrateVirtualMachine(vmi *v1.VirtualMachineInstance, options *MigrationOptions) error
- func (_m *MockLauncherClient) Ping() error
- func (_m *MockLauncherClient) ShutdownVirtualMachine(vmi *v1.VirtualMachineInstance) error
- func (_m *MockLauncherClient) SyncMigrationTarget(vmi *v1.VirtualMachineInstance) error
- func (_m *MockLauncherClient) SyncVirtualMachine(vmi *v1.VirtualMachineInstance) error
- type VirtLauncherClient
- func (c *VirtLauncherClient) CancelVirtualMachineMigration(vmi *v1.VirtualMachineInstance) error
- func (c *VirtLauncherClient) Close()
- func (c *VirtLauncherClient) DeleteDomain(vmi *v1.VirtualMachineInstance) error
- func (c *VirtLauncherClient) GetDomain() (*api.Domain, bool, error)
- func (c *VirtLauncherClient) GetDomainStats() (*stats.DomainStats, bool, error)
- func (c *VirtLauncherClient) KillVirtualMachine(vmi *v1.VirtualMachineInstance) error
- func (c *VirtLauncherClient) MigrateVirtualMachine(vmi *v1.VirtualMachineInstance, options *MigrationOptions) error
- func (c *VirtLauncherClient) Ping() error
- func (c *VirtLauncherClient) ShutdownVirtualMachine(vmi *v1.VirtualMachineInstance) error
- func (c *VirtLauncherClient) SyncMigrationTarget(vmi *v1.VirtualMachineInstance) error
- func (c *VirtLauncherClient) SyncVirtualMachine(vmi *v1.VirtualMachineInstance) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDisconnected ¶
func ListAllSockets ¶
func SocketFromUID ¶ added in v0.8.0
func SocketsDirectory ¶
Types ¶
type LauncherClient ¶
type LauncherClient interface { SyncVirtualMachine(vmi *v1.VirtualMachineInstance) error SyncMigrationTarget(vmi *v1.VirtualMachineInstance) error ShutdownVirtualMachine(vmi *v1.VirtualMachineInstance) error KillVirtualMachine(vmi *v1.VirtualMachineInstance) error MigrateVirtualMachine(vmi *v1.VirtualMachineInstance, options *MigrationOptions) error CancelVirtualMachineMigration(vmi *v1.VirtualMachineInstance) error DeleteDomain(vmi *v1.VirtualMachineInstance) error GetDomain() (*api.Domain, bool, error) GetDomainStats() (*stats.DomainStats, bool, error) Ping() error Close() }
func NewClient ¶ added in v0.17.0
func NewClient(socketPath string) (LauncherClient, error)
func NewClientWithInfoClient ¶ added in v0.17.0
func NewClientWithInfoClient(infoClient info.CmdInfoClient, conn *grpc.ClientConn) (LauncherClient, error)
type MigrationOptions ¶ added in v0.16.0
type MockLauncherClient ¶
type MockLauncherClient struct {
// contains filtered or unexported fields
}
Mock of LauncherClient interface
func NewMockLauncherClient ¶
func NewMockLauncherClient(ctrl *gomock.Controller) *MockLauncherClient
func (*MockLauncherClient) CancelVirtualMachineMigration ¶ added in v0.16.0
func (_m *MockLauncherClient) CancelVirtualMachineMigration(vmi *v1.VirtualMachineInstance) error
func (*MockLauncherClient) Close ¶
func (_m *MockLauncherClient) Close()
func (*MockLauncherClient) DeleteDomain ¶ added in v0.8.0
func (_m *MockLauncherClient) DeleteDomain(vmi *v1.VirtualMachineInstance) error
func (*MockLauncherClient) EXPECT ¶
func (_m *MockLauncherClient) EXPECT() *_MockLauncherClientRecorder
func (*MockLauncherClient) GetDomain ¶
func (_m *MockLauncherClient) GetDomain() (*api.Domain, bool, error)
func (*MockLauncherClient) GetDomainStats ¶ added in v0.15.0
func (_m *MockLauncherClient) GetDomainStats() (*stats.DomainStats, bool, error)
func (*MockLauncherClient) KillVirtualMachine ¶
func (_m *MockLauncherClient) KillVirtualMachine(vmi *v1.VirtualMachineInstance) error
func (*MockLauncherClient) MigrateVirtualMachine ¶ added in v0.9.2
func (_m *MockLauncherClient) MigrateVirtualMachine(vmi *v1.VirtualMachineInstance, options *MigrationOptions) error
func (*MockLauncherClient) Ping ¶
func (_m *MockLauncherClient) Ping() error
func (*MockLauncherClient) ShutdownVirtualMachine ¶
func (_m *MockLauncherClient) ShutdownVirtualMachine(vmi *v1.VirtualMachineInstance) error
func (*MockLauncherClient) SyncMigrationTarget ¶ added in v0.9.2
func (_m *MockLauncherClient) SyncMigrationTarget(vmi *v1.VirtualMachineInstance) error
func (*MockLauncherClient) SyncVirtualMachine ¶
func (_m *MockLauncherClient) SyncVirtualMachine(vmi *v1.VirtualMachineInstance) error
type VirtLauncherClient ¶
type VirtLauncherClient struct {
// contains filtered or unexported fields
}
func (*VirtLauncherClient) CancelVirtualMachineMigration ¶ added in v0.16.0
func (c *VirtLauncherClient) CancelVirtualMachineMigration(vmi *v1.VirtualMachineInstance) error
func (*VirtLauncherClient) Close ¶
func (c *VirtLauncherClient) Close()
func (*VirtLauncherClient) DeleteDomain ¶ added in v0.8.0
func (c *VirtLauncherClient) DeleteDomain(vmi *v1.VirtualMachineInstance) error
func (*VirtLauncherClient) GetDomain ¶
func (c *VirtLauncherClient) GetDomain() (*api.Domain, bool, error)
func (*VirtLauncherClient) GetDomainStats ¶ added in v0.15.0
func (c *VirtLauncherClient) GetDomainStats() (*stats.DomainStats, bool, error)
func (*VirtLauncherClient) KillVirtualMachine ¶
func (c *VirtLauncherClient) KillVirtualMachine(vmi *v1.VirtualMachineInstance) error
func (*VirtLauncherClient) MigrateVirtualMachine ¶ added in v0.9.2
func (c *VirtLauncherClient) MigrateVirtualMachine(vmi *v1.VirtualMachineInstance, options *MigrationOptions) error
func (*VirtLauncherClient) Ping ¶
func (c *VirtLauncherClient) Ping() error
func (*VirtLauncherClient) ShutdownVirtualMachine ¶
func (c *VirtLauncherClient) ShutdownVirtualMachine(vmi *v1.VirtualMachineInstance) error
func (*VirtLauncherClient) SyncMigrationTarget ¶ added in v0.9.2
func (c *VirtLauncherClient) SyncMigrationTarget(vmi *v1.VirtualMachineInstance) error
func (*VirtLauncherClient) SyncVirtualMachine ¶
func (c *VirtLauncherClient) SyncVirtualMachine(vmi *v1.VirtualMachineInstance) error
Click to show internal directories.
Click to hide internal directories.