5735 lines
		
	
	
		
			137 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			5735 lines
		
	
	
		
			137 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
| // Code generated by protoc-gen-gogo. DO NOT EDIT.
 | |
| // source: github.com/containerd/containerd/runtime/v2/task/shim.proto
 | |
| 
 | |
| /*
 | |
| 	Package task is a generated protocol buffer package.
 | |
| 
 | |
| 	It is generated from these files:
 | |
| 		github.com/containerd/containerd/runtime/v2/task/shim.proto
 | |
| 
 | |
| 	It has these top-level messages:
 | |
| 		CreateTaskRequest
 | |
| 		CreateTaskResponse
 | |
| 		DeleteRequest
 | |
| 		DeleteResponse
 | |
| 		ExecProcessRequest
 | |
| 		ExecProcessResponse
 | |
| 		ResizePtyRequest
 | |
| 		StateRequest
 | |
| 		StateResponse
 | |
| 		KillRequest
 | |
| 		CloseIORequest
 | |
| 		PidsRequest
 | |
| 		PidsResponse
 | |
| 		CheckpointTaskRequest
 | |
| 		UpdateTaskRequest
 | |
| 		StartRequest
 | |
| 		StartResponse
 | |
| 		WaitRequest
 | |
| 		WaitResponse
 | |
| 		StatsRequest
 | |
| 		StatsResponse
 | |
| 		ConnectRequest
 | |
| 		ConnectResponse
 | |
| 		ShutdownRequest
 | |
| 		PauseRequest
 | |
| 		ResumeRequest
 | |
| */
 | |
| package task
 | |
| 
 | |
| import proto "github.com/gogo/protobuf/proto"
 | |
| import fmt "fmt"
 | |
| import math "math"
 | |
| import google_protobuf "github.com/gogo/protobuf/types"
 | |
| import google_protobuf1 "github.com/gogo/protobuf/types"
 | |
| 
 | |
| // skipping weak import gogoproto "github.com/gogo/protobuf/gogoproto"
 | |
| import _ "github.com/gogo/protobuf/types"
 | |
| import containerd_types "github.com/containerd/containerd/api/types"
 | |
| import containerd_v1_types "github.com/containerd/containerd/api/types/task"
 | |
| 
 | |
| import time "time"
 | |
| 
 | |
| import types "github.com/gogo/protobuf/types"
 | |
| 
 | |
| import strings "strings"
 | |
| import reflect "reflect"
 | |
| 
 | |
| import context "context"
 | |
| import ttrpc "github.com/containerd/ttrpc"
 | |
| 
 | |
| import io "io"
 | |
| 
 | |
| // Reference imports to suppress errors if they are not otherwise used.
 | |
| var _ = proto.Marshal
 | |
| var _ = fmt.Errorf
 | |
| var _ = math.Inf
 | |
| var _ = time.Kitchen
 | |
| 
 | |
| // This is a compile-time assertion to ensure that this generated file
 | |
| // is compatible with the proto package it is being compiled against.
 | |
| // A compilation error at this line likely means your copy of the
 | |
| // proto package needs to be updated.
 | |
| const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
 | |
| 
 | |
| type CreateTaskRequest struct {
 | |
| 	ID               string                    `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
 | |
| 	Bundle           string                    `protobuf:"bytes,2,opt,name=bundle,proto3" json:"bundle,omitempty"`
 | |
| 	Rootfs           []*containerd_types.Mount `protobuf:"bytes,3,rep,name=rootfs" json:"rootfs,omitempty"`
 | |
| 	Terminal         bool                      `protobuf:"varint,4,opt,name=terminal,proto3" json:"terminal,omitempty"`
 | |
| 	Stdin            string                    `protobuf:"bytes,5,opt,name=stdin,proto3" json:"stdin,omitempty"`
 | |
| 	Stdout           string                    `protobuf:"bytes,6,opt,name=stdout,proto3" json:"stdout,omitempty"`
 | |
| 	Stderr           string                    `protobuf:"bytes,7,opt,name=stderr,proto3" json:"stderr,omitempty"`
 | |
| 	Checkpoint       string                    `protobuf:"bytes,8,opt,name=checkpoint,proto3" json:"checkpoint,omitempty"`
 | |
| 	ParentCheckpoint string                    `protobuf:"bytes,9,opt,name=parent_checkpoint,json=parentCheckpoint,proto3" json:"parent_checkpoint,omitempty"`
 | |
| 	Options          *google_protobuf.Any      `protobuf:"bytes,10,opt,name=options" json:"options,omitempty"`
 | |
| }
 | |
| 
 | |
| func (m *CreateTaskRequest) Reset()                    { *m = CreateTaskRequest{} }
 | |
| func (*CreateTaskRequest) ProtoMessage()               {}
 | |
| func (*CreateTaskRequest) Descriptor() ([]byte, []int) { return fileDescriptorShim, []int{0} }
 | |
| 
 | |
| type CreateTaskResponse struct {
 | |
| 	Pid uint32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"`
 | |
| }
 | |
| 
 | |
| func (m *CreateTaskResponse) Reset()                    { *m = CreateTaskResponse{} }
 | |
| func (*CreateTaskResponse) ProtoMessage()               {}
 | |
| func (*CreateTaskResponse) Descriptor() ([]byte, []int) { return fileDescriptorShim, []int{1} }
 | |
| 
 | |
| type DeleteRequest struct {
 | |
| 	ID     string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
 | |
| 	ExecID string `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"`
 | |
| }
 | |
| 
 | |
| func (m *DeleteRequest) Reset()                    { *m = DeleteRequest{} }
 | |
| func (*DeleteRequest) ProtoMessage()               {}
 | |
| func (*DeleteRequest) Descriptor() ([]byte, []int) { return fileDescriptorShim, []int{2} }
 | |
| 
 | |
| type DeleteResponse struct {
 | |
| 	Pid        uint32    `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"`
 | |
| 	ExitStatus uint32    `protobuf:"varint,2,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"`
 | |
| 	ExitedAt   time.Time `protobuf:"bytes,3,opt,name=exited_at,json=exitedAt,stdtime" json:"exited_at"`
 | |
| }
 | |
| 
 | |
| func (m *DeleteResponse) Reset()                    { *m = DeleteResponse{} }
 | |
| func (*DeleteResponse) ProtoMessage()               {}
 | |
| func (*DeleteResponse) Descriptor() ([]byte, []int) { return fileDescriptorShim, []int{3} }
 | |
| 
 | |
| type ExecProcessRequest struct {
 | |
| 	ID       string               `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
 | |
| 	ExecID   string               `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"`
 | |
| 	Terminal bool                 `protobuf:"varint,3,opt,name=terminal,proto3" json:"terminal,omitempty"`
 | |
| 	Stdin    string               `protobuf:"bytes,4,opt,name=stdin,proto3" json:"stdin,omitempty"`
 | |
| 	Stdout   string               `protobuf:"bytes,5,opt,name=stdout,proto3" json:"stdout,omitempty"`
 | |
| 	Stderr   string               `protobuf:"bytes,6,opt,name=stderr,proto3" json:"stderr,omitempty"`
 | |
| 	Spec     *google_protobuf.Any `protobuf:"bytes,7,opt,name=spec" json:"spec,omitempty"`
 | |
| }
 | |
| 
 | |
| func (m *ExecProcessRequest) Reset()                    { *m = ExecProcessRequest{} }
 | |
| func (*ExecProcessRequest) ProtoMessage()               {}
 | |
| func (*ExecProcessRequest) Descriptor() ([]byte, []int) { return fileDescriptorShim, []int{4} }
 | |
| 
 | |
| type ExecProcessResponse struct {
 | |
| }
 | |
| 
 | |
| func (m *ExecProcessResponse) Reset()                    { *m = ExecProcessResponse{} }
 | |
| func (*ExecProcessResponse) ProtoMessage()               {}
 | |
| func (*ExecProcessResponse) Descriptor() ([]byte, []int) { return fileDescriptorShim, []int{5} }
 | |
| 
 | |
| type ResizePtyRequest struct {
 | |
| 	ID     string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
 | |
| 	ExecID string `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"`
 | |
| 	Width  uint32 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"`
 | |
| 	Height uint32 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"`
 | |
| }
 | |
| 
 | |
| func (m *ResizePtyRequest) Reset()                    { *m = ResizePtyRequest{} }
 | |
| func (*ResizePtyRequest) ProtoMessage()               {}
 | |
| func (*ResizePtyRequest) Descriptor() ([]byte, []int) { return fileDescriptorShim, []int{6} }
 | |
| 
 | |
| type StateRequest struct {
 | |
| 	ID     string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
 | |
| 	ExecID string `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"`
 | |
| }
 | |
| 
 | |
| func (m *StateRequest) Reset()                    { *m = StateRequest{} }
 | |
| func (*StateRequest) ProtoMessage()               {}
 | |
| func (*StateRequest) Descriptor() ([]byte, []int) { return fileDescriptorShim, []int{7} }
 | |
| 
 | |
| type StateResponse struct {
 | |
| 	ID         string                     `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
 | |
| 	Bundle     string                     `protobuf:"bytes,2,opt,name=bundle,proto3" json:"bundle,omitempty"`
 | |
| 	Pid        uint32                     `protobuf:"varint,3,opt,name=pid,proto3" json:"pid,omitempty"`
 | |
| 	Status     containerd_v1_types.Status `protobuf:"varint,4,opt,name=status,proto3,enum=containerd.v1.types.Status" json:"status,omitempty"`
 | |
| 	Stdin      string                     `protobuf:"bytes,5,opt,name=stdin,proto3" json:"stdin,omitempty"`
 | |
| 	Stdout     string                     `protobuf:"bytes,6,opt,name=stdout,proto3" json:"stdout,omitempty"`
 | |
| 	Stderr     string                     `protobuf:"bytes,7,opt,name=stderr,proto3" json:"stderr,omitempty"`
 | |
| 	Terminal   bool                       `protobuf:"varint,8,opt,name=terminal,proto3" json:"terminal,omitempty"`
 | |
| 	ExitStatus uint32                     `protobuf:"varint,9,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"`
 | |
| 	ExitedAt   time.Time                  `protobuf:"bytes,10,opt,name=exited_at,json=exitedAt,stdtime" json:"exited_at"`
 | |
| 	ExecID     string                     `protobuf:"bytes,11,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"`
 | |
| }
 | |
| 
 | |
| func (m *StateResponse) Reset()                    { *m = StateResponse{} }
 | |
| func (*StateResponse) ProtoMessage()               {}
 | |
| func (*StateResponse) Descriptor() ([]byte, []int) { return fileDescriptorShim, []int{8} }
 | |
| 
 | |
| type KillRequest struct {
 | |
| 	ID     string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
 | |
| 	ExecID string `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"`
 | |
| 	Signal uint32 `protobuf:"varint,3,opt,name=signal,proto3" json:"signal,omitempty"`
 | |
| 	All    bool   `protobuf:"varint,4,opt,name=all,proto3" json:"all,omitempty"`
 | |
| }
 | |
| 
 | |
| func (m *KillRequest) Reset()                    { *m = KillRequest{} }
 | |
| func (*KillRequest) ProtoMessage()               {}
 | |
| func (*KillRequest) Descriptor() ([]byte, []int) { return fileDescriptorShim, []int{9} }
 | |
| 
 | |
| type CloseIORequest struct {
 | |
| 	ID     string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
 | |
| 	ExecID string `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"`
 | |
| 	Stdin  bool   `protobuf:"varint,3,opt,name=stdin,proto3" json:"stdin,omitempty"`
 | |
| }
 | |
| 
 | |
| func (m *CloseIORequest) Reset()                    { *m = CloseIORequest{} }
 | |
| func (*CloseIORequest) ProtoMessage()               {}
 | |
| func (*CloseIORequest) Descriptor() ([]byte, []int) { return fileDescriptorShim, []int{10} }
 | |
| 
 | |
| type PidsRequest struct {
 | |
| 	ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
 | |
| }
 | |
| 
 | |
| func (m *PidsRequest) Reset()                    { *m = PidsRequest{} }
 | |
| func (*PidsRequest) ProtoMessage()               {}
 | |
| func (*PidsRequest) Descriptor() ([]byte, []int) { return fileDescriptorShim, []int{11} }
 | |
| 
 | |
| type PidsResponse struct {
 | |
| 	Processes []*containerd_v1_types.ProcessInfo `protobuf:"bytes,1,rep,name=processes" json:"processes,omitempty"`
 | |
| }
 | |
| 
 | |
| func (m *PidsResponse) Reset()                    { *m = PidsResponse{} }
 | |
| func (*PidsResponse) ProtoMessage()               {}
 | |
| func (*PidsResponse) Descriptor() ([]byte, []int) { return fileDescriptorShim, []int{12} }
 | |
| 
 | |
| type CheckpointTaskRequest struct {
 | |
| 	ID      string               `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
 | |
| 	Path    string               `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
 | |
| 	Options *google_protobuf.Any `protobuf:"bytes,3,opt,name=options" json:"options,omitempty"`
 | |
| }
 | |
| 
 | |
| func (m *CheckpointTaskRequest) Reset()                    { *m = CheckpointTaskRequest{} }
 | |
| func (*CheckpointTaskRequest) ProtoMessage()               {}
 | |
| func (*CheckpointTaskRequest) Descriptor() ([]byte, []int) { return fileDescriptorShim, []int{13} }
 | |
| 
 | |
| type UpdateTaskRequest struct {
 | |
| 	ID        string               `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
 | |
| 	Resources *google_protobuf.Any `protobuf:"bytes,2,opt,name=resources" json:"resources,omitempty"`
 | |
| }
 | |
| 
 | |
| func (m *UpdateTaskRequest) Reset()                    { *m = UpdateTaskRequest{} }
 | |
| func (*UpdateTaskRequest) ProtoMessage()               {}
 | |
| func (*UpdateTaskRequest) Descriptor() ([]byte, []int) { return fileDescriptorShim, []int{14} }
 | |
| 
 | |
| type StartRequest struct {
 | |
| 	ID     string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
 | |
| 	ExecID string `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"`
 | |
| }
 | |
| 
 | |
| func (m *StartRequest) Reset()                    { *m = StartRequest{} }
 | |
| func (*StartRequest) ProtoMessage()               {}
 | |
| func (*StartRequest) Descriptor() ([]byte, []int) { return fileDescriptorShim, []int{15} }
 | |
| 
 | |
| type StartResponse struct {
 | |
| 	Pid uint32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"`
 | |
| }
 | |
| 
 | |
| func (m *StartResponse) Reset()                    { *m = StartResponse{} }
 | |
| func (*StartResponse) ProtoMessage()               {}
 | |
