agentpb

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: MIT Imports: 7 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

Overview

Code generated by protoc-gen-go-ttrpc. DO NOT EDIT. source: agent.proto

Package agentpb is the protobuf/ttRPC API monolith-init serves to the VM daemon over vsock (agent.proto). agent.pb.go and agent_ttrpc.pb.go are generated by `make proto`; don't edit them.

Index

Constants

This section is empty.

Variables

View Source
var File_agent_proto protoreflect.FileDescriptor

Functions

func RegisterAgentService

func RegisterAgentService(srv *ttrpc.Server, svc AgentService)

Types

type AgentService

type AgentService interface {
	Start(context.Context, *StartRequest) (*StartResponse, error)
	Wait(context.Context, *WaitRequest) (*WaitResponse, error)
	Signal(context.Context, *SignalRequest) (*Empty, error)
	ResizeTTY(context.Context, *ResizeTTYRequest) (*Empty, error)
	Shutdown(context.Context, *Empty) (*Empty, error)
}

func NewAgentClient

func NewAgentClient(client *ttrpc.Client) AgentService

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type ResizeTTYRequest

type ResizeTTYRequest struct {
	Rows uint32 `protobuf:"varint,1,opt,name=rows,proto3" json:"rows,omitempty"`
	Cols uint32 `protobuf:"varint,2,opt,name=cols,proto3" json:"cols,omitempty"`
	// contains filtered or unexported fields
}

func (*ResizeTTYRequest) Descriptor deprecated

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

Deprecated: Use ResizeTTYRequest.ProtoReflect.Descriptor instead.

func (*ResizeTTYRequest) GetCols

func (x *ResizeTTYRequest) GetCols() uint32

func (*ResizeTTYRequest) GetRows

func (x *ResizeTTYRequest) GetRows() uint32

func (*ResizeTTYRequest) ProtoMessage

func (*ResizeTTYRequest) ProtoMessage()

func (*ResizeTTYRequest) ProtoReflect

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

func (*ResizeTTYRequest) Reset

func (x *ResizeTTYRequest) Reset()

func (*ResizeTTYRequest) String

func (x *ResizeTTYRequest) String() string

type SignalRequest

type SignalRequest struct {
	Signal uint32 `protobuf:"varint,1,opt,name=signal,proto3" json:"signal,omitempty"`
	// contains filtered or unexported fields
}

func (*SignalRequest) Descriptor deprecated

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

Deprecated: Use SignalRequest.ProtoReflect.Descriptor instead.

func (*SignalRequest) GetSignal

func (x *SignalRequest) GetSignal() uint32

func (*SignalRequest) ProtoMessage

func (*SignalRequest) ProtoMessage()

func (*SignalRequest) ProtoReflect

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

func (*SignalRequest) Reset

func (x *SignalRequest) Reset()

func (*SignalRequest) String

func (x *SignalRequest) String() string

type Spec

type Spec struct {
	Args     []string `protobuf:"bytes,1,rep,name=args,proto3" json:"args,omitempty"`       // command and arguments; args[0] is looked up in PATH
	Env      []string `protobuf:"bytes,2,rep,name=env,proto3" json:"env,omitempty"`         // KEY=VALUE: the image's env, then the user's
	Workdir  string   `protobuf:"bytes,3,opt,name=workdir,proto3" json:"workdir,omitempty"` // default "/"
	User     string   `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty"`       // "", "name", "uid", "name:group" or "uid:gid"
	Hostname string   `protobuf:"bytes,5,opt,name=hostname,proto3" json:"hostname,omitempty"`
	Tty      bool     `protobuf:"varint,6,opt,name=tty,proto3" json:"tty,omitempty"` // run on a terminal (the console) with stdin attached
	// contains filtered or unexported fields
}

Spec describes the container's process.

func (*Spec) Descriptor deprecated

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

Deprecated: Use Spec.ProtoReflect.Descriptor instead.

func (*Spec) GetArgs

func (x *Spec) GetArgs() []string

func (*Spec) GetEnv

func (x *Spec) GetEnv() []string

func (*Spec) GetHostname

func (x *Spec) GetHostname() string

func (*Spec) GetTty

func (x *Spec) GetTty() bool

func (*Spec) GetUser

func (x *Spec) GetUser() string

func (*Spec) GetWorkdir

func (x *Spec) GetWorkdir() string

func (*Spec) ProtoMessage

func (*Spec) ProtoMessage()

func (*Spec) ProtoReflect

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

func (*Spec) Reset

func (x *Spec) Reset()

func (*Spec) String

func (x *Spec) String() string

type StartRequest

type StartRequest struct {
	Spec *Spec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"`
	// contains filtered or unexported fields
}

func (*StartRequest) Descriptor deprecated

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

Deprecated: Use StartRequest.ProtoReflect.Descriptor instead.

func (*StartRequest) GetSpec

func (x *StartRequest) GetSpec() *Spec

func (*StartRequest) ProtoMessage

func (*StartRequest) ProtoMessage()

func (*StartRequest) ProtoReflect

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

func (*StartRequest) Reset

func (x *StartRequest) Reset()

func (*StartRequest) String

func (x *StartRequest) String() string

type StartResponse

type StartResponse struct {
	Pid uint32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"` // 0 if the process couldn't run
	// contains filtered or unexported fields
}

func (*StartResponse) Descriptor deprecated

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

Deprecated: Use StartResponse.ProtoReflect.Descriptor instead.

func (*StartResponse) GetPid

func (x *StartResponse) GetPid() uint32

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 WaitRequest

type WaitRequest struct {
	// contains filtered or unexported fields
}

func (*WaitRequest) Descriptor deprecated

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

Deprecated: Use WaitRequest.ProtoReflect.Descriptor instead.

func (*WaitRequest) ProtoMessage

func (*WaitRequest) ProtoMessage()

func (*WaitRequest) ProtoReflect

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

func (*WaitRequest) Reset

func (x *WaitRequest) Reset()

func (*WaitRequest) String

func (x *WaitRequest) String() string

type WaitResponse

type WaitResponse struct {
	ExitCode int32  `protobuf:"varint,1,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"`
	Error    string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // why the process couldn't run, if it couldn't
	// contains filtered or unexported fields
}

func (*WaitResponse) Descriptor deprecated

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

Deprecated: Use WaitResponse.ProtoReflect.Descriptor instead.

func (*WaitResponse) GetError

func (x *WaitResponse) GetError() string

func (*WaitResponse) GetExitCode

func (x *WaitResponse) GetExitCode() int32

func (*WaitResponse) ProtoMessage

func (*WaitResponse) ProtoMessage()

func (*WaitResponse) ProtoReflect

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

func (*WaitResponse) Reset

func (x *WaitResponse) Reset()

func (*WaitResponse) String

func (x *WaitResponse) String() string

Jump to

Keyboard shortcuts

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