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 RunServer(socketPath string, domainManager virtwrap.DomainManager, ...) (chan struct{}, error)
- type InfoServer
- type Launcher
- func (l *Launcher) CancelVirtualMachineMigration(ctx context.Context, request *cmdv1.VMIRequest) (*cmdv1.Response, error)
- func (l *Launcher) DeleteVirtualMachine(ctx context.Context, request *cmdv1.VMIRequest) (*cmdv1.Response, error)
- func (l *Launcher) GetDomain(ctx context.Context, request *cmdv1.EmptyRequest) (*cmdv1.DomainResponse, error)
- func (l *Launcher) GetDomainStats(ctx context.Context, request *cmdv1.EmptyRequest) (*cmdv1.DomainStatsResponse, error)
- func (l *Launcher) GetFilesystems(ctx context.Context, request *cmdv1.EmptyRequest) (*cmdv1.GuestFilesystemsResponse, error)
- func (l *Launcher) GetGuestInfo(ctx context.Context, request *cmdv1.EmptyRequest) (*cmdv1.GuestInfoResponse, error)
- func (l *Launcher) GetUsers(ctx context.Context, request *cmdv1.EmptyRequest) (*cmdv1.GuestUserListResponse, error)
- func (l *Launcher) KillVirtualMachine(ctx context.Context, request *cmdv1.VMIRequest) (*cmdv1.Response, error)
- func (l *Launcher) MigrateVirtualMachine(ctx context.Context, request *cmdv1.MigrationRequest) (*cmdv1.Response, error)
- func (l *Launcher) PauseVirtualMachine(ctx context.Context, request *cmdv1.VMIRequest) (*cmdv1.Response, error)
- func (l *Launcher) Ping(ctx context.Context, request *cmdv1.EmptyRequest) (*cmdv1.Response, error)
- func (l *Launcher) SetVirtualMachineGuestTime(ctx context.Context, request *cmdv1.VMIRequest) (*cmdv1.Response, error)
- func (l *Launcher) ShutdownVirtualMachine(ctx context.Context, request *cmdv1.VMIRequest) (*cmdv1.Response, error)
- func (l *Launcher) SyncMigrationTarget(ctx context.Context, request *cmdv1.VMIRequest) (*cmdv1.Response, error)
- func (l *Launcher) SyncVirtualMachine(ctx context.Context, request *cmdv1.VMIRequest) (*cmdv1.Response, error)
- func (l *Launcher) UnpauseVirtualMachine(ctx context.Context, request *cmdv1.VMIRequest) (*cmdv1.Response, error)
- type ServerOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) GetDomain ¶
func (l *Launcher) GetDomain(ctx context.Context, request *cmdv1.EmptyRequest) (*cmdv1.DomainResponse, error)
func (*Launcher) GetDomainStats ¶ added in v0.15.0
func (l *Launcher) GetDomainStats(ctx context.Context, request *cmdv1.EmptyRequest) (*cmdv1.DomainStatsResponse, error)
func (*Launcher) GetFilesystems ¶ added in v0.28.0
func (l *Launcher) GetFilesystems(ctx context.Context, request *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(ctx context.Context, request *cmdv1.EmptyRequest) (*cmdv1.GuestInfoResponse, error)
GetGuestInfo collect guest info from the domain
func (*Launcher) GetUsers ¶ added in v0.28.0
func (l *Launcher) GetUsers(ctx context.Context, request *cmdv1.EmptyRequest) (*cmdv1.GuestUserListResponse, error)
GetUsers returns the list of active users on the guest machine
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) SetVirtualMachineGuestTime ¶ added in v0.29.0
func (*Launcher) ShutdownVirtualMachine ¶ added in v0.17.0
func (*Launcher) SyncMigrationTarget ¶ added in v0.9.2
func (*Launcher) SyncVirtualMachine ¶ added in v0.17.0
func (*Launcher) UnpauseVirtualMachine ¶ added in v0.24.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(useEmulation bool) *ServerOptions