| func (*StartResponse) Descriptor() ([]byte, []int) { return fileDescriptorShim, []int{16} }
 | |
| 
 | |
| type WaitRequest struct {
 | |
| 	ID     string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
 | |
| 	ExecID string `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"`
 | |
| }
 | |
| 
 | |
| func (m *WaitRequest) Reset()                    { *m = WaitRequest{} }
 | |
| func (*WaitRequest) ProtoMessage()               {}
 | |
| func (*WaitRequest) Descriptor() ([]byte, []int) { return fileDescriptorShim, []int{17} }
 | |
| 
 | |
| type WaitResponse struct {
 | |
| 	ExitStatus uint32    `protobuf:"varint,1,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"`
 | |
| 	ExitedAt   time.Time `protobuf:"bytes,2,opt,name=exited_at,json=exitedAt,stdtime" json:"exited_at"`
 | |
| }
 | |
| 
 | |
| func (m *WaitResponse) Reset()                    { *m = WaitResponse{} }
 | |
| func (*WaitResponse) ProtoMessage()               {}
 | |
| func (*WaitResponse) Descriptor() ([]byte, []int) { return fileDescriptorShim, []int{18} }
 | |
| 
 | |
| type StatsRequest struct {
 | |
| 	ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
 | |
| }
 | |
| 
 | |
| func (m *StatsRequest) Reset()                    { *m = StatsRequest{} }
 | |
| func (*StatsRequest) ProtoMessage()               {}
 | |
| func (*StatsRequest) Descriptor() ([]byte, []int) { return fileDescriptorShim, []int{19} }
 | |
| 
 | |
| type StatsResponse struct {
 | |
| 	Stats *google_protobuf.Any `protobuf:"bytes,1,opt,name=stats" json:"stats,omitempty"`
 | |
| }
 | |
| 
 | |
| func (m *StatsResponse) Reset()                    { *m = StatsResponse{} }
 | |
| func (*StatsResponse) ProtoMessage()               {}
 | |
| func (*StatsResponse) Descriptor() ([]byte, []int) { return fileDescriptorShim, []int{20} }
 | |
| 
 | |
| type ConnectRequest struct {
 | |
| 	ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
 | |
| }
 | |
| 
 | |
| func (m *ConnectRequest) Reset()                    { *m = ConnectRequest{} }
 | |
| func (*ConnectRequest) ProtoMessage()               {}
 | |
| func (*ConnectRequest) Descriptor() ([]byte, []int) { return fileDescriptorShim, []int{21} }
 | |
| 
 | |
| type ConnectResponse struct {
 | |
| 	ShimPid uint32 `protobuf:"varint,1,opt,name=shim_pid,json=shimPid,proto3" json:"shim_pid,omitempty"`
 | |
| 	TaskPid uint32 `protobuf:"varint,2,opt,name=task_pid,json=taskPid,proto3" json:"task_pid,omitempty"`
 | |
| 	Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
 | |
| }
 | |
| 
 | |
| func (m *ConnectResponse) Reset()                    { *m = ConnectResponse{} }
 | |
| func (*ConnectResponse) ProtoMessage()               {}
 | |
| func (*ConnectResponse) Descriptor() ([]byte, []int) { return fileDescriptorShim, []int{22} }
 | |
| 
 | |
| type ShutdownRequest struct {
 | |
| 	ID  string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
 | |
| 	Now bool   `protobuf:"varint,2,opt,name=now,proto3" json:"now,omitempty"`
 | |
| }
 | |
| 
 | |
| func (m *ShutdownRequest) Reset()                    { *m = ShutdownRequest{} }
 | |
| func (*ShutdownRequest) ProtoMessage()               {}
 | |
| func (*ShutdownRequest) Descriptor() ([]byte, []int) { return fileDescriptorShim, []int{23} }
 | |
| 
 | |
| type PauseRequest struct {
 | |
| 	ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
 | |
| }
 | |
| 
 | |
| func (m *PauseRequest) Reset()                    { *m = PauseRequest{} }
 | |
| func (*PauseRequest) ProtoMessage()               {}
 | |
| func (*PauseRequest) Descriptor() ([]byte, []int) { return fileDescriptorShim, []int{24} }
 | |
| 
 | |
| type ResumeRequest struct {
 | |
| 	ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
 | |
| }
 | |
| 
 | |
| func (m *ResumeRequest) Reset()                    { *m = ResumeRequest{} }
 | |
| func (*ResumeRequest) ProtoMessage()               {}
 | |
| func (*ResumeRequest) Descriptor() ([]byte, []int) { return fileDescriptorShim, []int{25} }
 | |
| 
 | |
| func init() {
 | |
| 	proto.RegisterType((*CreateTaskRequest)(nil), "containerd.task.v2.CreateTaskRequest")
 | |
| 	proto.RegisterType((*CreateTaskResponse)(nil), "containerd.task.v2.CreateTaskResponse")
 | |
| 	proto.RegisterType((*DeleteRequest)(nil), "containerd.task.v2.DeleteRequest")
 | |
| 	proto.RegisterType((*DeleteResponse)(nil), "containerd.task.v2.DeleteResponse")
 | |
| 	proto.RegisterType((*ExecProcessRequest)(nil), "containerd.task.v2.ExecProcessRequest")
 | |
| 	proto.RegisterType((*ExecProcessResponse)(nil), "containerd.task.v2.ExecProcessResponse")
 | |
| 	proto.RegisterType((*ResizePtyRequest)(nil), "containerd.task.v2.ResizePtyRequest")
 | |
| 	proto.RegisterType((*StateRequest)(nil), "containerd.task.v2.StateRequest")
 | |
| 	proto.RegisterType((*StateResponse)(nil), "containerd.task.v2.StateResponse")
 | |
| 	proto.RegisterType((*KillRequest)(nil), "containerd.task.v2.KillRequest")
 | |
| 	proto.RegisterType((*CloseIORequest)(nil), "containerd.task.v2.CloseIORequest")
 | |
| 	proto.RegisterType((*PidsRequest)(nil), "containerd.task.v2.PidsRequest")
 | |
| 	proto.RegisterType((*PidsResponse)(nil), "containerd.task.v2.PidsResponse")
 | |
| 	proto.RegisterType((*CheckpointTaskRequest)(nil), "containerd.task.v2.CheckpointTaskRequest")
 | |
| 	proto.RegisterType((*UpdateTaskRequest)(nil), "containerd.task.v2.UpdateTaskRequest")
 | |
| 	proto.RegisterType((*StartRequest)(nil), "containerd.task.v2.StartRequest")
 | |
| 	proto.RegisterType((*StartResponse)(nil), "containerd.task.v2.StartResponse")
 | |
| 	proto.RegisterType((*WaitRequest)(nil), "containerd.task.v2.WaitRequest")
 | |
| 	proto.RegisterType((*WaitResponse)(nil), "containerd.task.v2.WaitResponse")
 | |
| 	proto.RegisterType((*StatsRequest)(nil), "containerd.task.v2.StatsRequest")
 | |
| 	proto.RegisterType((*StatsResponse)(nil), "containerd.task.v2.StatsResponse")
 | |
| 	proto.RegisterType((*ConnectRequest)(nil), "containerd.task.v2.ConnectRequest")
 | |
| 	proto.RegisterType((*ConnectResponse)(nil), "containerd.task.v2.ConnectResponse")
 | |
| 	proto.RegisterType((*ShutdownRequest)(nil), "containerd.task.v2.ShutdownRequest")
 | |
| 	proto.RegisterType((*PauseRequest)(nil), "containerd.task.v2.PauseRequest")
 | |
| 	proto.RegisterType((*ResumeRequest)(nil), "containerd.task.v2.ResumeRequest")
 | |
| }
 | |
| func (m *CreateTaskRequest) Marshal() (dAtA []byte, err error) {
 | |
| 	size := m.Size()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalTo(dAtA)
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *CreateTaskRequest) MarshalTo(dAtA []byte) (int, error) {
 | |
| 	var i int
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if len(m.ID) > 0 {
 | |
| 		dAtA[i] = 0xa
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.ID)))
 | |
| 		i += copy(dAtA[i:], m.ID)
 | |
| 	}
 | |
| 	if len(m.Bundle) > 0 {
 | |
| 		dAtA[i] = 0x12
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.Bundle)))
 | |
| 		i += copy(dAtA[i:], m.Bundle)
 | |
| 	}
 | |
| 	if len(m.Rootfs) > 0 {
 | |
| 		for _, msg := range m.Rootfs {
 | |
| 			dAtA[i] = 0x1a
 | |
| 			i++
 | |
| 			i = encodeVarintShim(dAtA, i, uint64(msg.Size()))
 | |
| 			n, err := msg.MarshalTo(dAtA[i:])
 | |
| 			if err != nil {
 | |
| 				return 0, err
 | |
| 			}
 | |
| 			i += n
 | |
| 		}
 | |
| 	}
 | |
| 	if m.Terminal {
 | |
| 		dAtA[i] = 0x20
 | |
| 		i++
 | |
| 		if m.Terminal {
 | |
| 			dAtA[i] = 1
 | |
| 		} else {
 | |
| 			dAtA[i] = 0
 | |
| 		}
 | |
| 		i++
 | |
| 	}
 | |
| 	if len(m.Stdin) > 0 {
 | |
| 		dAtA[i] = 0x2a
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.Stdin)))
 | |
| 		i += copy(dAtA[i:], m.Stdin)
 | |
| 	}
 | |
| 	if len(m.Stdout) > 0 {
 | |
| 		dAtA[i] = 0x32
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.Stdout)))
 | |
| 		i += copy(dAtA[i:], m.Stdout)
 | |
| 	}
 | |
| 	if len(m.Stderr) > 0 {
 | |
| 		dAtA[i] = 0x3a
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.Stderr)))
 | |
| 		i += copy(dAtA[i:], m.Stderr)
 | |
| 	}
 | |
| 	if len(m.Checkpoint) > 0 {
 | |
| 		dAtA[i] = 0x42
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.Checkpoint)))
 | |
| 		i += copy(dAtA[i:], m.Checkpoint)
 | |
| 	}
 | |
| 	if len(m.ParentCheckpoint) > 0 {
 | |
| 		dAtA[i] = 0x4a
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.ParentCheckpoint)))
 | |
| 		i += copy(dAtA[i:], m.ParentCheckpoint)
 | |
| 	}
 | |
| 	if m.Options != nil {
 | |
| 		dAtA[i] = 0x52
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(m.Options.Size()))
 | |
| 		n1, err := m.Options.MarshalTo(dAtA[i:])
 | |
| 		if err != nil {
 | |
| 			return 0, err
 | |
| 		}
 | |
| 		i += n1
 | |
| 	}
 | |
| 	return i, nil
 | |
| }
 | |
| 
 | |
| func (m *CreateTaskResponse) Marshal() (dAtA []byte, err error) {
 | |
| 	size := m.Size()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalTo(dAtA)
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *CreateTaskResponse) MarshalTo(dAtA []byte) (int, error) {
 | |
| 	var i int
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.Pid != 0 {
 | |
| 		dAtA[i] = 0x8
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(m.Pid))
 | |
| 	}
 | |
| 	return i, nil
 | |
| }
 | |
| 
 | |
| func (m *DeleteRequest) Marshal() (dAtA []byte, err error) {
 | |
| 	size := m.Size()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalTo(dAtA)
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *DeleteRequest) MarshalTo(dAtA []byte) (int, error) {
 | |
| 	var i int
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if len(m.ID) > 0 {
 | |
| 		dAtA[i] = 0xa
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.ID)))
 | |
| 		i += copy(dAtA[i:], m.ID)
 | |
| 	}
 | |
| 	if len(m.ExecID) > 0 {
 | |
| 		dAtA[i] = 0x12
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.ExecID)))
 | |
| 		i += copy(dAtA[i:], m.ExecID)
 | |
| 	}
 | |
| 	return i, nil
 | |
| }
 | |
| 
 | |
| func (m *DeleteResponse) Marshal() (dAtA []byte, err error) {
 | |
| 	size := m.Size()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalTo(dAtA)
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *DeleteResponse) MarshalTo(dAtA []byte) (int, error) {
 | |
| 	var i int
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.Pid != 0 {
 | |
| 		dAtA[i] = 0x8
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(m.Pid))
 | |
| 	}
 | |
| 	if m.ExitStatus != 0 {
 | |
| 		dAtA[i] = 0x10
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(m.ExitStatus))
 | |
| 	}
 | |
| 	dAtA[i] = 0x1a
 | |
| 	i++
 | |
| 	i = encodeVarintShim(dAtA, i, uint64(types.SizeOfStdTime(m.ExitedAt)))
 | |
| 	n2, err := types.StdTimeMarshalTo(m.ExitedAt, dAtA[i:])
 | |
| 	if err != nil {
 | |
| 		return 0, err
 | |
| 	}
 | |
| 	i += n2
 | |
| 	return i, nil
 | |
| }
 | |
| 
 | |
| func (m *ExecProcessRequest) Marshal() (dAtA []byte, err error) {
 | |
| 	size := m.Size()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalTo(dAtA)
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *ExecProcessRequest) MarshalTo(dAtA []byte) (int, error) {
 | |
| 	var i int
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if len(m.ID) > 0 {
 | |
| 		dAtA[i] = 0xa
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.ID)))
 | |
| 		i += copy(dAtA[i:], m.ID)
 | |
| 	}
 | |
| 	if len(m.ExecID) > 0 {
 | |
| 		dAtA[i] = 0x12
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.ExecID)))
 | |
| 		i += copy(dAtA[i:], m.ExecID)
 | |
| 	}
 | |
| 	if m.Terminal {
 | |
| 		dAtA[i] = 0x18
 | |
| 		i++
 | |
| 		if m.Terminal {
 | |
| 			dAtA[i] = 1
 | |
| 		} else {
 | |
| 			dAtA[i] = 0
 | |
| 		}
 | |
| 		i++
 | |
| 	}
 | |
| 	if len(m.Stdin) > 0 {
 | |
| 		dAtA[i] = 0x22
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.Stdin)))
 | |
| 		i += copy(dAtA[i:], m.Stdin)
 | |
| 	}
 | |
| 	if len(m.Stdout) > 0 {
 | |
| 		dAtA[i] = 0x2a
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.Stdout)))
 | |
| 		i += copy(dAtA[i:], m.Stdout)
 | |
| 	}
 | |
| 	if len(m.Stderr) > 0 {
 | |
| 		dAtA[i] = 0x32
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.Stderr)))
 | |
| 		i += copy(dAtA[i:], m.Stderr)
 | |
| 	}
 | |
| 	if m.Spec != nil {
 | |
| 		dAtA[i] = 0x3a
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(m.Spec.Size()))
 | |
