proxyrpc

package
v0.0.0-...-9a14138 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: Apache-2.0 Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloseParams

type CloseParams struct {
	ID string
}

type CloseReply

type CloseReply struct {
}

type CopyParams

type CopyParams struct {
	ID      string
	HostSrc string
	Data    []byte
}

type CopyResult

type CopyResult struct {
	VMFileName string
}

type CreateInstanceParams

type CreateInstanceParams struct {
	Workdir     string
	Index       int
	WorkdirData map[string][]byte
}

type CreateInstanceResult

type CreateInstanceResult struct {
	ID string // allocated instance id
}

type CreatePoolParams

type CreatePoolParams struct {
	Debug     bool
	Param     string
	Image     string
	ImageData []byte
}

type CreatePoolResult

type CreatePoolResult struct {
	Count int // signal the created pool size
}

type DiagnoseParams

type DiagnoseParams struct {
	ID          string
	ReasonTitle string
}

type DiagnoseReply

type DiagnoseReply struct {
	Diagnosis string
}

type ForwardParams

type ForwardParams struct {
	ID   string
	Port int
}

type ForwardResult

type ForwardResult struct {
	ManagerAddress string
}

type PoolLogsParam

type PoolLogsParam struct {
}

type PoolLogsReply

type PoolLogsReply struct {
	Log string
	// Verbosity follows pkg/log rules.
	// Messages with Verbosity 0 are printed by default.
	// The higher is this value - the lower is importance of the message.
	Verbosity int
}

type ProxyAppInterface

type ProxyAppInterface interface {
	CreatePool(in CreatePoolParams, out *CreatePoolResult) error
	CreateInstance(in CreateInstanceParams, out *CreateInstanceResult) error
	Diagnose(in DiagnoseParams, out *DiagnoseReply) error
	Copy(in CopyParams, out *CopyResult) error
	Forward(in ForwardParams, out *ForwardResult) error
	RunStart(in RunStartParams, out *RunStartReply) error
	RunStop(in RunStopParams, out *RunStopReply) error
	RunReadProgress(in RunReadProgressParams, out *RunReadProgressReply) error
	Close(in CloseParams, out *CloseReply) error
	PoolLogs(in PoolLogsParam, out *PoolLogsReply) error
}

ProxyAppInterface is the interface you need to implement.

type RunReadProgressParams

type RunReadProgressParams struct {
	ID    string
	RunID string
}

type RunReadProgressReply

type RunReadProgressReply struct {
	StdoutChunk     string
	StderrChunk     string
	ConsoleOutChunk string
	Error           string
	Finished        bool
}

type RunStartParams

type RunStartParams struct {
	ID      string
	Command string
}

type RunStartReply

type RunStartReply struct {
	RunID string
}

type RunStopParams

type RunStopParams struct {
	ID    string
	RunID string
}

type RunStopReply

type RunStopReply struct {
}

Jump to

Keyboard shortcuts

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