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 ¶
- Variables
- func RegisterAgentService(srv *ttrpc.Server, svc AgentService)
- type AgentService
- type Empty
- type ResizeTTYRequest
- func (*ResizeTTYRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ResizeTTYRequest) GetCols() uint32
- func (x *ResizeTTYRequest) GetRows() uint32
- func (*ResizeTTYRequest) ProtoMessage()
- func (x *ResizeTTYRequest) ProtoReflect() protoreflect.Message
- func (x *ResizeTTYRequest) Reset()
- func (x *ResizeTTYRequest) String() string
- type SignalRequest
- type Spec
- func (*Spec) Descriptor() ([]byte, []int)deprecated
- func (x *Spec) GetArgs() []string
- func (x *Spec) GetEnv() []string
- func (x *Spec) GetHostname() string
- func (x *Spec) GetTty() bool
- func (x *Spec) GetUser() string
- func (x *Spec) GetWorkdir() string
- func (*Spec) ProtoMessage()
- func (x *Spec) ProtoReflect() protoreflect.Message
- func (x *Spec) Reset()
- func (x *Spec) String() string
- type StartRequest
- type StartResponse
- type WaitRequest
- type WaitResponse
- func (*WaitResponse) Descriptor() ([]byte, []int)deprecated
- func (x *WaitResponse) GetError() string
- func (x *WaitResponse) GetExitCode() int32
- func (*WaitResponse) ProtoMessage()
- func (x *WaitResponse) ProtoReflect() protoreflect.Message
- func (x *WaitResponse) Reset()
- func (x *WaitResponse) String() string
Constants ¶
This section is empty.
Variables ¶
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) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
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) GetHostname ¶
func (*Spec) GetWorkdir ¶
func (*Spec) ProtoMessage ¶
func (*Spec) ProtoMessage()
func (*Spec) ProtoReflect ¶
func (x *Spec) ProtoReflect() protoreflect.Message
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