external

package
v2.0.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Driver_Validate_FullMethodName              = "/Driver/Validate"
	Driver_Create_FullMethodName                = "/Driver/Create"
	Driver_CreateDisk_FullMethodName            = "/Driver/CreateDisk"
	Driver_Start_FullMethodName                 = "/Driver/Start"
	Driver_Stop_FullMethodName                  = "/Driver/Stop"
	Driver_Delete_FullMethodName                = "/Driver/Delete"
	Driver_BootScripts_FullMethodName           = "/Driver/BootScripts"
	Driver_RunGUI_FullMethodName                = "/Driver/RunGUI"
	Driver_ChangeDisplayPassword_FullMethodName = "/Driver/ChangeDisplayPassword"
	Driver_GetDisplayConnection_FullMethodName  = "/Driver/GetDisplayConnection"
	Driver_CreateSnapshot_FullMethodName        = "/Driver/CreateSnapshot"
	Driver_ApplySnapshot_FullMethodName         = "/Driver/ApplySnapshot"
	Driver_DeleteSnapshot_FullMethodName        = "/Driver/DeleteSnapshot"
	Driver_ListSnapshots_FullMethodName         = "/Driver/ListSnapshots"
	Driver_ForwardGuestAgent_FullMethodName     = "/Driver/ForwardGuestAgent"
	Driver_GuestAgentConn_FullMethodName        = "/Driver/GuestAgentConn"
	Driver_Configure_FullMethodName             = "/Driver/Configure"
	Driver_Info_FullMethodName                  = "/Driver/Info"
	Driver_SSHAddress_FullMethodName            = "/Driver/SSHAddress"
)

Variables

View Source
var Driver_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "Driver",
	HandlerType: (*DriverServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Validate",
			Handler:    _Driver_Validate_Handler,
		},
		{
			MethodName: "Create",
			Handler:    _Driver_Create_Handler,
		},
		{
			MethodName: "CreateDisk",
			Handler:    _Driver_CreateDisk_Handler,
		},
		{
			MethodName: "Stop",
			Handler:    _Driver_Stop_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _Driver_Delete_Handler,
		},
		{
			MethodName: "BootScripts",
			Handler:    _Driver_BootScripts_Handler,
		},
		{
			MethodName: "RunGUI",
			Handler:    _Driver_RunGUI_Handler,
		},
		{
			MethodName: "ChangeDisplayPassword",
			Handler:    _Driver_ChangeDisplayPassword_Handler,
		},
		{
			MethodName: "GetDisplayConnection",
			Handler:    _Driver_GetDisplayConnection_Handler,
		},
		{
			MethodName: "CreateSnapshot",
			Handler:    _Driver_CreateSnapshot_Handler,
		},
		{
			MethodName: "ApplySnapshot",
			Handler:    _Driver_ApplySnapshot_Handler,
		},
		{
			MethodName: "DeleteSnapshot",
			Handler:    _Driver_DeleteSnapshot_Handler,
		},
		{
			MethodName: "ListSnapshots",
			Handler:    _Driver_ListSnapshots_Handler,
		},
		{
			MethodName: "ForwardGuestAgent",
			Handler:    _Driver_ForwardGuestAgent_Handler,
		},
		{
			MethodName: "GuestAgentConn",
			Handler:    _Driver_GuestAgentConn_Handler,
		},
		{
			MethodName: "Configure",
			Handler:    _Driver_Configure_Handler,
		},
		{
			MethodName: "Info",
			Handler:    _Driver_Info_Handler,
		},
		{
			MethodName: "SSHAddress",
			Handler:    _Driver_SSHAddress_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Start",
			Handler:       _Driver_Start_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "driver.proto",
}

Driver_ServiceDesc is the grpc.ServiceDesc for Driver service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_driver_proto protoreflect.FileDescriptor

Functions

func RegisterDriverServer

func RegisterDriverServer(s grpc.ServiceRegistrar, srv DriverServer)

Types

type ApplySnapshotRequest

type ApplySnapshotRequest struct {
	Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
	// contains filtered or unexported fields
}

func (*ApplySnapshotRequest) Descriptor deprecated

func (*ApplySnapshotRequest) Descriptor() ([]byte, []int)

Deprecated: Use ApplySnapshotRequest.ProtoReflect.Descriptor instead.

