Documentation ¶
Overview ¶
Package vs is used for the comunication via vsockets.
Index ¶
Constants ¶
View Source
const ( TypeControlConn byte = iota // connection to submit a new job TypeExecuteConn // connection to start a job and handle IO Done // indicates that the job has finished )
control bytes
View Source
const Port = 1
Port is the listening port number of vsockd process.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JobID ¶
type JobID [4]byte
JobID is used to connect a control connection to an execute connection.
type JobRequest ¶
JobRequest defines a command to run inside a runq vm.
func DecodeJobRequest ¶
func DecodeJobRequest(buf []byte) (*JobRequest, error)
DecodeJobRequest decodes a byte buffer into a job request object.
func (JobRequest) Encode ¶
func (jr JobRequest) Encode() ([]byte, error)
Encode encodes a job request into gob binary format.
Click to show internal directories.
Click to hide internal directories.