| 		n3, err := m.Spec.MarshalTo(dAtA[i:])
 | |
| 		if err != nil {
 | |
| 			return 0, err
 | |
| 		}
 | |
| 		i += n3
 | |
| 	}
 | |
| 	return i, nil
 | |
| }
 | |
| 
 | |
| func (m *ExecProcessResponse) Marshal() (dAtA []byte, err error) {
 | |
| 	size := m.Size()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalTo(dAtA)
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *ExecProcessResponse) MarshalTo(dAtA []byte) (int, error) {
 | |
| 	var i int
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	return i, nil
 | |
| }
 | |
| 
 | |
| func (m *ResizePtyRequest) Marshal() (dAtA []byte, err error) {
 | |
| 	size := m.Size()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalTo(dAtA)
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *ResizePtyRequest) MarshalTo(dAtA []byte) (int, error) {
 | |
| 	var i int
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if len(m.ID) > 0 {
 | |
| 		dAtA[i] = 0xa
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.ID)))
 | |
| 		i += copy(dAtA[i:], m.ID)
 | |
| 	}
 | |
| 	if len(m.ExecID) > 0 {
 | |
| 		dAtA[i] = 0x12
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.ExecID)))
 | |
| 		i += copy(dAtA[i:], m.ExecID)
 | |
| 	}
 | |
| 	if m.Width != 0 {
 | |
| 		dAtA[i] = 0x18
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(m.Width))
 | |
| 	}
 | |
| 	if m.Height != 0 {
 | |
| 		dAtA[i] = 0x20
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(m.Height))
 | |
| 	}
 | |
| 	return i, nil
 | |
| }
 | |
| 
 | |
| func (m *StateRequest) Marshal() (dAtA []byte, err error) {
 | |
| 	size := m.Size()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalTo(dAtA)
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *StateRequest) MarshalTo(dAtA []byte) (int, error) {
 | |
| 	var i int
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if len(m.ID) > 0 {
 | |
| 		dAtA[i] = 0xa
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.ID)))
 | |
| 		i += copy(dAtA[i:], m.ID)
 | |
| 	}
 | |
| 	if len(m.ExecID) > 0 {
 | |
| 		dAtA[i] = 0x12
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.ExecID)))
 | |
| 		i += copy(dAtA[i:], m.ExecID)
 | |
| 	}
 | |
| 	return i, nil
 | |
| }
 | |
| 
 | |
| func (m *StateResponse) Marshal() (dAtA []byte, err error) {
 | |
| 	size := m.Size()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalTo(dAtA)
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *StateResponse) MarshalTo(dAtA []byte) (int, error) {
 | |
| 	var i int
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if len(m.ID) > 0 {
 | |
| 		dAtA[i] = 0xa
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.ID)))
 | |
| 		i += copy(dAtA[i:], m.ID)
 | |
| 	}
 | |
| 	if len(m.Bundle) > 0 {
 | |
| 		dAtA[i] = 0x12
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.Bundle)))
 | |
| 		i += copy(dAtA[i:], m.Bundle)
 | |
| 	}
 | |
| 	if m.Pid != 0 {
 | |
| 		dAtA[i] = 0x18
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(m.Pid))
 | |
| 	}
 | |
| 	if m.Status != 0 {
 | |
| 		dAtA[i] = 0x20
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(m.Status))
 | |
| 	}
 | |
| 	if len(m.Stdin) > 0 {
 | |
| 		dAtA[i] = 0x2a
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.Stdin)))
 | |
| 		i += copy(dAtA[i:], m.Stdin)
 | |
| 	}
 | |
| 	if len(m.Stdout) > 0 {
 | |
| 		dAtA[i] = 0x32
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.Stdout)))
 | |
| 		i += copy(dAtA[i:], m.Stdout)
 | |
| 	}
 | |
| 	if len(m.Stderr) > 0 {
 | |
| 		dAtA[i] = 0x3a
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.Stderr)))
 | |
| 		i += copy(dAtA[i:], m.Stderr)
 | |
| 	}
 | |
| 	if m.Terminal {
 | |
| 		dAtA[i] = 0x40
 | |
| 		i++
 | |
| 		if m.Terminal {
 | |
| 			dAtA[i] = 1
 | |
| 		} else {
 | |
| 			dAtA[i] = 0
 | |
| 		}
 | |
| 		i++
 | |
| 	}
 | |
| 	if m.ExitStatus != 0 {
 | |
| 		dAtA[i] = 0x48
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(m.ExitStatus))
 | |
| 	}
 | |
| 	dAtA[i] = 0x52
 | |
| 	i++
 | |
| 	i = encodeVarintShim(dAtA, i, uint64(types.SizeOfStdTime(m.ExitedAt)))
 | |
| 	n4, err := types.StdTimeMarshalTo(m.ExitedAt, dAtA[i:])
 | |
| 	if err != nil {
 | |
| 		return 0, err
 | |
| 	}
 | |
| 	i += n4
 | |
| 	if len(m.ExecID) > 0 {
 | |
| 		dAtA[i] = 0x5a
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.ExecID)))
 | |
| 		i += copy(dAtA[i:], m.ExecID)
 | |
| 	}
 | |
| 	return i, nil
 | |
| }
 | |
| 
 | |
| func (m *KillRequest) Marshal() (dAtA []byte, err error) {
 | |
| 	size := m.Size()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalTo(dAtA)
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *KillRequest) MarshalTo(dAtA []byte) (int, error) {
 | |
| 	var i int
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if len(m.ID) > 0 {
 | |
| 		dAtA[i] = 0xa
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.ID)))
 | |
| 		i += copy(dAtA[i:], m.ID)
 | |
| 	}
 | |
| 	if len(m.ExecID) > 0 {
 | |
| 		dAtA[i] = 0x12
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.ExecID)))
 | |
| 		i += copy(dAtA[i:], m.ExecID)
 | |
| 	}
 | |
| 	if m.Signal != 0 {
 | |
| 		dAtA[i] = 0x18
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(m.Signal))
 | |
| 	}
 | |
| 	if m.All {
 | |
| 		dAtA[i] = 0x20
 | |
| 		i++
 | |
| 		if m.All {
 | |
| 			dAtA[i] = 1
 | |
| 		} else {
 | |
| 			dAtA[i] = 0
 | |
| 		}
 | |
| 		i++
 | |
| 	}
 | |
| 	return i, nil
 | |
| }
 | |
| 
 | |
| func (m *CloseIORequest) Marshal() (dAtA []byte, err error) {
 | |
| 	size := m.Size()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalTo(dAtA)
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *CloseIORequest) MarshalTo(dAtA []byte) (int, error) {
 | |
| 	var i int
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if len(m.ID) > 0 {
 | |
| 		dAtA[i] = 0xa
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.ID)))
 | |
| 		i += copy(dAtA[i:], m.ID)
 | |
| 	}
 | |
| 	if len(m.ExecID) > 0 {
 | |
| 		dAtA[i] = 0x12
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.ExecID)))
 | |
| 		i += copy(dAtA[i:], m.ExecID)
 | |
| 	}
 | |
| 	if m.Stdin {
 | |
| 		dAtA[i] = 0x18
 | |
| 		i++
 | |
| 		if m.Stdin {
 | |
| 			dAtA[i] = 1
 | |
| 		} else {
 | |
| 			dAtA[i] = 0
 | |
| 		}
 | |
| 		i++
 | |
| 	}
 | |
| 	return i, nil
 | |
| }
 | |
| 
 | |
| func (m *PidsRequest) Marshal() (dAtA []byte, err error) {
 | |
| 	size := m.Size()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalTo(dAtA)
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *PidsRequest) MarshalTo(dAtA []byte) (int, error) {
 | |
| 	var i int
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if len(m.ID) > 0 {
 | |
| 		dAtA[i] = 0xa
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.ID)))
 | |
| 		i += copy(dAtA[i:], m.ID)
 | |
| 	}
 | |
| 	return i, nil
 | |
| }
 | |
| 
 | |
| func (m *PidsResponse) Marshal() (dAtA []byte, err error) {
 | |
| 	size := m.Size()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalTo(dAtA)
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *PidsResponse) MarshalTo(dAtA []byte) (int, error) {
 | |
| 	var i int
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if len(m.Processes) > 0 {
 | |
| 		for _, msg := range m.Processes {
 | |
| 			dAtA[i] = 0xa
 | |
| 			i++
 | |
| 			i = encodeVarintShim(dAtA, i, uint64(msg.Size()))
 | |
| 			n, err := msg.MarshalTo(dAtA[i:])
 | |
| 			if err != nil {
 | |
| 				return 0, err
 | |
| 			}
 | |
| 			i += n
 | |
| 		}
 | |
| 	}
 | |
| 	return i, nil
 | |
| }
 | |
| 
 | |
| func (m *CheckpointTaskRequest) Marshal() (dAtA []byte, err error) {
 | |
| 	size := m.Size()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalTo(dAtA)
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *CheckpointTaskRequest) MarshalTo(dAtA []byte) (int, error) {
 | |
| 	var i int
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if len(m.ID) > 0 {
 | |
| 		dAtA[i] = 0xa
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.ID)))
 | |
| 		i += copy(dAtA[i:], m.ID)
 | |
| 	}
 | |
| 	if len(m.Path) > 0 {
 | |
| 		dAtA[i] = 0x12
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.Path)))
 | |
| 		i += copy(dAtA[i:], m.Path)
 | |
| 	}
 | |
| 	if m.Options != nil {
 | |
| 		dAtA[i] = 0x1a
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(m.Options.Size()))
 | |
| 		n5, err := m.Options.MarshalTo(dAtA[i:])
 | |
| 		if err != nil {
 | |
| 			return 0, err
 | |
| 		}
 | |
| 		i += n5
 | |
| 	}
 | |
| 	return i, nil
 | |
| }
 | |
| 
 | |
| func (m *UpdateTaskRequest) Marshal() (dAtA []byte, err error) {
 | |
| 	size := m.Size()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalTo(dAtA)
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *UpdateTaskRequest) MarshalTo(dAtA []byte) (int, error) {
 | |
| 	var i int
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if len(m.ID) > 0 {
 | |
| 		dAtA[i] = 0xa
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.ID)))
 | |
| 		i += copy(dAtA[i:], m.ID)
 | |
| 	}
 | |
| 	if m.Resources != nil {
 | |
| 		dAtA[i] = 0x12
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(m.Resources.Size()))
 | |
| 		n6, err := m.Resources.MarshalTo(dAtA[i:])
 | |
| 		if err != nil {
 | |
| 			return 0, err
 | |
| 		}
 | |
| 		i += n6
 | |
| 	}
 | |
| 	return i, nil
 | |
| }
 | |
| 
 | |
| func (m *StartRequest) Marshal() (dAtA []byte, err error) {
 | |
| 	size := m.Size()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalTo(dAtA)
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *StartRequest) MarshalTo(dAtA []byte) (int, error) {
 | |
| 	var i int
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if len(m.ID) > 0 {
 | |
| 		dAtA[i] = 0xa
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.ID)))
 | |
| 		i += copy(dAtA[i:], m.ID)
 | |
| 	}
 | |
| 	if len(m.ExecID) > 0 {
 | |
| 		dAtA[i] = 0x12
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.ExecID)))
 | |
| 		i += copy(dAtA[i:], m.ExecID)
 | |
| 	}
 | |
| 	return i, nil
 | |
| }
 | |
| 
 | |
| func (m *StartResponse) Marshal() (dAtA []byte, err error) {
 | |
| 	size := m.Size()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalTo(dAtA)
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *StartResponse) MarshalTo(dAtA []byte) (int, error) {
 | |
| 	var i int
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.Pid != 0 {
 | |
| 		dAtA[i] = 0x8
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(m.Pid))
 | |
| 	}
 | |
| 	return i, nil
 | |
| }
 | |
| 
 | |
| func (m *WaitRequest) Marshal() (dAtA []byte, err error) {
 | |
| 	size := m.Size()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalTo(dAtA)
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *WaitRequest) MarshalTo(dAtA []byte) (int, error) {
 | |
| 	var i int
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if len(m.ID) > 0 {
 | |
| 		dAtA[i] = 0xa
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.ID)))
 | |
| 		i += copy(dAtA[i:], m.ID)
 | |
| 	}
 | |
| 	if len(m.ExecID) > 0 {
 | |
| 		dAtA[i] = 0x12
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.ExecID)))
 | |
| 		i += copy(dAtA[i:], m.ExecID)
 | |
| 	}
 | |
| 	return i, nil
 | |
| }
 | |
| 
 | |
| func (m *WaitResponse) Marshal() (dAtA []byte, err error) {
 | |
| 	size := m.Size()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalTo(dAtA)
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *WaitResponse) MarshalTo(dAtA []byte) (int, error) {
 | |
| 	var i int
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.ExitStatus != 0 {
 | |
| 		dAtA[i] = 0x8
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(m.ExitStatus))
 | |
| 	}
 | |
| 	dAtA[i] = 0x12
 | |
| 	i++
 | |
| 	i = encodeVarintShim(dAtA, i, uint64(types.SizeOfStdTime(m.ExitedAt)))
 | |
| 	n7, err := types.StdTimeMarshalTo(m.ExitedAt, dAtA[i:])
 | |
| 	if err != nil {
 | |
| 		return 0, err
 | |
| 	}
 | |
| 	i += n7
 | |
| 	return i, nil
 | |
| }
 | |
| 
 | |
| func (m *StatsRequest) Marshal() (dAtA []byte, err error) {
 | |
| 	size := m.Size()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalTo(dAtA)
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *StatsRequest) MarshalTo(dAtA []byte) (int, error) {
 | |
| 	var i int
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if len(m.ID) > 0 {
 | |
| 		dAtA[i] = 0xa
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.ID)))
 | |
| 		i += copy(dAtA[i:], m.ID)
 | |
| 	}
 | |
| 	return i, nil
 | |
| }
 | |
| 
 | |
| func (m *StatsResponse) Marshal() (dAtA []byte, err error) {
 | |
| 	size := m.Size()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalTo(dAtA)
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *StatsResponse) MarshalTo(dAtA []byte) (int, error) {
 | |
| 	var i int
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.Stats != nil {
 | |
| 		dAtA[i] = 0xa
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(m.Stats.Size()))
 | |
| 		n8, err := m.Stats.MarshalTo(dAtA[i:])
 | |
| 		if err != nil {
 | |
| 			return 0, err
 | |
| 		}
 | |
| 		i += n8
 | |
| 	}
 | |
| 	return i, nil
 | |
| }
 | |
| 
 | |
