server

package
v2.2.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Disconnect

func Disconnect()

Disconnect closes gRPC client connections for all external drivers in the registry without stopping the server processes.

func Serve

func Serve(ctx context.Context, driver driver.Driver)

func Start

func Start(ctx context.Context, extDriver *registry.ExternalDriver, instName string) error

Start connects to an existing external driver server if one is already running (socket exists and is connectable). Otherwise, it launches a new server process. Only one server process per instance should exist at any time.

func Stop

func Stop(instDir string, force bool)

Stop finds and stops any external driver server processes in the given instance directory using PID files. If force is true, SIGKILL is sent; otherwise SIGTERM is sent and we wait for the process to exit. Also cleans up PID files and socket files.

Types

type DriverServer

type DriverServer struct {
	pb.UnimplementedDriverServer
	// contains filtered or unexported fields
}

func (*DriverServer) AdditionalSetupForSSH

func (s *DriverServer) AdditionalSetupForSSH(ctx context.Context, _ *emptypb.Empty) (*emptypb.Empty, error)

func (*DriverServer) ApplySnapshot

func (s *DriverServer) ApplySnapshot(ctx context.Context, req *pb.ApplySnapshotRequest) (*emptypb.Empty, error)

func (*DriverServer) BootScripts

func (s *DriverServer) BootScripts(ctx context.Context, _ *emptypb.Empty) (*pb.BootScriptsResponse, error)

func (*DriverServer) ChangeDisplayPassword

func (s *DriverServer) ChangeDisplayPassword(ctx context.Context, req *pb.ChangeDisplayPasswordRequest) (*emptypb.Empty, error)

func (*DriverServer) Configure

func (*DriverServer) Create

func (s *DriverServer) Create(ctx context.Context, empty *emptypb.Empty) (*emptypb.Empty, error)

func (*DriverServer) CreateDisk

func (s *DriverServer) CreateDisk(ctx context.Context, empty *emptypb.Empty) (*emptypb.Empty, error)

func (*DriverServer) CreateSnapshot

func (s *DriverServer) CreateSnapshot(ctx context.Context, req *pb.CreateSnapshotRequest) (*emptypb.Empty, error)

func (*DriverServer) Delete

func (s *DriverServer) Delete(ctx context.Context, empty *emptypb.Empty) (*emptypb.Empty, error)

func (*DriverServer) DeleteSnapshot

func (s *DriverServer) DeleteSnapshot(ctx context.Context, req *pb.DeleteSnapshotRequest) (*emptypb.Empty, error)

func (*DriverServer) ForwardGuestAgent

func (s *DriverServer) ForwardGuestAgent(ctx context.Context, _ *emptypb.Empty) (*pb.ForwardGuestAgentResponse, error)

func (*DriverServer) GetDisplayConnection

func (s *DriverServer) GetDisplayConnection(ctx context.Context, _ *emptypb.Empty) (*pb.GetDisplayConnectionResponse, error)

func (*DriverServer) GuestAgentConn

func (s *DriverServer) GuestAgentConn(ctx context.Context, _ *emptypb.Empty) (*emptypb.Empty, error)

func (*DriverServer) Info

func (*DriverServer) ListSnapshots

func (s *DriverServer) ListSnapshots(ctx context.Context, _ *emptypb.Empty) (*pb.ListSnapshotsResponse, error)

func (*DriverServer) RunGUI

func (s *DriverServer) RunGUI(ctx context.Context, empty *emptypb.Empty) (*emptypb.Empty, error)

func (*DriverServer) SSHAddress

func (s *DriverServer) SSHAddress(ctx context.Context, _ *emptypb.Empty) (*pb.SSHAddressResponse, error)

func (*DriverServer) Start

func (s *DriverServer) Start(_ *emptypb.Empty, stream pb.Driver_StartServer) error

func (*DriverServer) Stop

func (s *DriverServer) Stop(ctx context.Context, empty *emptypb.Empty) (*emptypb.Empty, error)

func (*DriverServer) Validate

func (s *DriverServer) Validate(ctx context.Context, empty *emptypb.Empty) (*emptypb.Empty, error)

Jump to

Keyboard shortcuts

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