func (*ApplySnapshotRequest) GetTag

func (x *ApplySnapshotRequest) GetTag() string

func (*ApplySnapshotRequest) ProtoMessage

func (*ApplySnapshotRequest) ProtoMessage()

func (*ApplySnapshotRequest) ProtoReflect

func (x *ApplySnapshotRequest) ProtoReflect() protoreflect.Message

func (*ApplySnapshotRequest) Reset

func (x *ApplySnapshotRequest) Reset()

func (*ApplySnapshotRequest) String

func (x *ApplySnapshotRequest) String() string

type BootScriptsResponse

type BootScriptsResponse struct {
	Scripts map[string][]byte `` /* 141-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*BootScriptsResponse) Descriptor deprecated

func (*BootScriptsResponse) Descriptor() ([]byte, []int)

Deprecated: Use BootScriptsResponse.ProtoReflect.Descriptor instead.

func (*BootScriptsResponse) GetScripts

func (x *BootScriptsResponse) GetScripts() map[string][]byte

func (*BootScriptsResponse) ProtoMessage

func (*BootScriptsResponse) ProtoMessage()

func (*BootScriptsResponse) ProtoReflect

func (x *BootScriptsResponse) ProtoReflect() protoreflect.Message

func (*BootScriptsResponse) Reset

func (x *BootScriptsResponse) Reset()

func (*BootScriptsResponse) String

func (x *BootScriptsResponse) String() string

type ChangeDisplayPasswordRequest

type ChangeDisplayPasswordRequest struct {
	Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*ChangeDisplayPasswordRequest) Descriptor deprecated

func (*ChangeDisplayPasswordRequest) Descriptor() ([]byte, []int)

Deprecated: Use ChangeDisplayPasswordRequest.ProtoReflect.Descriptor instead.

func (*ChangeDisplayPasswordRequest) GetPassword

func (x *ChangeDisplayPasswordRequest) GetPassword() string

func (*ChangeDisplayPasswordRequest) ProtoMessage

func (*ChangeDisplayPasswordRequest) ProtoMessage()

func (*ChangeDisplayPasswordRequest) ProtoReflect

func (*ChangeDisplayPasswordRequest) Reset

func (x *ChangeDisplayPasswordRequest) Reset()

func (*ChangeDisplayPasswordRequest) String

type CreateSnapshotRequest

type CreateSnapshotRequest struct {
	Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateSnapshotRequest) Descriptor deprecated

func (*CreateSnapshotRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateSnapshotRequest.ProtoReflect.Descriptor instead.

func (*CreateSnapshotRequest) GetTag

func (x *CreateSnapshotRequest) GetTag() string

func (*CreateSnapshotRequest) ProtoMessage

func (*CreateSnapshotRequest) ProtoMessage()

func (*CreateSnapshotRequest) ProtoReflect

func (x *CreateSnapshotRequest) ProtoReflect() protoreflect.Message

func (*CreateSnapshotRequest) Reset

func (x *CreateSnapshotRequest) Reset()

func (*CreateSnapshotRequest) String

func (x *CreateSnapshotRequest) String() string

type DeleteSnapshotRequest

type DeleteSnapshotRequest struct {
	Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteSnapshotRequest) Descriptor deprecated

func (*DeleteSnapshotRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteSnapshotRequest.ProtoReflect.Descriptor instead.

func (*DeleteSnapshotRequest) GetTag

func (x *DeleteSnapshotRequest) GetTag() string

func (*DeleteSnapshotRequest) ProtoMessage

func (*DeleteSnapshotRequest) ProtoMessage()

func (*DeleteSnapshotRequest) ProtoReflect

func (x *DeleteSnapshotRequest) ProtoReflect() protoreflect.Message

func (*DeleteSnapshotRequest) Reset

func (x *DeleteSnapshotRequest) Reset()

func (*DeleteSnapshotRequest) String

func (x *DeleteSnapshotRequest) String() string

type DriverClient

type DriverClient interface {
	Validate(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
	Create(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
	CreateDisk(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
	Start(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (grpc.ServerStreamingClient[StartResponse], error)
	Stop(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
	Delete(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
	BootScripts(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*BootScriptsResponse, error)
	RunGUI(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
	ChangeDisplayPassword(ctx context.Context, in *ChangeDisplayPasswordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	GetDisplayConnection(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetDisplayConnectionResponse, error)
	CreateSnapshot(ctx context.Context, in *CreateSnapshotRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	ApplySnapshot(ctx context.Context, in *ApplySnapshotRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	DeleteSnapshot(ctx context.Context, in *DeleteSnapshotRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	ListSnapshots(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListSnapshotsResponse, error)
	ForwardGuestAgent(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ForwardGuestAgentResponse, error)
	GuestAgentConn(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
	Configure(ctx context.Context, in *SetConfigRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	Info(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*InfoResponse, error)
	SSHAddress(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*SSHAddressResponse, error)
}

DriverClient is the client API for Driver service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewDriverClient

func NewDriverClient(cc grpc.ClientConnInterface) DriverClient

type DriverServer

DriverServer is the server API for Driver service. All implementations must embed UnimplementedDriverServer for forward compatibility.

type Driver_StartClient

type Driver_StartClient = grpc.ServerStreamingClient[StartResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type Driver_StartServer

type Driver_StartServer = grpc.ServerStreamingServer[StartResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type ForwardGuestAgentResponse

type ForwardGuestAgentResponse struct {
	ShouldForward bool `protobuf:"varint,1,opt,name=should_forward,json=shouldForward,proto3" json:"should_forward,omitempty"`
	// contains filtered or unexported fields
}

func (*ForwardGuestAgentResponse) Descriptor deprecated

func (*ForwardGuestAgentResponse) Descriptor() ([]byte, []int)

Deprecated: Use ForwardGuestAgentResponse.ProtoReflect.Descriptor instead.

func (*ForwardGuestAgentResponse) GetShouldForward

func (x *ForwardGuestAgentResponse) GetShouldForward() bool

func (*ForwardGuestAgentResponse) ProtoMessage

func (*ForwardGuestAgentResponse) ProtoMessage()

func (*ForwardGuestAgentResponse) ProtoReflect

func (*ForwardGuestAgentResponse) Reset

func (x *ForwardGuestAgentResponse) Reset()

func (*ForwardGuestAgentResponse) String

func (x *ForwardGuestAgentResponse) String() string

type GetDisplayConnectionResponse

type GetDisplayConnectionResponse struct {
	Connection string `protobuf:"bytes,1,opt,name=connection,proto3" json:"connection,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDisplayConnectionResponse) Descriptor deprecated

func (*GetDisplayConnectionResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetDisplayConnectionResponse.ProtoReflect.Descriptor instead.

func (*GetDisplayConnectionResponse) GetConnection

func (x *GetDisplayConnectionResponse) GetConnection() string

func (*GetDisplayConnectionResponse) ProtoMessage

func (*GetDisplayConnectionResponse) ProtoMessage()

func (*GetDisplayConnectionResponse) ProtoReflect

func (*GetDisplayConnectionResponse) Reset

func (x *GetDisplayConnectionResponse) Reset()

func (*GetDisplayConnectionResponse) String

type InfoResponse

type InfoResponse struct {
	InfoJson []byte `protobuf:"bytes,1,opt,name=info_json,json=infoJson,proto3" json:"info_json,omitempty"`
	// contains filtered or unexported fields
}

func (*InfoResponse) Descriptor deprecated

func (*InfoResponse) Descriptor() ([]byte, []int)

Deprecated: Use InfoResponse.ProtoReflect.Descriptor instead.

func (*InfoResponse) GetInfoJson

func (x *InfoResponse) GetInfoJson() []byte

func (*InfoResponse) ProtoMessage

func (*InfoResponse) ProtoMessage()

func (*InfoResponse) ProtoReflect

func (x *InfoResponse) ProtoReflect() protoreflect.Message

func (*InfoResponse) Reset

func (x *InfoResponse) Reset()

func (*InfoResponse) String

func (x *InfoResponse) String() string

type ListSnapshotsResponse

type ListSnapshotsResponse struct {
	Snapshots string `protobuf:"bytes,1,opt,name=snapshots,proto3" json:"snapshots,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSnapshotsResponse) Descriptor deprecated

func (*ListSnapshotsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListSnapshotsResponse.ProtoReflect.Descriptor instead.

func (*ListSnapshotsResponse) GetSnapshots

func (x *ListSnapshotsResponse) GetSnapshots() string

func (*ListSnapshotsResponse) ProtoMessage

func (*ListSnapshotsResponse) ProtoMessage()

func (*ListSnapshotsResponse) ProtoReflect

func (x *ListSnapshotsResponse) ProtoReflect() protoreflect.Message

func (*ListSnapshotsResponse) Reset

func (x *ListSnapshotsResponse) Reset()

func (*ListSnapshotsResponse) String

func (x *ListSnapshotsResponse) String() string

type SSHAddressResponse

type SSHAddressResponse struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*SSHAddressResponse) Descriptor deprecated

func (*SSHAddressResponse) Descriptor() ([]byte, []int)

Deprecated: Use SSHAddressResponse.ProtoReflect.Descriptor instead.

func (*SSHAddressResponse) GetAddress

func (x *SSHAddressResponse) GetAddress() string

func (*SSHAddressResponse) ProtoMessage

func (*SSHAddressResponse) ProtoMessage()

func (*SSHAddressResponse) ProtoReflect

func (x *SSHAddressResponse) ProtoReflect() protoreflect.Message

func (*SSHAddressResponse) Reset

func (x *SSHAddressResponse) Reset()

func (*SSHAddressResponse) String

func (x *SSHAddressResponse) String() string

type SetConfigRequest

type SetConfigRequest struct {
	InstanceConfigJson []byte `protobuf:"bytes,1,opt,name=instance_config_json,json=instanceConfigJson,proto3" json:"instance_config_json,omitempty"`
	// contains filtered or unexported fields
}

func (*SetConfigRequest) Descriptor deprecated

func (*SetConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use SetConfigRequest.ProtoReflect.Descriptor instead.

func (*SetConfigRequest) GetInstanceConfigJson

func (x *SetConfigRequest) GetInstanceConfigJson() []byte

func (*SetConfigRequest) ProtoMessage

func (*SetConfigRequest) ProtoMessage()

func (*SetConfigRequest) ProtoReflect

func (x *SetConfigRequest) ProtoReflect() protoreflect.Message

func (*SetConfigRequest) Reset

func (x *SetConfigRequest) Reset()

func (*SetConfigRequest) String

func (x *SetConfigRequest) String() string

type StartResponse

type StartResponse struct {
	Success bool   `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Error   string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*StartResponse) Descriptor deprecated

func (*StartResponse) Descriptor() ([]byte, []int)

Deprecated: Use StartResponse.ProtoReflect.Descriptor instead.

func (*StartResponse) GetError

func (x *StartResponse) GetError() string

func (*StartResponse) GetSuccess

func (x *StartResponse) GetSuccess() bool

func (*StartResponse) ProtoMessage

func (*StartResponse) ProtoMessage()

func (*StartResponse) ProtoReflect

func (x *StartResponse) ProtoReflect() protoreflect.Message

func (*StartResponse) Reset

func (x *StartResponse) Reset()

func (*StartResponse) String

func (x *StartResponse) String() string

type UnimplementedDriverServer

type UnimplementedDriverServer struct{}

UnimplementedDriverServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedDriverServer) ApplySnapshot

func (UnimplementedDriverServer) BootScripts

func (UnimplementedDriverServer) ChangeDisplayPassword

func (UnimplementedDriverServer) Configure

func (UnimplementedDriverServer) Create

func (UnimplementedDriverServer) CreateDisk

func (UnimplementedDriverServer) CreateSnapshot

func (UnimplementedDriverServer) Delete

func (UnimplementedDriverServer) DeleteSnapshot

func (UnimplementedDriverServer) ForwardGuestAgent

func (UnimplementedDriverServer) GetDisplayConnection

func (UnimplementedDriverServer) GuestAgentConn

func (UnimplementedDriverServer) Info

func (UnimplementedDriverServer) ListSnapshots

func (UnimplementedDriverServer) RunGUI

func (UnimplementedDriverServer) SSHAddress

func (UnimplementedDriverServer) Start

func (UnimplementedDriverServer) Stop

func (UnimplementedDriverServer) Validate

type UnsafeDriverServer

type UnsafeDriverServer interface {
	// contains filtered or unexported methods
}

UnsafeDriverServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DriverServer will result in compilation errors.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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