server

package
v2.1.2-beta.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: Apache-2.0 Imports: 29 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

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

func Start

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

Start begins the driver startup process. It sends an initial response to unblock the client and then streams subsequent errors(if any), as the driver initializes. A final success message is streamed upon successful completion.

func Stop

func Stop(extDriver *registry.ExternalDriver) error

func StopAllExternalDrivers

func StopAllExternalDrivers()

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 (*DriverServer) ChangeDisplayPassword

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

func (*DriverServer) Configure

func (s *DriverServer) Configure(_ context.Context, req *pb.SetConfigRequest) (*emptypb.Empty, error)

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(_ 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(_ 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