Documentation ¶
Overview ¶
* 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. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Copyright 2019 Red Hat, Inc. *
Index ¶
- func ReceivedEarlyExitSignal() bool
- func RunServer(socketPath string, domainManager virtwrap.DomainManager, ...) (chan struct{}, error)
- type InfoServer
- type Launcher
- func (l *Launcher) CancelVirtualMachineMigration(_ context.Context, request *cmdv1.VMIRequest) (*cmdv1.Response, error)
- func (l *Launcher) DeleteVirtualMachine(_ context.Context, request *cmdv1.VMIRequest) (*cmdv1.Response, error)
- func (l *Launcher) Exec(ctx context.Context, request *cmdv1.ExecRequest) (*cmdv1.ExecResponse, error)
- func (l *Launcher) FinalizeVirtualMachineMigration(_ context.Context, request *cmdv1.VMIRequest) (*cmdv1.Response, error)
- func (l *Launcher) FreezeVirtualMachine(_ context.Context, request *cmdv1.FreezeRequest) (*cmdv1.Response, error)
- func (l *Launcher) GetDomain(_ context.Context, _ *cmdv1.EmptyRequest) (*cmdv1.DomainResponse, error)
- func (l *Launcher) GetDomainStats(_ context.Context, _ *cmdv1.EmptyRequest) (*cmdv1.DomainStatsResponse, error)
- func (l *Launcher) GetFilesystems(_ context.Context, _ *cmdv1.EmptyRequest) (*cmdv1.GuestFilesystemsResponse, error)
- func (l *Launcher) GetGuestInfo(_ context.Context, _ *cmdv1.EmptyRequest) (*cmdv1.GuestInfoResponse, error)
- func (l *Launcher) GetLaunchMeasurement(_ context.Context, request *cmdv1.VMIRequest) (*cmdv1.LaunchMeasurementResponse, error)
- func (l *Launcher) GetQemuVersion(_ context.Context, _ *cmdv1.EmptyRequest) (*cmdv1.QemuVersionResponse, error)
- func (l *Launcher) GetSEVInfo(_ context.Context, _ *cmdv1.EmptyRequest) (*cmdv1.SEVInfoResponse, error)
- func (l *Launcher) GetUsers(_ context.Context, _ *cmdv1.EmptyRequest) (*cmdv1.GuestUserListResponse, error)
- func (l *Launcher) GuestPing(ctx context.Context, request *cmdv1.GuestPingRequest) (*cmdv1.GuestPingResponse, error)
- func (l *Launcher) HotplugHostDevices(_ context.Context, request *cmdv1.VMIRequest) (*cmdv1.Response, error)
- func (l *Launcher) InjectLaunchSecret(_ context.Context, request *cmdv1.InjectLaunchSecretRequest) (*cmdv1.Response, error)
- func (l *Launcher) KillVirtualMachine(_ context.Context, request *cmdv1.VMIRequest) (*cmdv1.Response, error)
- func (l *Launcher) MigrateVirtualMachine(_ context.Context, request *cmdv1.MigrationRequest) (*cmdv1.Response, error)
- func (l *Launcher) PauseVirtualMachine(_ context.Context, request *cmdv1.VMIRequest) (*cmdv1.Response, error)
- func (l *Launcher) Ping(_ context.Context, _ *cmdv1.EmptyRequest) (*cmdv1.Response, error)
- func (l *Launcher) ShutdownVirtualMachine(_ context.Context, request *cmdv1.VMIRequest) (*cmdv1.Response, error)
- func (l *Launcher) SignalTargetPodCleanup(_ context.Context, request *cmdv1.VMIRequest) (*cmdv1.Response, error)
- func (l *Launcher) SoftRebootVirtualMachine(_ context.Context, request *cmdv1.VMIRequest) (*cmdv1.Response, error)
- func (l *Launcher) SyncMigrationTarget(_ context.Context, request *cmdv1.VMIRequest) (*cmdv1.Response, error)
- func (l *Launcher) SyncVirtualMachine(_ context.Context, request *cmdv1.VMIRequest) (*cmdv1.Response, error)
- func (l *Launcher) SyncVirtualMachineCPUs(_ context.Context, request *cmdv1.VMIRequest) (*cmdv1.Response, error)
- func (l *Launcher) SyncVirtualMachineMemory(_ context.Context, request *cmdv1.VMIRequest) (*cmdv1.Response, error)
- func (l *Launcher) UnfreezeVirtualMachine(_ context.Context, request *cmdv1.VMIRequest) (*cmdv1.Response, error)
- func (l *Launcher) UnpauseVirtualMachine(_ context.Context, request *cmdv1.VMIRequest) (*cmdv1.Response, error)
- func (l *Launcher) VirtualMachineMemoryDump(_ context.Context, request *cmdv1.MemoryDumpRequest) (*cmdv1.Response, error)
- type ServerOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReceivedEarlyExitSignal ¶ added in v0.36.3
func ReceivedEarlyExitSignal() bool
func RunServer ¶
func RunServer(socketPath string, domainManager virtwrap.DomainManager, stopChan chan struct{}, options *ServerOptions) (chan struct{}, error)
Types ¶
type InfoServer ¶ added in v0.17.0
type InfoServer struct{}
func (InfoServer) Info ¶ added in v0.17.0
func (i InfoServer) Info(context.Context, *info.CmdInfoRequest) (*info.CmdInfoResponse, error)
type Launcher ¶
type Launcher struct {
// contains filtered or unexported fields
}
func (*Launcher) CancelVirtualMachineMigration ¶ added in v0.17.0
func (*Launcher) DeleteVirtualMachine ¶ added in v0.17.0
func (*Launcher) Exec ¶ added in v0.43.0
func (l *Launcher) Exec(ctx context.Context, request *cmdv1.ExecRequest) (*cmdv1.ExecResponse, error)
Exec the provided command and return it's success
func (*Launcher) FinalizeVirtualMachineMigration ¶ added in v0.40.0
func (*Launcher) FreezeVirtualMachine ¶ added in v0.44.1
func (*Launcher) GetDomain ¶
func (l *Launcher) GetDomain(_ context.Context, _ *cmdv1.EmptyRequest) (*cmdv1.DomainResponse, error)
func (*Launcher) GetDomainStats ¶ added in v0.15.0
func (l *Launcher) GetDomainStats(_ context.Context, _ *cmdv1.EmptyRequest) (*cmdv1.DomainStatsResponse, error)
func (*Launcher) GetFilesystems ¶ added in v0.28.0
func (l *Launcher) GetFilesystems(_ context.Context, _ *cmdv1.EmptyRequest) (*cmdv1.GuestFilesystemsResponse, error)
GetFilesystems returns a full list of active filesystems on the guest machine
func (*Launcher) GetGuestInfo ¶ added in v0.27.0
func (l *Launcher) GetGuestInfo(_ context.Context, _ *cmdv1.EmptyRequest) (*cmdv1.GuestInfoResponse, error)
GetGuestInfo collect guest info from the domain
func (*Launcher) GetLaunchMeasurement ¶ added in v1.1.0
func (l *Launcher) GetLaunchMeasurement(_ context.Context, request *cmdv1.VMIRequest) (*cmdv1.LaunchMeasurementResponse, error)
func (*Launcher) GetQemuVersion ¶ added in v1.0.0
func (l *Launcher) GetQemuVersion(_ context.Context, _ *cmdv1.EmptyRequest) (*cmdv1.QemuVersionResponse, error)
func (*Launcher) GetSEVInfo ¶ added in v1.1.0
func (l *Launcher) GetSEVInfo(_ context.Context, _ *cmdv1.EmptyRequest) (*cmdv1.SEVInfoResponse, error)
func (*Launcher) GetUsers ¶ added in v0.28.0
func (l *Launcher) GetUsers(_ context.Context, _ *cmdv1.EmptyRequest) (*cmdv1.GuestUserListResponse, error)
GetUsers returns the list of active users on the guest machine
func (*Launcher) GuestPing ¶ added in v0.44.1
func (l *Launcher) GuestPing(ctx context.Context, request *cmdv1.GuestPingRequest) (*cmdv1.GuestPingResponse, error)
func (*Launcher) HotplugHostDevices ¶ added in v0.50.0
func (*Launcher) InjectLaunchSecret ¶ added in v1.1.0
func (*Launcher) KillVirtualMachine ¶ added in v0.17.0
func (*Launcher) MigrateVirtualMachine ¶ added in v0.17.0
func (*Launcher) PauseVirtualMachine ¶ added in v0.24.0
func (*Launcher) ShutdownVirtualMachine ¶ added in v0.17.0
func (*Launcher) SignalTargetPodCleanup ¶ added in v0.36.3
func (*Launcher) SoftRebootVirtualMachine ¶ added in v0.48.0
func (*Launcher) SyncMigrationTarget ¶ added in v0.9.2
func (*Launcher) SyncVirtualMachine ¶ added in v0.17.0
func (*Launcher) SyncVirtualMachineCPUs ¶ added in v1.0.0
func (*Launcher) SyncVirtualMachineMemory ¶ added in v1.1.0
func (*Launcher) UnfreezeVirtualMachine ¶ added in v0.44.1
func (*Launcher) UnpauseVirtualMachine ¶ added in v0.24.0
func (*Launcher) VirtualMachineMemoryDump ¶ added in v0.54.0
type ServerOptions ¶ added in v0.6.0
type ServerOptions struct {
// contains filtered or unexported fields
}
func NewServerOptions ¶ added in v0.6.0
func NewServerOptions(allowEmulation bool) *ServerOptions