| func (m *ConnectRequest) Marshal() (dAtA []byte, err error) {
 | |
| 	size := m.Size()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalTo(dAtA)
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *ConnectRequest) MarshalTo(dAtA []byte) (int, error) {
 | |
| 	var i int
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if len(m.ID) > 0 {
 | |
| 		dAtA[i] = 0xa
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.ID)))
 | |
| 		i += copy(dAtA[i:], m.ID)
 | |
| 	}
 | |
| 	return i, nil
 | |
| }
 | |
| 
 | |
| func (m *ConnectResponse) Marshal() (dAtA []byte, err error) {
 | |
| 	size := m.Size()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalTo(dAtA)
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *ConnectResponse) MarshalTo(dAtA []byte) (int, error) {
 | |
| 	var i int
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.ShimPid != 0 {
 | |
| 		dAtA[i] = 0x8
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(m.ShimPid))
 | |
| 	}
 | |
| 	if m.TaskPid != 0 {
 | |
| 		dAtA[i] = 0x10
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(m.TaskPid))
 | |
| 	}
 | |
| 	if len(m.Version) > 0 {
 | |
| 		dAtA[i] = 0x1a
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.Version)))
 | |
| 		i += copy(dAtA[i:], m.Version)
 | |
| 	}
 | |
| 	return i, nil
 | |
| }
 | |
| 
 | |
| func (m *ShutdownRequest) Marshal() (dAtA []byte, err error) {
 | |
| 	size := m.Size()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalTo(dAtA)
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *ShutdownRequest) MarshalTo(dAtA []byte) (int, error) {
 | |
| 	var i int
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if len(m.ID) > 0 {
 | |
| 		dAtA[i] = 0xa
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.ID)))
 | |
| 		i += copy(dAtA[i:], m.ID)
 | |
| 	}
 | |
| 	if m.Now {
 | |
| 		dAtA[i] = 0x10
 | |
| 		i++
 | |
| 		if m.Now {
 | |
| 			dAtA[i] = 1
 | |
| 		} else {
 | |
| 			dAtA[i] = 0
 | |
| 		}
 | |
| 		i++
 | |
| 	}
 | |
| 	return i, nil
 | |
| }
 | |
| 
 | |
| func (m *PauseRequest) Marshal() (dAtA []byte, err error) {
 | |
| 	size := m.Size()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalTo(dAtA)
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *PauseRequest) MarshalTo(dAtA []byte) (int, error) {
 | |
| 	var i int
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if len(m.ID) > 0 {
 | |
| 		dAtA[i] = 0xa
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.ID)))
 | |
| 		i += copy(dAtA[i:], m.ID)
 | |
| 	}
 | |
| 	return i, nil
 | |
| }
 | |
| 
 | |
| func (m *ResumeRequest) Marshal() (dAtA []byte, err error) {
 | |
| 	size := m.Size()
 | |
| 	dAtA = make([]byte, size)
 | |
| 	n, err := m.MarshalTo(dAtA)
 | |
| 	if err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return dAtA[:n], nil
 | |
| }
 | |
| 
 | |
| func (m *ResumeRequest) MarshalTo(dAtA []byte) (int, error) {
 | |
| 	var i int
 | |
| 	_ = i
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if len(m.ID) > 0 {
 | |
| 		dAtA[i] = 0xa
 | |
| 		i++
 | |
| 		i = encodeVarintShim(dAtA, i, uint64(len(m.ID)))
 | |
| 		i += copy(dAtA[i:], m.ID)
 | |
| 	}
 | |
| 	return i, nil
 | |
| }
 | |
| 
 | |
| func encodeVarintShim(dAtA []byte, offset int, v uint64) int {
 | |
| 	for v >= 1<<7 {
 | |
| 		dAtA[offset] = uint8(v&0x7f | 0x80)
 | |
| 		v >>= 7
 | |
| 		offset++
 | |
| 	}
 | |
| 	dAtA[offset] = uint8(v)
 | |
| 	return offset + 1
 | |
| }
 | |
