cmdserver

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: Apache-2.0 Imports: 16 Imported by: 4

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

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

type Launcher

type Launcher struct {
	// contains filtered or unexported fields
}

func (*Launcher) CancelVirtualMachineMigration added in v0.17.0

func (l *Launcher) CancelVirtualMachineMigration(_ context.Context, request *cmdv1.VMIRequest) (*cmdv1.Response, error)

func (*Launcher) DeleteVirtualMachine added in v0.17.0

func (l *Launcher) DeleteVirtualMachine(_ context.Context, request *cmdv1.VMIRequest) (*cmdv1.Response, error)

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 (l *Launcher) FinalizeVirtualMachineMigration(_ context.Context, request *cmdv1.VMIRequest) (*cmdv1.Response, error)

func (*Launcher) FreezeVirtualMachine added in v0.44.1

func (l *Launcher) FreezeVirtualMachine(_ context.Context, request *cmdv1.FreezeRequest) (*cmdv1.Response, error)

func (*Launcher) GetDomain

func (*Launcher) GetDomainStats added in v0.15.0

func (*Launcher) GetFilesystems added in v0.28.0

GetFilesystems returns a full list of active filesystems on the guest machine

func (*Launcher) GetGuestInfo added in v0.27.0

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 (*Launcher) GetSEVInfo added in v1.1.0

func (*Launcher) GetUsers added in v0.28.0

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 (l *Launcher) HotplugHostDevices(_ context.Context, request *cmdv1.VMIRequest) (*cmdv1.Response, error)

func (*Launcher) InjectLaunchSecret added in v1.1.0

func (l *Launcher) InjectLaunchSecret(_ context.Context, request *cmdv1.InjectLaunchSecretRequest) (*cmdv1.Response, error)

func (*Launcher) KillVirtualMachine added in v0.17.0

func (l *Launcher) KillVirtualMachine(_ context.Context, request *cmdv1.VMIRequest) (*cmdv1.Response, error)

func (*Launcher) MigrateVirtualMachine added in v0.17.0

func (l *Launcher) MigrateVirtualMachine(_ context.Context, request *cmdv1.MigrationRequest) (*cmdv1.Response, error)

func (*Launcher) PauseVirtualMachine added in v0.24.0

func (l *Launcher) PauseVirtualMachine(_ context.Context, request *cmdv1.VMIRequest) (*cmdv1.Response, error)

func (*Launcher) Ping

func (*Launcher) ShutdownVirtualMachine added in v0.17.0

func (l *Launcher) ShutdownVirtualMachine(_ context.Context, request *cmdv1.VMIRequest) (*cmdv1.Response, error)

func (*Launcher) SignalTargetPodCleanup added in v0.36.3

func (l *Launcher) SignalTargetPodCleanup(_ context.Context, request *cmdv1.VMIRequest) (*cmdv1.Response, error)

func (*Launcher) SoftRebootVirtualMachine added in v0.48.0

func (l *Launcher) SoftRebootVirtualMachine(_ context.Context, request *cmdv1.VMIRequest) (*cmdv1.Response, error)

func (*Launcher) SyncMigrationTarget added in v0.9.2

func (l *Launcher) SyncMigrationTarget(_ context.Context, request *cmdv1.VMIRequest) (*cmdv1.Response, error)

func (*Launcher) SyncVirtualMachine added in v0.17.0

func (l *Launcher) SyncVirtualMachine(_ context.Context, request *cmdv1.VMIRequest) (*cmdv1.Response, error)

func (*Launcher) SyncVirtualMachineCPUs added in v1.0.0

func (l *Launcher) SyncVirtualMachineCPUs(_ context.Context, request *cmdv1.VMIRequest) (*cmdv1.Response, error)

func (*Launcher) SyncVirtualMachineMemory added in v1.1.0

func (l *Launcher) SyncVirtualMachineMemory(_ context.Context, request *cmdv1.VMIRequest) (*cmdv1.Response, error)

func (*Launcher) UnfreezeVirtualMachine added in v0.44.1

func (l *Launcher) UnfreezeVirtualMachine(_ context.Context, request *cmdv1.VMIRequest) (*cmdv1.Response, error)

func (*Launcher) UnpauseVirtualMachine added in v0.24.0

func (l *Launcher) UnpauseVirtualMachine(_ context.Context, request *cmdv1.VMIRequest) (*cmdv1.Response, error)

func (*Launcher) VirtualMachineMemoryDump added in v0.54.0

func (l *Launcher) VirtualMachineMemoryDump(_ context.Context, request *cmdv1.MemoryDumpRequest) (*cmdv1.Response, error)

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

Jump to

Keyboard shortcuts

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