| func (m *CreateTaskRequest) Size() (n int) {
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	l = len(m.ID)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	l = len(m.Bundle)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	if len(m.Rootfs) > 0 {
 | |
| 		for _, e := range m.Rootfs {
 | |
| 			l = e.Size()
 | |
| 			n += 1 + l + sovShim(uint64(l))
 | |
| 		}
 | |
| 	}
 | |
| 	if m.Terminal {
 | |
| 		n += 2
 | |
| 	}
 | |
| 	l = len(m.Stdin)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	l = len(m.Stdout)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	l = len(m.Stderr)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	l = len(m.Checkpoint)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	l = len(m.ParentCheckpoint)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	if m.Options != nil {
 | |
| 		l = m.Options.Size()
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *CreateTaskResponse) Size() (n int) {
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.Pid != 0 {
 | |
| 		n += 1 + sovShim(uint64(m.Pid))
 | |
| 	}
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *DeleteRequest) Size() (n int) {
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	l = len(m.ID)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	l = len(m.ExecID)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *DeleteResponse) Size() (n int) {
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.Pid != 0 {
 | |
| 		n += 1 + sovShim(uint64(m.Pid))
 | |
| 	}
 | |
| 	if m.ExitStatus != 0 {
 | |
| 		n += 1 + sovShim(uint64(m.ExitStatus))
 | |
| 	}
 | |
| 	l = types.SizeOfStdTime(m.ExitedAt)
 | |
| 	n += 1 + l + sovShim(uint64(l))
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *ExecProcessRequest) Size() (n int) {
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	l = len(m.ID)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	l = len(m.ExecID)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	if m.Terminal {
 | |
| 		n += 2
 | |
| 	}
 | |
| 	l = len(m.Stdin)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	l = len(m.Stdout)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	l = len(m.Stderr)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	if m.Spec != nil {
 | |
| 		l = m.Spec.Size()
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *ExecProcessResponse) Size() (n int) {
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *ResizePtyRequest) Size() (n int) {
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	l = len(m.ID)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	l = len(m.ExecID)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	if m.Width != 0 {
 | |
| 		n += 1 + sovShim(uint64(m.Width))
 | |
| 	}
 | |
| 	if m.Height != 0 {
 | |
| 		n += 1 + sovShim(uint64(m.Height))
 | |
| 	}
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *StateRequest) Size() (n int) {
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	l = len(m.ID)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	l = len(m.ExecID)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *StateResponse) Size() (n int) {
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	l = len(m.ID)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	l = len(m.Bundle)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	if m.Pid != 0 {
 | |
| 		n += 1 + sovShim(uint64(m.Pid))
 | |
| 	}
 | |
| 	if m.Status != 0 {
 | |
| 		n += 1 + sovShim(uint64(m.Status))
 | |
| 	}
 | |
| 	l = len(m.Stdin)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	l = len(m.Stdout)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	l = len(m.Stderr)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	if m.Terminal {
 | |
| 		n += 2
 | |
| 	}
 | |
| 	if m.ExitStatus != 0 {
 | |
| 		n += 1 + sovShim(uint64(m.ExitStatus))
 | |
| 	}
 | |
| 	l = types.SizeOfStdTime(m.ExitedAt)
 | |
| 	n += 1 + l + sovShim(uint64(l))
 | |
| 	l = len(m.ExecID)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *KillRequest) Size() (n int) {
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	l = len(m.ID)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	l = len(m.ExecID)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	if m.Signal != 0 {
 | |
| 		n += 1 + sovShim(uint64(m.Signal))
 | |
| 	}
 | |
| 	if m.All {
 | |
| 		n += 2
 | |
| 	}
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *CloseIORequest) Size() (n int) {
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	l = len(m.ID)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	l = len(m.ExecID)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	if m.Stdin {
 | |
| 		n += 2
 | |
| 	}
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *PidsRequest) Size() (n int) {
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	l = len(m.ID)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *PidsResponse) Size() (n int) {
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if len(m.Processes) > 0 {
 | |
| 		for _, e := range m.Processes {
 | |
| 			l = e.Size()
 | |
| 			n += 1 + l + sovShim(uint64(l))
 | |
| 		}
 | |
| 	}
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *CheckpointTaskRequest) Size() (n int) {
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	l = len(m.ID)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	l = len(m.Path)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	if m.Options != nil {
 | |
| 		l = m.Options.Size()
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *UpdateTaskRequest) Size() (n int) {
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	l = len(m.ID)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	if m.Resources != nil {
 | |
| 		l = m.Resources.Size()
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *StartRequest) Size() (n int) {
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	l = len(m.ID)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	l = len(m.ExecID)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *StartResponse) Size() (n int) {
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.Pid != 0 {
 | |
| 		n += 1 + sovShim(uint64(m.Pid))
 | |
| 	}
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *WaitRequest) Size() (n int) {
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	l = len(m.ID)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	l = len(m.ExecID)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *WaitResponse) Size() (n int) {
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.ExitStatus != 0 {
 | |
| 		n += 1 + sovShim(uint64(m.ExitStatus))
 | |
| 	}
 | |
| 	l = types.SizeOfStdTime(m.ExitedAt)
 | |
| 	n += 1 + l + sovShim(uint64(l))
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *StatsRequest) Size() (n int) {
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	l = len(m.ID)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *StatsResponse) Size() (n int) {
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.Stats != nil {
 | |
| 		l = m.Stats.Size()
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *ConnectRequest) Size() (n int) {
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	l = len(m.ID)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *ConnectResponse) Size() (n int) {
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	if m.ShimPid != 0 {
 | |
| 		n += 1 + sovShim(uint64(m.ShimPid))
 | |
| 	}
 | |
| 	if m.TaskPid != 0 {
 | |
| 		n += 1 + sovShim(uint64(m.TaskPid))
 | |
| 	}
 | |
| 	l = len(m.Version)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *ShutdownRequest) Size() (n int) {
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	l = len(m.ID)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	if m.Now {
 | |
| 		n += 2
 | |
| 	}
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *PauseRequest) Size() (n int) {
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	l = len(m.ID)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *ResumeRequest) Size() (n int) {
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	l = len(m.ID)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovShim(uint64(l))
 | |
| 	}
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func sovShim(x uint64) (n int) {
 | |
| 	for {
 | |
| 		n++
 | |
| 		x >>= 7
 | |
| 		if x == 0 {
 | |
| 			break
 | |
| 		}
 | |
| 	}
 | |
| 	return n
 | |
| }
 | |
| func sozShim(x uint64) (n int) {
 | |
| 	return sovShim(uint64((x << 1) ^ uint64((int64(x) >> 63))))
 | |
| }
 | |
| func (this *CreateTaskRequest) String() string {
 | |
| 	if this == nil {
 | |
| 		return "nil"
 | |
| 	}
 | |
| 	s := strings.Join([]string{`&CreateTaskRequest{`,
 | |
| 		`ID:` + fmt.Sprintf("%v", this.ID) + `,`,
 | |
| 		`Bundle:` + fmt.Sprintf("%v", this.Bundle) + `,`,
 | |
| 		`Rootfs:` + strings.Replace(fmt.Sprintf("%v", this.Rootfs), "Mount", "containerd_types.Mount", 1) + `,`,
 | |
| 		`Terminal:` + fmt.Sprintf("%v", this.Terminal) + `,`,
 | |
| 		`Stdin:` + fmt.Sprintf("%v", this.Stdin) + `,`,
 | |
| 		`Stdout:` + fmt.Sprintf("%v", this.Stdout) + `,`,
 | |
| 		`Stderr:` + fmt.Sprintf("%v", this.Stderr) + `,`,
 | |
| 		`Checkpoint:` + fmt.Sprintf("%v", this.Checkpoint) + `,`,
 | |
| 		`ParentCheckpoint:` + fmt.Sprintf("%v", this.ParentCheckpoint) + `,`,
 | |
| 		`Options:` + strings.Replace(fmt.Sprintf("%v", this.Options), "Any", "google_protobuf.Any", 1) + `,`,
 | |
| 		`}`,
 | |
| 	}, "")
 | |
| 	return s
 | |
| }
 | |
| func (this *CreateTaskResponse) String() string {
 | |
| 	if this == nil {
 | |
| 		return "nil"
 | |
| 	}
 | |
| 	s := strings.Join([]string{`&CreateTaskResponse{`,
 | |
| 		`Pid:` + fmt.Sprintf("%v", this.Pid) + `,`,
 | |
| 		`}`,
 | |
| 	}, "")
 | |
| 	return s
 | |
| }
 | |
| func (this *DeleteRequest) String() string {
 | |
| 	if this == nil {
 | |
| 		return "nil"
 | |
| 	}
 | |
| 	s := strings.Join([]string{`&DeleteRequest{`,
 | |
| 		`ID:` + fmt.Sprintf("%v", this.ID) + `,`,
 | |
| 		`ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`,
 | |
| 		`}`,
 | |
| 	}, "")
 | |
| 	return s
 | |
| }
 | |
| func (this *DeleteResponse) String() string {
 | |
| 	if this == nil {
 | |
| 		return "nil"
 | |
| 	}
 | |
| 	s := strings.Join([]string{`&DeleteResponse{`,
 | |
| 		`Pid:` + fmt.Sprintf("%v", this.Pid) + `,`,
 | |
| 		`ExitStatus:` + fmt.Sprintf("%v", this.ExitStatus) + `,`,
 | |
| 		`ExitedAt:` + strings.Replace(strings.Replace(this.ExitedAt.String(), "Timestamp", "google_protobuf3.Timestamp", 1), `&`, ``, 1) + `,`,
 | |
| 		`}`,
 | |
| 	}, "")
 | |
| 	return s
 | |
| }
 | |
| func (this *ExecProcessRequest) String() string {
 | |
| 	if this == nil {
 | |
| 		return "nil"
 | |
| 	}
 | |
| 	s := strings.Join([]string{`&ExecProcessRequest{`,
 | |
| 		`ID:` + fmt.Sprintf("%v", this.ID) + `,`,
 | |
| 		`ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`,
 | |
| 		`Terminal:` + fmt.Sprintf("%v", this.Terminal) + `,`,
 | |
| 		`Stdin:` + fmt.Sprintf("%v", this.Stdin) + `,`,
 | |
| 		`Stdout:` + fmt.Sprintf("%v", this.Stdout) + `,`,
 | |
| 		`Stderr:` + fmt.Sprintf("%v", this.Stderr) + `,`,
 | |
| 		`Spec:` + strings.Replace(fmt.Sprintf("%v", this.Spec), "Any", "google_protobuf.Any", 1) + `,`,
 | |
| 		`}`,
 | |
| 	}, "")
 | |
| 	return s
 | |
| }
 | |
| func (this *ExecProcessResponse) String() string {
 | |
| 	if this == nil {
 | |
| 		return "nil"
 | |
| 	}
 | |
| 	s := strings.Join([]string{`&ExecProcessResponse{`,
 | |
| 		`}`,
 | |
| 	}, "")
 | |
| 	return s
 | |
| }
 | |
| func (this *ResizePtyRequest) String() string {
 | |
| 	if this == nil {
 | |
| 		return "nil"
 | |
| 	}
 | |
| 	s := strings.Join([]string{`&ResizePtyRequest{`,
 | |
| 		`ID:` + fmt.Sprintf("%v", this.ID) + `,`,
 | |
| 		`ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`,
 | |
| 		`Width:` + fmt.Sprintf("%v", this.Width) + `,`,
 | |
| 		`Height:` + fmt.Sprintf("%v", this.Height) + `,`,
 | |
| 		`}`,
 | |
| 	}, "")
 | |
| 	return s
 | |
| }
 | |
| func (this *StateRequest) String() string {
 | |
| 	if this == nil {
 | |
| 		return "nil"
 | |
| 	}
 | |
| 	s := strings.Join([]string{`&StateRequest{`,
 | |
| 		`ID:` + fmt.Sprintf("%v", this.ID) + `,`,
 | |
| 		`ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`,
 | |
| 		`}`,
 | |
| 	}, "")
 | |
| 	return s
 | |
| }
 | |
| func (this *StateResponse) String() string {
 | |
| 	if this == nil {
 | |
| 		return "nil"
 | |
| 	}
 | |
| 	s := strings.Join([]string{`&StateResponse{`,
 | |
| 		`ID:` + fmt.Sprintf("%v", this.ID) + `,`,
 | |
| 		`Bundle:` + fmt.Sprintf("%v", this.Bundle) + `,`,
 | |
| 		`Pid:` + fmt.Sprintf("%v", this.Pid) + `,`,
 | |
| 		`Status:` + fmt.Sprintf("%v", this.Status) + `,`,
 | |
| 		`Stdin:` + fmt.Sprintf("%v", this.Stdin) + `,`,
 | |
| 		`Stdout:` + fmt.Sprintf("%v", this.Stdout) + `,`,
 | |
| 		`Stderr:` + fmt.Sprintf("%v", this.Stderr) + `,`,
 | |
| 		`Terminal:` + fmt.Sprintf("%v", this.Terminal) + `,`,
 | |
| 		`ExitStatus:` + fmt.Sprintf("%v", this.ExitStatus) + `,`,
 | |
| 		`ExitedAt:` + strings.Replace(strings.Replace(this.ExitedAt.String(), "Timestamp", "google_protobuf3.Timestamp", 1), `&`, ``, 1) + `,`,
 | |
| 		`ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`,
 | |
| 		`}`,
 | |
| 	}, "")
 | |
| 	return s
 | |
| }
 | |
| func (this *KillRequest) String() string {
 | |
| 	if this == nil {
 | |
| 		return "nil"
 | |
| 	}
 | |
| 	s := strings.Join([]string{`&KillRequest{`,
 | |
| 		`ID:` + fmt.Sprintf("%v", this.ID) + `,`,
 | |
| 		`ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`,
 | |
| 		`Signal:` + fmt.Sprintf("%v", this.Signal) + `,`,
 | |
| 		`All:` + fmt.Sprintf("%v", this.All) + `,`,
 | |
| 		`}`,
 | |
| 	}, "")
 | |
| 	return s
 | |
| }
 | |
| func (this *CloseIORequest) String() string {
 | |
| 	if this == nil {
 | |
| 		return "nil"
 | |
| 	}
 | |
| 	s := strings.Join([]string{`&CloseIORequest{`,
 | |
| 		`ID:` + fmt.Sprintf("%v", this.ID) + `,`,
 | |
| 		`ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`,
 | |
| 		`Stdin:` + fmt.Sprintf("%v", this.Stdin) + `,`,
 | |
| 		`}`,
 | |
| 	}, "")
 | |
| 	return s
 | |
| }
 | |
| func (this *PidsRequest) String() string {
 | |
| 	if this == nil {
 | |
| 		return "nil"
 | |
| 	}
 | |
| 	s := strings.Join([]string{`&PidsRequest{`,
 | |
| 		`ID:` + fmt.Sprintf("%v", this.ID) + `,`,
 | |
| 		`}`,
 | |
| 	}, "")
 | |
| 	return s
 | |
| }
 | |
| func (this *PidsResponse) String() string {
 | |
| 	if this == nil {
 | |
| 		return "nil"
 | |
| 	}
 | |
| 	s := strings.Join([]string{`&PidsResponse{`,
 | |
| 		`Processes:` + strings.Replace(fmt.Sprintf("%v", this.Processes), "ProcessInfo", "containerd_v1_types.ProcessInfo", 1) + `,`,
 | |
| 		`}`,
 | |
| 	}, "")
 | |
| 	return s
 | |
| }
 | |
| func (this *CheckpointTaskRequest) String() string {
 | |
| 	if this == nil {
 | |
| 		return "nil"
 | |
| 	}
 | |
| 	s := strings.Join([]string{`&CheckpointTaskRequest{`,
 | |
| 		`ID:` + fmt.Sprintf("%v", this.ID) + `,`,
 | |
| 		`Path:` + fmt.Sprintf("%v", this.Path) + `,`,
 | |
| 		`Options:` + strings.Replace(fmt.Sprintf("%v", this.Options), "Any", "google_protobuf.Any", 1) + `,`,
 | |
| 		`}`,
 | |
| 	}, "")
 | |
| 	return s
 | |
| }
 | |
| func (this *UpdateTaskRequest) String() string {
 | |
| 	if this == nil {
 | |
| 		return "nil"
 | |
| 	}
 | |
| 	s := strings.Join([]string{`&UpdateTaskRequest{`,
 | |
| 		`ID:` + fmt.Sprintf("%v", this.ID) + `,`,
 | |
| 		`Resources:` + strings.Replace(fmt.Sprintf("%v", this.Resources), "Any", "google_protobuf.Any", 1) + `,`,
 | |
| 		`}`,
 | |
| 	}, "")
 | |
| 	return s
 | |
| }
 | |
| func (this *StartRequest) String() string {
 | |
| 	if this == nil {
 | |
| 		return "nil"
 | |
| 	}
 | |
| 	s := strings.Join([]string{`&StartRequest{`,
 | |
| 		`ID:` + fmt.Sprintf("%v", this.ID) + `,`,
 | |
| 		`ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`,
 | |
| 		`}`,
 | |
| 	}, "")
 | |
| 	return s
 | |
| }
 | |
| func (this *StartResponse) String() string {
 | |
| 	if this == nil {
 | |
| 		return "nil"
 | |
| 	}
 | |
| 	s := strings.Join([]string{`&StartResponse{`,
 | |
| 		`Pid:` + fmt.Sprintf("%v", this.Pid) + `,`,
 | |
| 		`}`,
 | |
| 	}, "")
 | |
| 	return s
 | |
| }
 | |
| func (this *WaitRequest) String() string {
 | |
| 	if this == nil {
 | |
| 		return "nil"
 | |
| 	}
 | |
| 	s := strings.Join([]string{`&WaitRequest{`,
 | |
| 		`ID:` + fmt.Sprintf("%v", this.ID) + `,`,
 | |
| 		`ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`,
 | |
| 		`}`,
 | |
| 	}, "")
 | |
| 	return s
 | |
| }
 | |
| func (this *WaitResponse) String() string {
 | |
| 	if this == nil {
 | |
| 		return "nil"
 | |
| 	}
 | |
| 	s := strings.Join([]string{`&WaitResponse{`,
 | |
| 		`ExitStatus:` + fmt.Sprintf("%v", this.ExitStatus) + `,`,
 | |
| 		`ExitedAt:` + strings.Replace(strings.Replace(this.ExitedAt.String(), "Timestamp", "google_protobuf3.Timestamp", 1), `&`, ``, 1) + `,`,
 | |
| 		`}`,
 | |
| 	}, "")
 | |
| 	return s
 | |
| }
 | |
| func (this *StatsRequest) String() string {
 | |
| 	if this == nil {
 | |
| 		return "nil"
 | |
| 	}
 | |
| 	s := strings.Join([]string{`&StatsRequest{`,
 | |
| 		`ID:` + fmt.Sprintf("%v", this.ID) + `,`,
 | |
| 		`}`,
 | |
| 	}, "")
 | |
| 	return s
 | |
| }
 | |
| func (this *StatsResponse) String() string {
 | |
| 	if this == nil {
 | |
| 		return "nil"
 | |
| 	}
 | |
| 	s := strings.Join([]string{`&StatsResponse{`,
 | |
| 		`Stats:` + strings.Replace(fmt.Sprintf("%v", this.Stats), "Any", "google_protobuf.Any", 1) + `,`,
 | |
| 		`}`,
 | |
| 	}, "")
 | |
| 	return s
 | |
| }
 | |
| func (this *ConnectRequest) String() string {
 | |
| 	if this == nil {
 | |
| 		return "nil"
 | |
| 	}
 | |
| 	s := strings.Join([]string{`&ConnectRequest{`,
 | |
| 		`ID:` + fmt.Sprintf("%v", this.ID) + `,`,
 | |
| 		`}`,
 | |
| 	}, "")
 | |
| 	return s
 | |
| }
 | |
| func (this *ConnectResponse) String() string {
 | |
| 	if this == nil {
 | |
| 		return "nil"
 | |
| 	}
 | |
| 	s := strings.Join([]string{`&ConnectResponse{`,
 | |
| 		`ShimPid:` + fmt.Sprintf("%v", this.ShimPid) + `,`,
 | |
| 		`TaskPid:` + fmt.Sprintf("%v", this.TaskPid) + `,`,
 | |
| 		`Version:` + fmt.Sprintf("%v", this.Version) + `,`,
 | |
| 		`}`,
 | |
| 	}, "")
 | |
| 	return s
 | |
| }
 | |
| func (this *ShutdownRequest) String() string {
 | |
| 	if this == nil {
 | |
| 		return "nil"
 | |
| 	}
 | |
| 	s := strings.Join([]string{`&ShutdownRequest{`,
 | |
| 		`ID:` + fmt.Sprintf("%v", this.ID) + `,`,
 | |
| 		`Now:` + fmt.Sprintf("%v", this.Now) + `,`,
 | |
| 		`}`,
 | |
| 	}, "")
 | |
| 	return s
 | |
| }
 | |
| func (this *PauseRequest) String() string {
 | |
| 	if this == nil {
 | |
| 		return "nil"
 | |
| 	}
 | |
| 	s := strings.Join([]string{`&PauseRequest{`,
 | |
| 		`ID:` + fmt.Sprintf("%v", this.ID) + `,`,
 | |
| 		`}`,
 | |
| 	}, "")
 | |
| 	return s
 | |
| }
 | |
| func (this *ResumeRequest) String() string {
 | |
| 	if this == nil {
 | |
| 		return "nil"
 | |
| 	}
 | |
| 	s := strings.Join([]string{`&ResumeRequest{`,
 | |
| 		`ID:` + fmt.Sprintf("%v", this.ID) + `,`,
 | |
| 		`}`,
 | |
| 	}, "")
 | |
| 	return s
 | |
| }
 | |
| func valueToStringShim(v interface{}) string {
 | |
| 	rv := reflect.ValueOf(v)
 | |
| 	if rv.IsNil() {
 | |
| 		return "nil"
 | |
| 	}
 | |
| 	pv := reflect.Indirect(rv).Interface()
 | |
| 	return fmt.Sprintf("*%v", pv)
 | |
| }
 | |
| 
 | |
| type TaskService interface {
 | |
| 	State(ctx context.Context, req *StateRequest) (*StateResponse, error)
 | |
| 	Create(ctx context.Context, req *CreateTaskRequest) (*CreateTaskResponse, error)
 | |
| 	Start(ctx context.Context, req *StartRequest) (*StartResponse, error)
 | |
| 	Delete(ctx context.Context, req *DeleteRequest) (*DeleteResponse, error)
 | |
| 	Pids(ctx context.Context, req *PidsRequest) (*PidsResponse, error)
 | |
| 	Pause(ctx context.Context, req *PauseRequest) (*google_protobuf1.Empty, error)
 | |
| 	Resume(ctx context.Context, req *ResumeRequest) (*google_protobuf1.Empty, error)
 | |
| 	Checkpoint(ctx context.Context, req *CheckpointTaskRequest) (*google_protobuf1.Empty, error)
 | |
| 	Kill(ctx context.Context, req *KillRequest) (*google_protobuf1.Empty, error)
 | |
| 	Exec(ctx context.Context, req *ExecProcessRequest) (*google_protobuf1.Empty, error)
 | |
| 	ResizePty(ctx context.Context, req *ResizePtyRequest) (*google_protobuf1.Empty, error)
 | |
| 	CloseIO(ctx context.Context, req *CloseIORequest) (*google_protobuf1.Empty, error)
 | |
| 	Update(ctx context.Context, req *UpdateTaskRequest) (*google_protobuf1.Empty, error)
 | |
| 	Wait(ctx context.Context, req *WaitRequest) (*WaitResponse, error)
 | |
| 	Stats(ctx context.Context, req *StatsRequest) (*StatsResponse, error)
 | |
| 	Connect(ctx context.Context, req *ConnectRequest) (*ConnectResponse, error)
 | |
| 	Shutdown(ctx context.Context, req *ShutdownRequest) (*google_protobuf1.Empty, error)
 | |
| }
 | |
| 
 | |
| func RegisterTaskService(srv *ttrpc.Server, svc TaskService) {
 | |
| 	srv.Register("containerd.task.v2.Task", map[string]ttrpc.Method{
 | |
| 		"State": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
 | |
| 			var req StateRequest
 | |
| 			if err := unmarshal(&req); err != nil {
 | |
| 				return nil, err
 | |
| 			}
 | |
| 			return svc.State(ctx, &req)
 | |
| 		},
 | |
| 		"Create": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
 | |
| 			var req CreateTaskRequest
 | |
| 			if err := unmarshal(&req); err != nil {
 | |
| 				return nil, err
 | |
| 			}
 | |
| 			return svc.Create(ctx, &req)
 | |
| 		},
 | |
| 		"Start": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
 | |
| 			var req StartRequest
 | |
| 			if err := unmarshal(&req); err != nil {
 | |
| 				return nil, err
 | |
| 			}
 | |
| 			return svc.Start(ctx, &req)
 | |
| 		},
 | |
| 		"Delete": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
 | |
| 			var req DeleteRequest
 | |
| 			if err := unmarshal(&req); err != nil {
 | |
| 				return nil, err
 | |
| 			}
 | |
| 			return svc.Delete(ctx, &req)
 | |
| 		},
 | |
| 		"Pids": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
 | |
| 			var req PidsRequest
 | |
| 			if err := unmarshal(&req); err != nil {
 | |
| 				return nil, err
 | |
| 			}
 | |
| 			return svc.Pids(ctx, &req)
 | |
| 		},
 | |
| 		"Pause": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
 | |
| 			var req PauseRequest
 | |
| 			if err := unmarshal(&req); err != nil {
 | |
| 				return nil, err
 | |
| 			}
 | |
| 			return svc.Pause(ctx, &req)
 | |
| 		},
 | |
| 		"Resume": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
 | |
| 			var req ResumeRequest
 | |
| 			if err := unmarshal(&req); err != nil {
 | |
| 				return nil, err
 | |
| 			}
 | |
| 			return svc.Resume(ctx, &req)
 | |
| 		},
 | |
| 		"Checkpoint": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
 | |
| 			var req CheckpointTaskRequest
 | |
| 			if err := unmarshal(&req); err != nil {
 | |
| 				return nil, err
 | |
| 			}
 | |
| 			return svc.Checkpoint(ctx, &req)
 | |
| 		},
 | |
| 		"Kill": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
 | |
| 			var req KillRequest
 | |
| 			if err := unmarshal(&req); err != nil {
 | |
| 				return nil, err
 | |
| 			}
 | |
| 			return svc.Kill(ctx, &req)
 | |
| 		},
 | |
| 		"Exec": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
 | |
| 			var req ExecProcessRequest
 | |
| 			if err := unmarshal(&req); err != nil {
 | |
| 				return nil, err
 | |
| 			}
 | |
| 			return svc.Exec(ctx, &req)
 | |
| 		},
 | |
| 		"ResizePty": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
 | |
| 			var req ResizePtyRequest
 | |
| 			if err := unmarshal(&req); err != nil {
 | |
| 				return nil, err
 | |
| 			}
 | |
| 			return svc.ResizePty(ctx, &req)
 | |
| 		},
 | |
| 		"CloseIO": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
 | |
| 			var req CloseIORequest
 | |
| 			if err := unmarshal(&req); err != nil {
 | |
| 				return nil, err
 | |
| 			}
 | |
| 			return svc.CloseIO(ctx, &req)
 | |
| 		},
 | |
| 		"Update": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
 | |
| 			var req UpdateTaskRequest
 | |
| 			if err := unmarshal(&req); err != nil {
 | |
| 				return nil, err
 | |
| 			}
 | |
| 			return svc.Update(ctx, &req)
 | |
| 		},
 | |
| 		"Wait": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
 | |
| 			var req WaitRequest
 | |
| 			if err := unmarshal(&req); err != nil {
 | |
| 				return nil, err
 | |
| 			}
 | |
| 			return svc.Wait(ctx, &req)
 | |
| 		},
 | |
| 		"Stats": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
 | |
| 			var req StatsRequest
 | |
| 			if err := unmarshal(&req); err != nil {
 | |
| 				return nil, err
 | |
| 			}
 | |
| 			return svc.Stats(ctx, &req)
 | |
| 		},
 | |
| 		"Connect": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
 | |
| 			var req ConnectRequest
 | |
| 			if err := unmarshal(&req); err != nil {
 | |
| 				return nil, err
 | |
| 			}
 | |
| 			return svc.Connect(ctx, &req)
 | |
| 		},
 | |
| 		"Shutdown": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
 | |
| 			var req ShutdownRequest
 | |
| 			if err := unmarshal(&req); err != nil {
 | |
| 				return nil, err
 | |
| 			}
 | |
| 			return svc.Shutdown(ctx, &req)
 | |
| 		},
 | |
| 	})
 | |
| }
 | |
| 
 | |
| type taskClient struct {
 | |
| 	client *ttrpc.Client
 | |
| }
 | |
| 
 | |
| func NewTaskClient(client *ttrpc.Client) TaskService {
 | |
| 	return &taskClient{
 | |
| 		client: client,
 | |
| 	}
 | |
| }
 | |
| 
 | |
| func (c *taskClient) State(ctx context.Context, req *StateRequest) (*StateResponse, error) {
 | |
| 	var resp StateResponse
 | |
| 	if err := c.client.Call(ctx, "containerd.task.v2.Task", "State", req, &resp); err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return &resp, nil
 | |
| }
 | |
| 
 | |
| func (c *taskClient) Create(ctx context.Context, req *CreateTaskRequest) (*CreateTaskResponse, error) {
 | |
| 	var resp CreateTaskResponse
 | |
| 	if err := c.client.Call(ctx, "containerd.task.v2.Task", "Create", req, &resp); err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return &resp, nil
 | |
| }
 | |
| 
 | |
| func (c *taskClient) Start(ctx context.Context, req *StartRequest) (*StartResponse, error) {
 | |
| 	var resp StartResponse
 | |
| 	if err := c.client.Call(ctx, "containerd.task.v2.Task", "Start", req, &resp); err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return &resp, nil
 | |
| }
 | |
| 
 | |
| func (c *taskClient) Delete(ctx context.Context, req *DeleteRequest) (*DeleteResponse, error) {
 | |
| 	var resp DeleteResponse
 | |
| 	if err := c.client.Call(ctx, "containerd.task.v2.Task", "Delete", req, &resp); err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return &resp, nil
 | |
| }
 | |
| 
 | |
| func (c *taskClient) Pids(ctx context.Context, req *PidsRequest) (*PidsResponse, error) {
 | |
| 	var resp PidsResponse
 | |
| 	if err := c.client.Call(ctx, "containerd.task.v2.Task", "Pids", req, &resp); err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return &resp, nil
 | |
| }
 | |
| 
 | |
| func (c *taskClient) Pause(ctx context.Context, req *PauseRequest) (*google_protobuf1.Empty, error) {
 | |
| 	var resp google_protobuf1.Empty
 | |
| 	if err := c.client.Call(ctx, "containerd.task.v2.Task", "Pause", req, &resp); err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return &resp, nil
 | |
| }
 | |
| 
 | |
| func (c *taskClient) Resume(ctx context.Context, req *ResumeRequest) (*google_protobuf1.Empty, error) {
 | |
| 	var resp google_protobuf1.Empty
 | |
| 	if err := c.client.Call(ctx, "containerd.task.v2.Task", "Resume", req, &resp); err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return &resp, nil
 | |
| }
 | |
| 
 | |
| func (c *taskClient) Checkpoint(ctx context.Context, req *CheckpointTaskRequest) (*google_protobuf1.Empty, error) {
 | |
| 	var resp google_protobuf1.Empty
 | |
| 	if err := c.client.Call(ctx, "containerd.task.v2.Task", "Checkpoint", req, &resp); err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return &resp, nil
 | |
| }
 | |
| 
 | |
| func (c *taskClient) Kill(ctx context.Context, req *KillRequest) (*google_protobuf1.Empty, error) {
 | |
| 	var resp google_protobuf1.Empty
 | |
| 	if err := c.client.Call(ctx, "containerd.task.v2.Task", "Kill", req, &resp); err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return &resp, nil
 | |
| }
 | |
| 
 | |
| func (c *taskClient) Exec(ctx context.Context, req *ExecProcessRequest) (*google_protobuf1.Empty, error) {
 | |
| 	var resp google_protobuf1.Empty
 | |
| 	if err := c.client.Call(ctx, "containerd.task.v2.Task", "Exec", req, &resp); err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return &resp, nil
 | |
| }
 | |
| 
 | |
| func (c *taskClient) ResizePty(ctx context.Context, req *ResizePtyRequest) (*google_protobuf1.Empty, error) {
 | |
| 	var resp google_protobuf1.Empty
 | |
| 	if err := c.client.Call(ctx, "containerd.task.v2.Task", "ResizePty", req, &resp); err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return &resp, nil
 | |
| }
 | |
| 
 | |
| func (c *taskClient) CloseIO(ctx context.Context, req *CloseIORequest) (*google_protobuf1.Empty, error) {
 | |
| 	var resp google_protobuf1.Empty
 | |
| 	if err := c.client.Call(ctx, "containerd.task.v2.Task", "CloseIO", req, &resp); err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return &resp, nil
 | |
| }
 | |
| 
 | |
| func (c *taskClient) Update(ctx context.Context, req *UpdateTaskRequest) (*google_protobuf1.Empty, error) {
 | |
| 	var resp google_protobuf1.Empty
 | |
| 	if err := c.client.Call(ctx, "containerd.task.v2.Task", "Update", req, &resp); err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return &resp, nil
 | |
| }
 | |
| 
 | |
| func (c *taskClient) Wait(ctx context.Context, req *WaitRequest) (*WaitResponse, error) {
 | |
| 	var resp WaitResponse
 | |
| 	if err := c.client.Call(ctx, "containerd.task.v2.Task", "Wait", req, &resp); err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return &resp, nil
 | |
| }
 | |
| 
 | |
| func (c *taskClient) Stats(ctx context.Context, req *StatsRequest) (*StatsResponse, error) {
 | |
| 	var resp StatsResponse
 | |
| 	if err := c.client.Call(ctx, "containerd.task.v2.Task", "Stats", req, &resp); err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return &resp, nil
 | |
| }
 | |
| 
 | |
| func (c *taskClient) Connect(ctx context.Context, req *ConnectRequest) (*ConnectResponse, error) {
 | |
| 	var resp ConnectResponse
 | |
| 	if err := c.client.Call(ctx, "containerd.task.v2.Task", "Connect", req, &resp); err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return &resp, nil
 | |
| }
 | |
| 
 | |
| func (c *taskClient) Shutdown(ctx context.Context, req *ShutdownRequest) (*google_protobuf1.Empty, error) {
 | |
| 	var resp google_protobuf1.Empty
 | |
| 	if err := c.client.Call(ctx, "containerd.task.v2.Task", "Shutdown", req, &resp); err != nil {
 | |
| 		return nil, err
 | |
| 	}
 | |
| 	return &resp, nil
 | |
| }
 | |
| func (m *CreateTaskRequest) Unmarshal(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return ErrIntOverflowShim
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= (uint64(b) & 0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: CreateTaskRequest: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: CreateTaskRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.ID = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		case 2:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Bundle", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Bundle = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		case 3:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Rootfs", wireType)
 | |
| 			}
 | |
| 			var msglen int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				msglen |= (int(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if msglen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + msglen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Rootfs = append(m.Rootfs, &containerd_types.Mount{})
 | |
| 			if err := m.Rootfs[len(m.Rootfs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			iNdEx = postIndex
 | |
| 		case 4:
 | |
| 			if wireType != 0 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Terminal", wireType)
 | |
| 			}
 | |
| 			var v int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				v |= (int(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			m.Terminal = bool(v != 0)
 | |
| 		case 5:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Stdin", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Stdin = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		case 6:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Stdout", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Stdout = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		case 7:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Stderr", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Stderr = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		case 8:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Checkpoint", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Checkpoint = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		case 9:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field ParentCheckpoint", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.ParentCheckpoint = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		case 10:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType)
 | |
| 			}
 | |
| 			var msglen int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				msglen |= (int(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if msglen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + msglen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			if m.Options == nil {
 | |
| 				m.Options = &google_protobuf.Any{}
 | |
| 			}
 | |
| 			if err := m.Options.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := skipShim(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if skippy < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *CreateTaskResponse) Unmarshal(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return ErrIntOverflowShim
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= (uint64(b) & 0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: CreateTaskResponse: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: CreateTaskResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 0 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType)
 | |
| 			}
 | |
| 			m.Pid = 0
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				m.Pid |= (uint32(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := skipShim(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if skippy < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *DeleteRequest) Unmarshal(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return ErrIntOverflowShim
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= (uint64(b) & 0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: DeleteRequest: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: DeleteRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.ID = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		case 2:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.ExecID = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := skipShim(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if skippy < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *DeleteResponse) Unmarshal(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return ErrIntOverflowShim
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= (uint64(b) & 0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: DeleteResponse: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: DeleteResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 0 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType)
 | |
| 			}
 | |
| 			m.Pid = 0
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				m.Pid |= (uint32(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 		case 2:
 | |
| 			if wireType != 0 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field ExitStatus", wireType)
 | |
| 			}
 | |
| 			m.ExitStatus = 0
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				m.ExitStatus |= (uint32(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 		case 3:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field ExitedAt", wireType)
 | |
| 			}
 | |
| 			var msglen int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				msglen |= (int(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if msglen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + msglen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			if err := types.StdTimeUnmarshal(&m.ExitedAt, dAtA[iNdEx:postIndex]); err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := skipShim(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if skippy < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *ExecProcessRequest) Unmarshal(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return ErrIntOverflowShim
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= (uint64(b) & 0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: ExecProcessRequest: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: ExecProcessRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.ID = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		case 2:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.ExecID = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		case 3:
 | |
| 			if wireType != 0 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Terminal", wireType)
 | |
| 			}
 | |
| 			var v int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				v |= (int(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			m.Terminal = bool(v != 0)
 | |
| 		case 4:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Stdin", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Stdin = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		case 5:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Stdout", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Stdout = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		case 6:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Stderr", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Stderr = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		case 7:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
 | |
| 			}
 | |
| 			var msglen int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				msglen |= (int(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if msglen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + msglen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			if m.Spec == nil {
 | |
| 				m.Spec = &google_protobuf.Any{}
 | |
| 			}
 | |
| 			if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := skipShim(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if skippy < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *ExecProcessResponse) Unmarshal(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return ErrIntOverflowShim
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= (uint64(b) & 0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: ExecProcessResponse: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: ExecProcessResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := skipShim(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if skippy < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *ResizePtyRequest) Unmarshal(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return ErrIntOverflowShim
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= (uint64(b) & 0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: ResizePtyRequest: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: ResizePtyRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.ID = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		case 2:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.ExecID = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		case 3:
 | |
| 			if wireType != 0 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Width", wireType)
 | |
| 			}
 | |
| 			m.Width = 0
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				m.Width |= (uint32(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 		case 4:
 | |
| 			if wireType != 0 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
 | |
| 			}
 | |
| 			m.Height = 0
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				m.Height |= (uint32(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := skipShim(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if skippy < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *StateRequest) Unmarshal(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return ErrIntOverflowShim
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= (uint64(b) & 0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: StateRequest: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: StateRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.ID = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		case 2:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.ExecID = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := skipShim(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if skippy < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *StateResponse) Unmarshal(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return ErrIntOverflowShim
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= (uint64(b) & 0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: StateResponse: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: StateResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.ID = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		case 2:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Bundle", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Bundle = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		case 3:
 | |
| 			if wireType != 0 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType)
 | |
| 			}
 | |
| 			m.Pid = 0
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				m.Pid |= (uint32(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 		case 4:
 | |
| 			if wireType != 0 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
 | |
| 			}
 | |
| 			m.Status = 0
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				m.Status |= (containerd_v1_types.Status(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 		case 5:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Stdin", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Stdin = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		case 6:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Stdout", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Stdout = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		case 7:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Stderr", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Stderr = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		case 8:
 | |
| 			if wireType != 0 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Terminal", wireType)
 | |
| 			}
 | |
| 			var v int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				v |= (int(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			m.Terminal = bool(v != 0)
 | |
| 		case 9:
 | |
| 			if wireType != 0 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field ExitStatus", wireType)
 | |
| 			}
 | |
| 			m.ExitStatus = 0
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				m.ExitStatus |= (uint32(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 		case 10:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field ExitedAt", wireType)
 | |
| 			}
 | |
| 			var msglen int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				msglen |= (int(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if msglen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + msglen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			if err := types.StdTimeUnmarshal(&m.ExitedAt, dAtA[iNdEx:postIndex]); err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			iNdEx = postIndex
 | |
| 		case 11:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.ExecID = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := skipShim(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if skippy < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *KillRequest) Unmarshal(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return ErrIntOverflowShim
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= (uint64(b) & 0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: KillRequest: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: KillRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.ID = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		case 2:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.ExecID = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		case 3:
 | |
| 			if wireType != 0 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Signal", wireType)
 | |
| 			}
 | |
| 			m.Signal = 0
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				m.Signal |= (uint32(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 		case 4:
 | |
| 			if wireType != 0 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field All", wireType)
 | |
| 			}
 | |
| 			var v int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				v |= (int(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			m.All = bool(v != 0)
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := skipShim(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if skippy < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *CloseIORequest) Unmarshal(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return ErrIntOverflowShim
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= (uint64(b) & 0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: CloseIORequest: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: CloseIORequest: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.ID = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		case 2:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.ExecID = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		case 3:
 | |
| 			if wireType != 0 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Stdin", wireType)
 | |
| 			}
 | |
| 			var v int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				v |= (int(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			m.Stdin = bool(v != 0)
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := skipShim(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if skippy < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *PidsRequest) Unmarshal(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return ErrIntOverflowShim
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= (uint64(b) & 0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: PidsRequest: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: PidsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.ID = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := skipShim(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if skippy < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *PidsResponse) Unmarshal(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return ErrIntOverflowShim
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= (uint64(b) & 0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: PidsResponse: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: PidsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Processes", wireType)
 | |
| 			}
 | |
| 			var msglen int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				msglen |= (int(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if msglen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + msglen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Processes = append(m.Processes, &containerd_v1_types.ProcessInfo{})
 | |
| 			if err := m.Processes[len(m.Processes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := skipShim(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if skippy < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *CheckpointTaskRequest) Unmarshal(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return ErrIntOverflowShim
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= (uint64(b) & 0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: CheckpointTaskRequest: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: CheckpointTaskRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.ID = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		case 2:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Path = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		case 3:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType)
 | |
| 			}
 | |
| 			var msglen int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				msglen |= (int(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if msglen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + msglen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			if m.Options == nil {
 | |
| 				m.Options = &google_protobuf.Any{}
 | |
| 			}
 | |
| 			if err := m.Options.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := skipShim(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if skippy < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *UpdateTaskRequest) Unmarshal(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return ErrIntOverflowShim
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= (uint64(b) & 0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: UpdateTaskRequest: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: UpdateTaskRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.ID = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		case 2:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType)
 | |
| 			}
 | |
| 			var msglen int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				msglen |= (int(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if msglen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + msglen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			if m.Resources == nil {
 | |
| 				m.Resources = &google_protobuf.Any{}
 | |
| 			}
 | |
| 			if err := m.Resources.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := skipShim(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if skippy < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *StartRequest) Unmarshal(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return ErrIntOverflowShim
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= (uint64(b) & 0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: StartRequest: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: StartRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.ID = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		case 2:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.ExecID = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := skipShim(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if skippy < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *StartResponse) Unmarshal(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return ErrIntOverflowShim
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= (uint64(b) & 0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: StartResponse: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: StartResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 0 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType)
 | |
| 			}
 | |
| 			m.Pid = 0
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				m.Pid |= (uint32(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := skipShim(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if skippy < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *WaitRequest) Unmarshal(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return ErrIntOverflowShim
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= (uint64(b) & 0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: WaitRequest: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: WaitRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.ID = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		case 2:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.ExecID = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := skipShim(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if skippy < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *WaitResponse) Unmarshal(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return ErrIntOverflowShim
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= (uint64(b) & 0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: WaitResponse: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: WaitResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 0 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field ExitStatus", wireType)
 | |
| 			}
 | |
| 			m.ExitStatus = 0
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				m.ExitStatus |= (uint32(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 		case 2:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field ExitedAt", wireType)
 | |
| 			}
 | |
| 			var msglen int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				msglen |= (int(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if msglen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + msglen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			if err := types.StdTimeUnmarshal(&m.ExitedAt, dAtA[iNdEx:postIndex]); err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := skipShim(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if skippy < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *StatsRequest) Unmarshal(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return ErrIntOverflowShim
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= (uint64(b) & 0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: StatsRequest: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: StatsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.ID = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := skipShim(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if skippy < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *StatsResponse) Unmarshal(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return ErrIntOverflowShim
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= (uint64(b) & 0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: StatsResponse: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: StatsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Stats", wireType)
 | |
| 			}
 | |
| 			var msglen int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				msglen |= (int(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if msglen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + msglen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			if m.Stats == nil {
 | |
| 				m.Stats = &google_protobuf.Any{}
 | |
| 			}
 | |
| 			if err := m.Stats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := skipShim(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if skippy < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *ConnectRequest) Unmarshal(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return ErrIntOverflowShim
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= (uint64(b) & 0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: ConnectRequest: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: ConnectRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.ID = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := skipShim(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if skippy < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *ConnectResponse) Unmarshal(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return ErrIntOverflowShim
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= (uint64(b) & 0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: ConnectResponse: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: ConnectResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 0 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field ShimPid", wireType)
 | |
| 			}
 | |
| 			m.ShimPid = 0
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				m.ShimPid |= (uint32(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 		case 2:
 | |
| 			if wireType != 0 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field TaskPid", wireType)
 | |
| 			}
 | |
| 			m.TaskPid = 0
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				m.TaskPid |= (uint32(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 		case 3:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Version = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := skipShim(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if skippy < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *ShutdownRequest) Unmarshal(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return ErrIntOverflowShim
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= (uint64(b) & 0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: ShutdownRequest: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: ShutdownRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.ID = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		case 2:
 | |
| 			if wireType != 0 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Now", wireType)
 | |
| 			}
 | |
| 			var v int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				v |= (int(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			m.Now = bool(v != 0)
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := skipShim(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if skippy < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *PauseRequest) Unmarshal(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return ErrIntOverflowShim
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= (uint64(b) & 0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: PauseRequest: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: PauseRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.ID = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := skipShim(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if skippy < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func (m *ResumeRequest) Unmarshal(dAtA []byte) error {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		preIndex := iNdEx
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return ErrIntOverflowShim
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= (uint64(b) & 0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		fieldNum := int32(wire >> 3)
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		if wireType == 4 {
 | |
| 			return fmt.Errorf("proto: ResumeRequest: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: ResumeRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				stringLen |= (uint64(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			intStringLen := int(stringLen)
 | |
| 			if intStringLen < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.ID = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := skipShim(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if skippy < 0 {
 | |
| 				return ErrInvalidLengthShim
 | |
| 			}
 | |
| 			if (iNdEx + skippy) > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			iNdEx += skippy
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	if iNdEx > l {
 | |
| 		return io.ErrUnexpectedEOF
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| func skipShim(dAtA []byte) (n int, err error) {
 | |
| 	l := len(dAtA)
 | |
| 	iNdEx := 0
 | |
| 	for iNdEx < l {
 | |
| 		var wire uint64
 | |
| 		for shift := uint(0); ; shift += 7 {
 | |
| 			if shift >= 64 {
 | |
| 				return 0, ErrIntOverflowShim
 | |
| 			}
 | |
| 			if iNdEx >= l {
 | |
| 				return 0, io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			b := dAtA[iNdEx]
 | |
| 			iNdEx++
 | |
| 			wire |= (uint64(b) & 0x7F) << shift
 | |
| 			if b < 0x80 {
 | |
| 				break
 | |
| 			}
 | |
| 		}
 | |
| 		wireType := int(wire & 0x7)
 | |
| 		switch wireType {
 | |
| 		case 0:
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return 0, ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return 0, io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				iNdEx++
 | |
| 				if dAtA[iNdEx-1] < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			return iNdEx, nil
 | |
| 		case 1:
 | |
| 			iNdEx += 8
 | |
| 			return iNdEx, nil
 | |
| 		case 2:
 | |
| 			var length int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return 0, ErrIntOverflowShim
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return 0, io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				length |= (int(b) & 0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			iNdEx += length
 | |
| 			if length < 0 {
 | |
| 				return 0, ErrInvalidLengthShim
 | |
| 			}
 | |
| 			return iNdEx, nil
 | |
| 		case 3:
 | |
| 			for {
 | |
| 				var innerWire uint64
 | |
| 				var start int = iNdEx
 | |
| 				for shift := uint(0); ; shift += 7 {
 | |
| 					if shift >= 64 {
 | |
| 						return 0, ErrIntOverflowShim
 | |
| 					}
 | |
| 					if iNdEx >= l {
 | |
| 						return 0, io.ErrUnexpectedEOF
 | |
| 					}
 | |
| 					b := dAtA[iNdEx]
 | |
| 					iNdEx++
 | |
| 					innerWire |= (uint64(b) & 0x7F) << shift
 | |
| 					if b < 0x80 {
 | |
| 						break
 | |
| 					}
 | |
| 				}
 | |
| 				innerWireType := int(innerWire & 0x7)
 | |
| 				if innerWireType == 4 {
 | |
| 					break
 | |
| 				}
 | |
| 				next, err := skipShim(dAtA[start:])
 | |
| 				if err != nil {
 | |
| 					return 0, err
 | |
| 				}
 | |
| 				iNdEx = start + next
 | |
| 			}
 | |
| 			return iNdEx, nil
 | |
| 		case 4:
 | |
| 			return iNdEx, nil
 | |
| 		case 5:
 | |
| 			iNdEx += 4
 | |
| 			return iNdEx, nil
 | |
| 		default:
 | |
| 			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
 | |
| 		}
 | |
| 	}
 | |
| 	panic("unreachable")
 | |
| }
 | |
| 
 | |
| var (
 | |
| 	ErrInvalidLengthShim = fmt.Errorf("proto: negative length found during unmarshaling")
 | |
| 	ErrIntOverflowShim   = fmt.Errorf("proto: integer overflow")
 | |
| )
 | |
| 
 | |
| func init() {
 | |
| 	proto.RegisterFile("github.com/containerd/containerd/runtime/v2/task/shim.proto", fileDescriptorShim)
 | |
| }
 | |
| 
 | |
| var fileDescriptorShim = []byte{
 | |
| 	// 1246 bytes of a gzipped FileDescriptorProto
 | |
| 	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x58, 0x5d, 0x6f, 0x1b, 0x45,
 | |
| 	0x17, 0xee, 0xfa, 0x63, 0x6d, 0x1f, 0xd7, 0x69, 0x3a, 0x6f, 0x9a, 0x77, 0xeb, 0x4a, 0xb6, 0xbb,
 | |
| 	0xa5, 0xc1, 0x80, 0x64, 0x0b, 0x57, 0x70, 0x41, 0x24, 0x50, 0xbe, 0xa8, 0x4c, 0x0b, 0x89, 0xb6,
 | |
| 	0x45, 0x45, 0xdc, 0x58, 0x1b, 0xef, 0xc4, 0x5e, 0xc5, 0xde, 0x59, 0x76, 0x66, 0xf3, 0x81, 0x84,
 | |
| 	0xc4, 0x15, 0x17, 0x5c, 0xf1, 0xb3, 0x72, 0x89, 0xc4, 0x0d, 0x37, 0x04, 0xea, 0x7f, 0xc0, 0x3f,
 | |
| 	0x40, 0xf3, 0xe1, 0x78, 0xed, 0xec, 0xda, 0x49, 0xe5, 0x9b, 0x68, 0xce, 0xce, 0x33, 0x67, 0xe6,
 | |
| 	0x9c, 0x79, 0xce, 0x73, 0x26, 0x86, 0xcd, 0x9e, 0xcb, 0xfa, 0xe1, 0x61, 0xa3, 0x4b, 0x86, 0xcd,
 | |
| 	0x2e, 0xf1, 0x98, 0xed, 0x7a, 0x38, 0x70, 0xa2, 0xc3, 0x20, 0xf4, 0x98, 0x3b, 0xc4, 0xcd, 0x93,
 | |
| 	0x56, 0x93, 0xd9, 0xf4, 0xb8, 0x49, 0xfb, 0xee, 0xb0, 0xe1, 0x07, 0x84, 0x11, 0x84, 0x26, 0xb0,
 | |
| 	0x06, 0x9f, 0x6b, 0x9c, 0xb4, 0xca, 0x0f, 0x7b, 0x84, 0xf4, 0x06, 0xb8, 0x29, 0x10, 0x87, 0xe1,
 | |
| 	0x51, 0xd3, 0xf6, 0xce, 0x25, 0xbc, 0xfc, 0x68, 0x76, 0x0a, 0x0f, 0x7d, 0x36, 0x9e, 0x5c, 0xeb,
 | |
| 	0x91, 0x1e, 0x11, 0xc3, 0x26, 0x1f, 0xa9, 0xaf, 0xd5, 0xd9, 0x25, 0xfc, 0x28, 0x94, 0xd9, 0x43,
 | |
| 	0x5f, 0x01, 0x3e, 0x5d, 0x78, 0x7e, 0xdb, 0x77, 0x9b, 0xec, 0xdc, 0xc7, 0xb4, 0x39, 0x24, 0xa1,
 | |
| 	0xc7, 0xd4, 0xba, 0xcf, 0x6e, 0xb1, 0x4e, 0x84, 0x2d, 0xe2, 0x13, 0x6b, 0xcd, 0x3f, 0x52, 0x70,
 | |
| 	0x7f, 0x27, 0xc0, 0x36, 0xc3, 0xaf, 0x6d, 0x7a, 0x6c, 0xe1, 0x1f, 0x42, 0x4c, 0x19, 0x5a, 0x87,
 | |
| 	0x94, 0xeb, 0x18, 0x5a, 0x4d, 0xab, 0x17, 0xb6, 0xf5, 0xd1, 0x65, 0x35, 0xd5, 0xde, 0xb5, 0x52,
 | |
| 	0xae, 0x83, 0xd6, 0x41, 0x3f, 0x0c, 0x3d, 0x67, 0x80, 0x8d, 0x14, 0x9f, 0xb3, 0x94, 0x85, 0x9a,
 | |
| 	0xa0, 0x07, 0x84, 0xb0, 0x23, 0x6a, 0xa4, 0x6b, 0xe9, 0x7a, 0xb1, 0xf5, 0xff, 0x46, 0x34, 0x9b,
 | |
| 	0x7c, 0xe3, 0xc6, 0xd7, 0xfc, 0xc0, 0x96, 0x82, 0xa1, 0x32, 0xe4, 0x19, 0x0e, 0x86, 0xae, 0x67,
 | |
| 	0x0f, 0x8c, 0x4c, 0x4d, 0xab, 0xe7, 0xad, 0x2b, 0x1b, 0xad, 0x41, 0x96, 0x32, 0xc7, 0xf5, 0x8c,
 | |
| 	0xac, 0xd8, 0x43, 0x1a, 0x7c, 0x6b, 0xca, 0x1c, 0x12, 0x32, 0x43, 0x97, 0x5b, 0x4b, 0x4b, 0x7d,
 | |
| 	0xc7, 0x41, 0x60, 0xe4, 0xae, 0xbe, 0xe3, 0x20, 0x40, 0x15, 0x80, 0x6e, 0x1f, 0x77, 0x8f, 0x7d,
 | |
| 	0xe2, 0x7a, 0xcc, 0xc8, 0x8b, 0xb9, 0xc8, 0x17, 0xf4, 0x11, 0xdc, 0xf7, 0xed, 0x00, 0x7b, 0xac,
 | |
| 	0x13, 0x81, 0x15, 0x04, 0x6c, 0x55, 0x4e, 0xec, 0x4c, 0xc0, 0x0d, 0xc8, 0x11, 0x9f, 0xb9, 0xc4,
 | |
| 	0xa3, 0x06, 0xd4, 0xb4, 0x7a, 0xb1, 0xb5, 0xd6, 0x90, 0x97, 0xd9, 0x18, 0x5f, 0x66, 0x63, 0xcb,
 | |
| 	0x3b, 0xb7, 0xc6, 0x20, 0x73, 0x03, 0x50, 0x34, 0xa9, 0xd4, 0x27, 0x1e, 0xc5, 0x68, 0x15, 0xd2,
 | |
| 	0xbe, 0x4a, 0x6b, 0xc9, 0xe2, 0x43, 0xf3, 0x25, 0x94, 0x76, 0xf1, 0x00, 0x33, 0xbc, 0x28, 0xf1,
 | |
| 	0x4f, 0x20, 0x87, 0xcf, 0x70, 0xb7, 0xe3, 0x3a, 0x32, 0xf3, 0xdb, 0x30, 0xba, 0xac, 0xea, 0x7b,
 | |
| 	0x67, 0xb8, 0xdb, 0xde, 0xb5, 0x74, 0x3e, 0xd5, 0x76, 0xcc, 0x5f, 0x34, 0x58, 0x19, 0xbb, 0x4b,
 | |
| 	0xda, 0x12, 0x55, 0xa1, 0x88, 0xcf, 0x5c, 0xd6, 0xa1, 0xcc, 0x66, 0x21, 0x15, 0xde, 0x4a, 0x16,
 | |
| 	0xf0, 0x4f, 0xaf, 0xc4, 0x17, 0xb4, 0x05, 0x05, 0x6e, 0x61, 0xa7, 0x63, 0x33, 0x23, 0x2d, 0xa2,
 | |
| 	0x2d, 0x5f, 0x8b, 0xf6, 0xf5, 0x98, 0xba, 0xdb, 0xf9, 0x8b, 0xcb, 0xea, 0x9d, 0xdf, 0xfe, 0xae,
 | |
| 	0x6a, 0x56, 0x5e, 0x2e, 0xdb, 0x62, 0xe6, 0x5f, 0x1a, 0x20, 0x7e, 0xb6, 0x83, 0x80, 0x74, 0x31,
 | |
| 	0xa5, 0xcb, 0x08, 0x6e, 0x8a, 0x31, 0xe9, 0x24, 0xc6, 0x64, 0xe2, 0x19, 0x93, 0x4d, 0x60, 0x8c,
 | |
| 	0x3e, 0xc5, 0x98, 0x3a, 0x64, 0xa8, 0x8f, 0xbb, 0x82, 0x47, 0x49, 0x37, 0x2c, 0x10, 0xe6, 0x03,
 | |
| 	0xf8, 0xdf, 0x54, 0x78, 0x32, 0xd9, 0xe6, 0x4f, 0xb0, 0x6a, 0x61, 0xea, 0xfe, 0x88, 0x0f, 0xd8,
 | |
| 	0xf9, 0x52, 0x62, 0x5e, 0x83, 0xec, 0xa9, 0xeb, 0xb0, 0xbe, 0x08, 0xb8, 0x64, 0x49, 0x83, 0x9f,
 | |
| 	0xbf, 0x8f, 0xdd, 0x5e, 0x9f, 0x89, 0x70, 0x4b, 0x96, 0xb2, 0xcc, 0x17, 0x70, 0x97, 0x5f, 0xe1,
 | |
| 	0x72, 0xb8, 0xf4, 0x6f, 0x0a, 0x4a, 0xca, 0x9b, 0xa2, 0xd2, 0x6d, 0x35, 0x41, 0x51, 0x2f, 0x3d,
 | |
| 	0xa1, 0xde, 0x33, 0x9e, 0x78, 0xc1, 0x3a, 0x7e, 0xf0, 0x95, 0xd6, 0xa3, 0xa8, 0x4a, 0x9c, 0x7c,
 | |
| 	0xac, 0x84, 0x42, 0xd2, 0xd0, 0x52, 0xd0, 0x25, 0xa9, 0x41, 0x94, 0x3d, 0xf9, 0x19, 0xf6, 0xcc,
 | |
| 	0x54, 0x44, 0x61, 0x7e, 0x45, 0xc0, 0xbb, 0x54, 0x44, 0x34, 0xe7, 0xc5, 0xc4, 0x9c, 0x33, 0x28,
 | |
| 	0xbe, 0x70, 0x07, 0x83, 0xa5, 0x50, 0x87, 0x27, 0xc2, 0xed, 0x8d, 0x8b, 0xa5, 0x64, 0x29, 0x8b,
 | |
| 	0xdf, 0x8a, 0x3d, 0x18, 0x6b, 0x2e, 0x1f, 0x9a, 0x5d, 0x58, 0xd9, 0x19, 0x10, 0x8a, 0xdb, 0xfb,
 | |
| 	0xcb, 0xe2, 0xac, 0xbc, 0x2f, 0x59, 0xa4, 0xd2, 0x30, 0x9f, 0x42, 0xf1, 0xc0, 0x75, 0x16, 0x29,
 | |
| 	0x81, 0xf9, 0x0d, 0xdc, 0x95, 0x30, 0xc5, 0xb9, 0xcf, 0xa1, 0xe0, 0xcb, 0x22, 0xc3, 0xd4, 0xd0,
 | |
| 	0x44, 0x6b, 0xa9, 0xc5, 0x92, 0x46, 0x95, 0x62, 0xdb, 0x3b, 0x22, 0xd6, 0x64, 0x89, 0x49, 0xe1,
 | |
| 	0xc1, 0x44, 0xc5, 0x6f, 0xd2, 0xe0, 0x10, 0x64, 0x7c, 0x9b, 0xf5, 0x15, 0x95, 0xc5, 0x38, 0x2a,
 | |
| 	0xfe, 0xe9, 0x9b, 0x88, 0x7f, 0x07, 0xee, 0x7f, 0xeb, 0x3b, 0x37, 0xec, 0xa8, 0x2d, 0x28, 0x04,
 | |
| 	0x98, 0x92, 0x30, 0xe8, 0x62, 0x29, 0xc6, 0x49, 0xee, 0x27, 0x30, 0x55, 0xe8, 0x01, 0x5b, 0x4a,
 | |
| 	0xa1, 0x3f, 0x16, 0x75, 0xce, 0x9d, 0x25, 0x76, 0xa9, 0xaf, 0xa0, 0xf8, 0xc6, 0x76, 0x97, 0xb3,
 | |
| 	0x5d, 0x00, 0x77, 0xa5, 0x2f, 0xb5, 0xdb, 0x4c, 0xf1, 0x69, 0xf3, 0x8b, 0x2f, 0xf5, 0x4e, 0xed,
 | |
| 	0x68, 0x43, 0x0a, 0xe3, 0x42, 0xf6, 0x6d, 0x4a, 0xc9, 0x9b, 0xd0, 0xef, 0x43, 0xce, 0x65, 0x9b,
 | |
| 	0xc9, 0x63, 0x25, 0x5d, 0x8c, 0x84, 0x98, 0x75, 0x58, 0xd9, 0x21, 0x9e, 0x87, 0xbb, 0x8b, 0xf2,
 | |
| 	0x64, 0xda, 0x70, 0xef, 0x0a, 0xa9, 0x36, 0x7a, 0x08, 0x79, 0xfe, 0x14, 0xed, 0x4c, 0x12, 0x9f,
 | |
| 	0xe3, 0xf6, 0x81, 0xeb, 0xf0, 0x29, 0xfe, 0x5c, 0x13, 0x53, 0xb2, 0x59, 0xe7, 0xb8, 0xcd, 0xa7,
 | |
| 	0x0c, 0xc8, 0x9d, 0xe0, 0x80, 0xba, 0x44, 0x16, 0x5b, 0xc1, 0x1a, 0x9b, 0xe6, 0x26, 0xdc, 0x7b,
 | |
| 	0xd5, 0x0f, 0x99, 0x43, 0x4e, 0xbd, 0x45, 0xb7, 0xb6, 0x0a, 0x69, 0x8f, 0x9c, 0x0a, 0xd7, 0x79,
 | |
| 	0x8b, 0x0f, 0x79, 0xba, 0x0e, 0xec, 0x90, 0x2e, 0xea, 0x23, 0xe6, 0xfb, 0x50, 0xb2, 0x30, 0x0d,
 | |
| 	0x87, 0x8b, 0x80, 0xad, 0x5f, 0x01, 0x32, 0xbc, 0x16, 0xd0, 0x4b, 0xc8, 0x8a, 0x9e, 0x82, 0xa6,
 | |
| 	0x8a, 0x58, 0xbd, 0xb6, 0x1b, 0xd1, 0xe6, 0x55, 0x7e, 0x3c, 0x07, 0xa1, 0x92, 0xf6, 0x06, 0x74,
 | |
| 	0xf9, 0xc8, 0x42, 0x4f, 0xe3, 0xc0, 0xd7, 0x5e, 0xb5, 0xe5, 0x8d, 0x45, 0x30, 0xe5, 0x58, 0x1e,
 | |
| 	0x33, 0x60, 0x89, 0xc7, 0xbc, 0x2a, 0xbd, 0xc4, 0x63, 0x46, 0xea, 0x69, 0x1f, 0x74, 0xf9, 0x28,
 | |
| 	0x43, 0xb1, 0xe0, 0xa9, 0xf7, 0x5f, 0xd9, 0x9c, 0x07, 0x51, 0x0e, 0xdb, 0x90, 0xe1, 0x22, 0x89,
 | |
| 	0xaa, 0x71, 0xd8, 0x88, 0xca, 0x96, 0x6b, 0xc9, 0x00, 0xe5, 0x6a, 0x0b, 0xb2, 0xe2, 0xaa, 0xe3,
 | |
| 	0x23, 0x8d, 0xb2, 0xa0, 0xbc, 0x7e, 0x8d, 0xfc, 0x7b, 0xfc, 0x3f, 0x1e, 0xb4, 0x03, 0xba, 0x64,
 | |
| 	0x41, 0x7c, 0x78, 0x53, 0x0c, 0x49, 0x74, 0xb2, 0x0f, 0x10, 0x79, 0x6d, 0x7f, 0x10, 0x7b, 0x4f,
 | |
| 	0x71, 0x3a, 0x9e, 0xe8, 0xf0, 0x0b, 0xc8, 0xf0, 0x56, 0x1a, 0x9f, 0xa3, 0x48, 0x93, 0x4d, 0x74,
 | |
| 	0xf0, 0x25, 0x64, 0xb8, 0x72, 0xa1, 0x58, 0xce, 0x5c, 0x7f, 0xdb, 0x26, 0xfa, 0x69, 0x43, 0xe1,
 | |
| 	0xea, 0x4d, 0x88, 0xde, 0x4b, 0xc8, 0xd0, 0xd4, 0x93, 0x31, 0xd1, 0xd5, 0x1e, 0xe4, 0x54, 0xa3,
 | |
| 	0x46, 0xb1, 0x34, 0x99, 0xee, 0xe2, 0x89, 0x6e, 0x9e, 0x83, 0x2e, 0xdb, 0x53, 0x7c, 0xd9, 0x5c,
 | |
| 	0x6b, 0x5d, 0x73, 0x42, 0xcb, 0x70, 0x29, 0x8f, 0xcf, 0x71, 0xa4, 0x61, 0xc4, 0xf3, 0x70, 0xaa,
 | |
| 	0x0b, 0x28, 0x61, 0xa0, 0xc9, 0xc2, 0x40, 0x17, 0x0a, 0xc3, 0x84, 0xd5, 0x16, 0xe4, 0x94, 0xc0,
 | |
| 	0x26, 0x24, 0x6a, 0x4a, 0xa7, 0xcb, 0x4f, 0xe6, 0x62, 0x94, 0xcf, 0xe7, 0x90, 0x1f, 0x2b, 0x2a,
 | |
| 	0x8a, 0x5d, 0x30, 0xa3, 0xb7, 0x49, 0x59, 0xdb, 0xde, 0xbf, 0x78, 0x5b, 0xb9, 0xf3, 0xe7, 0xdb,
 | |
| 	0xca, 0x9d, 0x9f, 0x47, 0x15, 0xed, 0x62, 0x54, 0xd1, 0x7e, 0x1f, 0x55, 0xb4, 0x7f, 0x46, 0x15,
 | |
| 	0xed, 0xfb, 0x4f, 0x6e, 0xfb, 0xf3, 0xc5, 0x26, 0xff, 0xf3, 0x5d, 0xea, 0x50, 0x17, 0x5b, 0x3c,
 | |
| 	0xfb, 0x2f, 0x00, 0x00, 0xff, 0xff, 0x19, 0x17, 0x87, 0x57, 0x00, 0x11, 0x00, 0x00,
 | |
| }
 | 
