containerd/api/runtime/sandbox/v1/sandbox.pb.go
Maksym Pavlenko e2fd25f3d8 Move runtime v2 proto
Move runtime v2 protos to api/runtime package.

Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2022-04-19 17:59:33 -07:00

3710 lines
95 KiB
Go

// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: github.com/containerd/containerd/api/runtime/sandbox/v1/sandbox.proto
package sandbox
import (
context "context"
fmt "fmt"
types "github.com/containerd/containerd/api/types"
github_com_containerd_ttrpc "github.com/containerd/ttrpc"
proto "github.com/gogo/protobuf/proto"
github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
types1 "github.com/gogo/protobuf/types"
io "io"
math "math"
math_bits "math/bits"
reflect "reflect"
strings "strings"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// 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.GoGoProtoPackageIsVersion3 // please upgrade the proto package
type StartSandboxRequest struct {
SandboxID string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
BundlePath string `protobuf:"bytes,2,opt,name=bundle_path,json=bundlePath,proto3" json:"bundle_path,omitempty"`
Rootfs []*types.Mount `protobuf:"bytes,3,rep,name=rootfs,proto3" json:"rootfs,omitempty"`
Options *types1.Any `protobuf:"bytes,4,opt,name=options,proto3" json:"options,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StartSandboxRequest) Reset() { *m = StartSandboxRequest{} }
func (*StartSandboxRequest) ProtoMessage() {}
func (*StartSandboxRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_bd1ee4d461c4cb0a, []int{0}
}
func (m *StartSandboxRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *StartSandboxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_StartSandboxRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *StartSandboxRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_StartSandboxRequest.Merge(m, src)
}
func (m *StartSandboxRequest) XXX_Size() int {
return m.Size()
}
func (m *StartSandboxRequest) XXX_DiscardUnknown() {
xxx_messageInfo_StartSandboxRequest.DiscardUnknown(m)
}
var xxx_messageInfo_StartSandboxRequest proto.InternalMessageInfo
type StartSandboxResponse struct {
Pid uint32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StartSandboxResponse) Reset() { *m = StartSandboxResponse{} }
func (*StartSandboxResponse) ProtoMessage() {}
func (*StartSandboxResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_bd1ee4d461c4cb0a, []int{1}
}
func (m *StartSandboxResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *StartSandboxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_StartSandboxResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *StartSandboxResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_StartSandboxResponse.Merge(m, src)
}
func (m *StartSandboxResponse) XXX_Size() int {
return m.Size()
}
func (m *StartSandboxResponse) XXX_DiscardUnknown() {
xxx_messageInfo_StartSandboxResponse.DiscardUnknown(m)
}
var xxx_messageInfo_StartSandboxResponse proto.InternalMessageInfo
type StopSandboxRequest struct {
SandboxID string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
TimeoutSecs uint32 `protobuf:"varint,2,opt,name=timeout_secs,json=timeoutSecs,proto3" json:"timeout_secs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StopSandboxRequest) Reset() { *m = StopSandboxRequest{} }
func (*StopSandboxRequest) ProtoMessage() {}
func (*StopSandboxRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_bd1ee4d461c4cb0a, []int{2}
}
func (m *StopSandboxRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *StopSandboxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_StopSandboxRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *StopSandboxRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_StopSandboxRequest.Merge(m, src)
}
func (m *StopSandboxRequest) XXX_Size() int {
return m.Size()
}
func (m *StopSandboxRequest) XXX_DiscardUnknown() {
xxx_messageInfo_StopSandboxRequest.DiscardUnknown(m)
}
var xxx_messageInfo_StopSandboxRequest proto.InternalMessageInfo
type StopSandboxResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StopSandboxResponse) Reset() { *m = StopSandboxResponse{} }
func (*StopSandboxResponse) ProtoMessage() {}
func (*StopSandboxResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_bd1ee4d461c4cb0a, []int{3}
}
func (m *StopSandboxResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *StopSandboxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_StopSandboxResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *StopSandboxResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_StopSandboxResponse.Merge(m, src)
}
func (m *StopSandboxResponse) XXX_Size() int {
return m.Size()
}
func (m *StopSandboxResponse) XXX_DiscardUnknown() {
xxx_messageInfo_StopSandboxResponse.DiscardUnknown(m)
}
var xxx_messageInfo_StopSandboxResponse proto.InternalMessageInfo
type UpdateSandboxRequest struct {
SandboxID string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
Resources *types1.Any `protobuf:"bytes,2,opt,name=resources,proto3" json:"resources,omitempty"`
Annotations map[string]string `protobuf:"bytes,3,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateSandboxRequest) Reset() { *m = UpdateSandboxRequest{} }
func (*UpdateSandboxRequest) ProtoMessage() {}
func (*UpdateSandboxRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_bd1ee4d461c4cb0a, []int{4}
}
func (m *UpdateSandboxRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *UpdateSandboxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_UpdateSandboxRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *UpdateSandboxRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateSandboxRequest.Merge(m, src)
}
func (m *UpdateSandboxRequest) XXX_Size() int {
return m.Size()
}
func (m *UpdateSandboxRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateSandboxRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateSandboxRequest proto.InternalMessageInfo
type WaitSandboxRequest struct {
SandboxID string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WaitSandboxRequest) Reset() { *m = WaitSandboxRequest{} }
func (*WaitSandboxRequest) ProtoMessage() {}
func (*WaitSandboxRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_bd1ee4d461c4cb0a, []int{5}
}
func (m *WaitSandboxRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *WaitSandboxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_WaitSandboxRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *WaitSandboxRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_WaitSandboxRequest.Merge(m, src)
}
func (m *WaitSandboxRequest) XXX_Size() int {
return m.Size()
}
func (m *WaitSandboxRequest) XXX_DiscardUnknown() {
xxx_messageInfo_WaitSandboxRequest.DiscardUnknown(m)
}
var xxx_messageInfo_WaitSandboxRequest proto.InternalMessageInfo
type WaitSandboxResponse struct {
ExitStatus uint32 `protobuf:"varint,1,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"`
ExitedAt *types1.Timestamp `protobuf:"bytes,2,opt,name=exited_at,json=exitedAt,proto3" json:"exited_at,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WaitSandboxResponse) Reset() { *m = WaitSandboxResponse{} }
func (*WaitSandboxResponse) ProtoMessage() {}
func (*WaitSandboxResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_bd1ee4d461c4cb0a, []int{6}
}
func (m *WaitSandboxResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *WaitSandboxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_WaitSandboxResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *WaitSandboxResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_WaitSandboxResponse.Merge(m, src)
}
func (m *WaitSandboxResponse) XXX_Size() int {
return m.Size()
}
func (m *WaitSandboxResponse) XXX_DiscardUnknown() {
xxx_messageInfo_WaitSandboxResponse.DiscardUnknown(m)
}
var xxx_messageInfo_WaitSandboxResponse proto.InternalMessageInfo
type UpdateSandboxResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateSandboxResponse) Reset() { *m = UpdateSandboxResponse{} }
func (*UpdateSandboxResponse) ProtoMessage() {}
func (*UpdateSandboxResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_bd1ee4d461c4cb0a, []int{7}
}
func (m *UpdateSandboxResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *UpdateSandboxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_UpdateSandboxResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *UpdateSandboxResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateSandboxResponse.Merge(m, src)
}
func (m *UpdateSandboxResponse) XXX_Size() int {
return m.Size()
}
func (m *UpdateSandboxResponse) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateSandboxResponse.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateSandboxResponse proto.InternalMessageInfo
type SandboxStatusRequest struct {
SandboxID string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SandboxStatusRequest) Reset() { *m = SandboxStatusRequest{} }
func (*SandboxStatusRequest) ProtoMessage() {}
func (*SandboxStatusRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_bd1ee4d461c4cb0a, []int{8}
}
func (m *SandboxStatusRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *SandboxStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_SandboxStatusRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *SandboxStatusRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SandboxStatusRequest.Merge(m, src)
}
func (m *SandboxStatusRequest) XXX_Size() int {
return m.Size()
}
func (m *SandboxStatusRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SandboxStatusRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SandboxStatusRequest proto.InternalMessageInfo
type PauseSandboxRequest struct {
SandboxID string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PauseSandboxRequest) Reset() { *m = PauseSandboxRequest{} }
func (*PauseSandboxRequest) ProtoMessage() {}
func (*PauseSandboxRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_bd1ee4d461c4cb0a, []int{9}
}
func (m *PauseSandboxRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *PauseSandboxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_PauseSandboxRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *PauseSandboxRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_PauseSandboxRequest.Merge(m, src)
}
func (m *PauseSandboxRequest) XXX_Size() int {
return m.Size()
}
func (m *PauseSandboxRequest) XXX_DiscardUnknown() {
xxx_messageInfo_PauseSandboxRequest.DiscardUnknown(m)
}
var xxx_messageInfo_PauseSandboxRequest proto.InternalMessageInfo
type PauseSandboxResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PauseSandboxResponse) Reset() { *m = PauseSandboxResponse{} }
func (*PauseSandboxResponse) ProtoMessage() {}
func (*PauseSandboxResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_bd1ee4d461c4cb0a, []int{10}
}
func (m *PauseSandboxResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *PauseSandboxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_PauseSandboxResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *PauseSandboxResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_PauseSandboxResponse.Merge(m, src)
}
func (m *PauseSandboxResponse) XXX_Size() int {
return m.Size()
}
func (m *PauseSandboxResponse) XXX_DiscardUnknown() {
xxx_messageInfo_PauseSandboxResponse.DiscardUnknown(m)
}
var xxx_messageInfo_PauseSandboxResponse proto.InternalMessageInfo
type ResumeSandboxRequest struct {
SandboxID string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ResumeSandboxRequest) Reset() { *m = ResumeSandboxRequest{} }
func (*ResumeSandboxRequest) ProtoMessage() {}
func (*ResumeSandboxRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_bd1ee4d461c4cb0a, []int{11}
}
func (m *ResumeSandboxRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ResumeSandboxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ResumeSandboxRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *ResumeSandboxRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ResumeSandboxRequest.Merge(m, src)
}
func (m *ResumeSandboxRequest) XXX_Size() int {
return m.Size()
}
func (m *ResumeSandboxRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ResumeSandboxRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ResumeSandboxRequest proto.InternalMessageInfo
type ResumeSandboxResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ResumeSandboxResponse) Reset() { *m = ResumeSandboxResponse{} }
func (*ResumeSandboxResponse) ProtoMessage() {}
func (*ResumeSandboxResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_bd1ee4d461c4cb0a, []int{12}
}
func (m *ResumeSandboxResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ResumeSandboxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ResumeSandboxResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *ResumeSandboxResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ResumeSandboxResponse.Merge(m, src)
}
func (m *ResumeSandboxResponse) XXX_Size() int {
return m.Size()
}
func (m *ResumeSandboxResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ResumeSandboxResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ResumeSandboxResponse proto.InternalMessageInfo
type SandboxStatusResponse struct {
ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Pid uint32 `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"`
State string `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"`
ExitStatus uint32 `protobuf:"varint,4,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"`
ExitedAt *types1.Timestamp `protobuf:"bytes,5,opt,name=exited_at,json=exitedAt,proto3" json:"exited_at,omitempty"`
Extra *types1.Any `protobuf:"bytes,6,opt,name=extra,proto3" json:"extra,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SandboxStatusResponse) Reset() { *m = SandboxStatusResponse{} }
func (*SandboxStatusResponse) ProtoMessage() {}
func (*SandboxStatusResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_bd1ee4d461c4cb0a, []int{13}
}
func (m *SandboxStatusResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *SandboxStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_SandboxStatusResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *SandboxStatusResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_SandboxStatusResponse.Merge(m, src)
}
func (m *SandboxStatusResponse) XXX_Size() int {
return m.Size()
}
func (m *SandboxStatusResponse) XXX_DiscardUnknown() {
xxx_messageInfo_SandboxStatusResponse.DiscardUnknown(m)
}
var xxx_messageInfo_SandboxStatusResponse proto.InternalMessageInfo
type PingRequest struct {
SandboxID string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PingRequest) Reset() { *m = PingRequest{} }
func (*PingRequest) ProtoMessage() {}
func (*PingRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_bd1ee4d461c4cb0a, []int{14}
}
func (m *PingRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *PingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_PingRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *PingRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_PingRequest.Merge(m, src)
}
func (m *PingRequest) XXX_Size() int {
return m.Size()
}
func (m *PingRequest) XXX_DiscardUnknown() {
xxx_messageInfo_PingRequest.DiscardUnknown(m)
}
var xxx_messageInfo_PingRequest proto.InternalMessageInfo
type PingResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PingResponse) Reset() { *m = PingResponse{} }
func (*PingResponse) ProtoMessage() {}
func (*PingResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_bd1ee4d461c4cb0a, []int{15}
}
func (m *PingResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *PingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_PingResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *PingResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_PingResponse.Merge(m, src)
}
func (m *PingResponse) XXX_Size() int {
return m.Size()
}
func (m *PingResponse) XXX_DiscardUnknown() {
xxx_messageInfo_PingResponse.DiscardUnknown(m)
}
var xxx_messageInfo_PingResponse proto.InternalMessageInfo
func init() {
proto.RegisterType((*StartSandboxRequest)(nil), "containerd.runtime.sandbox.v1.StartSandboxRequest")
proto.RegisterType((*StartSandboxResponse)(nil), "containerd.runtime.sandbox.v1.StartSandboxResponse")
proto.RegisterType((*StopSandboxRequest)(nil), "containerd.runtime.sandbox.v1.StopSandboxRequest")
proto.RegisterType((*StopSandboxResponse)(nil), "containerd.runtime.sandbox.v1.StopSandboxResponse")
proto.RegisterType((*UpdateSandboxRequest)(nil), "containerd.runtime.sandbox.v1.UpdateSandboxRequest")
proto.RegisterMapType((map[string]string)(nil), "containerd.runtime.sandbox.v1.UpdateSandboxRequest.AnnotationsEntry")
proto.RegisterType((*WaitSandboxRequest)(nil), "containerd.runtime.sandbox.v1.WaitSandboxRequest")
proto.RegisterType((*WaitSandboxResponse)(nil), "containerd.runtime.sandbox.v1.WaitSandboxResponse")
proto.RegisterType((*UpdateSandboxResponse)(nil), "containerd.runtime.sandbox.v1.UpdateSandboxResponse")
proto.RegisterType((*SandboxStatusRequest)(nil), "containerd.runtime.sandbox.v1.SandboxStatusRequest")
proto.RegisterType((*PauseSandboxRequest)(nil), "containerd.runtime.sandbox.v1.PauseSandboxRequest")
proto.RegisterType((*PauseSandboxResponse)(nil), "containerd.runtime.sandbox.v1.PauseSandboxResponse")
proto.RegisterType((*ResumeSandboxRequest)(nil), "containerd.runtime.sandbox.v1.ResumeSandboxRequest")
proto.RegisterType((*ResumeSandboxResponse)(nil), "containerd.runtime.sandbox.v1.ResumeSandboxResponse")
proto.RegisterType((*SandboxStatusResponse)(nil), "containerd.runtime.sandbox.v1.SandboxStatusResponse")
proto.RegisterType((*PingRequest)(nil), "containerd.runtime.sandbox.v1.PingRequest")
proto.RegisterType((*PingResponse)(nil), "containerd.runtime.sandbox.v1.PingResponse")
}
func init() {
proto.RegisterFile("github.com/containerd/containerd/api/runtime/sandbox/v1/sandbox.proto", fileDescriptor_bd1ee4d461c4cb0a)
}
var fileDescriptor_bd1ee4d461c4cb0a = []byte{
// 795 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0x4f, 0x4f, 0xdb, 0x48,
0x14, 0xc7, 0x0e, 0x84, 0xcd, 0x73, 0xb2, 0x42, 0x43, 0x02, 0x59, 0x4b, 0x9b, 0xb0, 0x3e, 0x45,
0xec, 0xca, 0x16, 0x61, 0xb5, 0x5b, 0x15, 0xa9, 0x15, 0x34, 0x1c, 0x38, 0x54, 0x42, 0x4e, 0xab,
0xfe, 0xb9, 0x44, 0x93, 0x78, 0x12, 0xac, 0x12, 0x8f, 0xeb, 0x19, 0x03, 0xe9, 0xa9, 0x1f, 0xa5,
0xdf, 0xa5, 0xaa, 0xc4, 0xb1, 0xc7, 0x5e, 0x8a, 0x4a, 0x3e, 0x49, 0xe5, 0xcc, 0x84, 0x38, 0xc1,
0xc5, 0x90, 0xdc, 0x9e, 0x27, 0xbf, 0xf7, 0xef, 0xf7, 0xde, 0xfb, 0x29, 0x70, 0xd8, 0x73, 0xf9,
0x49, 0xd8, 0x36, 0x3b, 0xb4, 0x6f, 0x75, 0xa8, 0xc7, 0xb1, 0xeb, 0x91, 0xc0, 0x89, 0x9b, 0xd8,
0x77, 0xad, 0x20, 0xf4, 0xb8, 0xdb, 0x27, 0x16, 0xc3, 0x9e, 0xd3, 0xa6, 0x17, 0xd6, 0xd9, 0xce,
0xd8, 0x34, 0xfd, 0x80, 0x72, 0x8a, 0xfe, 0x9c, 0x38, 0x98, 0x12, 0x6c, 0x8e, 0x11, 0x67, 0x3b,
0xfa, 0x1f, 0x3d, 0x4a, 0x7b, 0xa7, 0xc4, 0x1a, 0x81, 0xdb, 0x61, 0xd7, 0xc2, 0xde, 0x40, 0x78,
0xea, 0xd5, 0xd9, 0x9f, 0x22, 0x5f, 0xc6, 0x71, 0xdf, 0x97, 0x80, 0x62, 0x8f, 0xf6, 0xe8, 0xc8,
0xb4, 0x22, 0x4b, 0xbe, 0xfe, 0x77, 0xaf, 0xba, 0xf9, 0xc0, 0x27, 0xcc, 0xea, 0xd3, 0xd0, 0xe3,
0xc2, 0xcf, 0xf8, 0xa2, 0xc0, 0x7a, 0x93, 0xe3, 0x80, 0x37, 0x45, 0x75, 0x36, 0x79, 0x1f, 0x12,
0xc6, 0xd1, 0x3f, 0x00, 0xb2, 0xde, 0x96, 0xeb, 0x94, 0x95, 0x2d, 0xa5, 0x96, 0x3b, 0x28, 0x0c,
0xaf, 0xaa, 0x39, 0x89, 0x3b, 0x6a, 0xd8, 0x39, 0x09, 0x38, 0x72, 0x50, 0x15, 0xb4, 0x76, 0xe8,
0x39, 0xa7, 0xa4, 0xe5, 0x63, 0x7e, 0x52, 0x56, 0x23, 0xb8, 0x0d, 0xe2, 0xe9, 0x18, 0xf3, 0x13,
0x64, 0x41, 0x36, 0xa0, 0x94, 0x77, 0x59, 0x39, 0xb3, 0x95, 0xa9, 0x69, 0xf5, 0x4d, 0x33, 0x46,
0xd0, 0xa8, 0x2a, 0xf3, 0x79, 0x54, 0x95, 0x2d, 0x61, 0xc8, 0x84, 0x55, 0xea, 0x73, 0x97, 0x7a,
0xac, 0xbc, 0xbc, 0xa5, 0xd4, 0xb4, 0x7a, 0xd1, 0x14, 0xc4, 0x98, 0x63, 0x62, 0xcc, 0x7d, 0x6f,
0x60, 0x8f, 0x41, 0x46, 0x0d, 0x8a, 0xd3, 0x6d, 0x30, 0x9f, 0x7a, 0x8c, 0xa0, 0x35, 0xc8, 0xf8,
0xb2, 0x81, 0x82, 0x1d, 0x99, 0x06, 0x01, 0xd4, 0xe4, 0xd4, 0x5f, 0xa8, 0xdf, 0xbf, 0x20, 0x1f,
0x8d, 0x85, 0x86, 0xbc, 0xc5, 0x48, 0x87, 0x8d, 0x1a, 0x2e, 0xd8, 0x9a, 0x7c, 0x6b, 0x92, 0x0e,
0x33, 0x4a, 0x11, 0xaf, 0xb1, 0x34, 0xa2, 0x1e, 0xe3, 0x93, 0x0a, 0xc5, 0x97, 0xbe, 0x83, 0x39,
0x59, 0xa8, 0x80, 0x3a, 0xe4, 0x02, 0xc2, 0x68, 0x18, 0x74, 0x88, 0xc8, 0xfe, 0x2b, 0x82, 0x26,
0x30, 0xd4, 0x05, 0x0d, 0x7b, 0x1e, 0xe5, 0x58, 0xd0, 0x2a, 0x06, 0xd1, 0x30, 0xef, 0xdc, 0x54,
0x33, 0xa9, 0x56, 0x73, 0x7f, 0x12, 0xe6, 0xd0, 0xe3, 0xc1, 0xc0, 0x8e, 0x07, 0xd6, 0x9f, 0xc0,
0xda, 0x2c, 0x20, 0x1a, 0xc3, 0x3b, 0x32, 0x10, 0x6d, 0xd9, 0x91, 0x89, 0x8a, 0xb0, 0x72, 0x86,
0x4f, 0x43, 0x22, 0x97, 0x45, 0x7c, 0x3c, 0x56, 0x1f, 0x29, 0xc6, 0x01, 0xa0, 0x57, 0xd8, 0x5d,
0x68, 0x21, 0x0d, 0x0a, 0xeb, 0x53, 0x31, 0xe4, 0x36, 0x54, 0x41, 0x23, 0x17, 0x2e, 0x6f, 0x31,
0x8e, 0x79, 0xc8, 0xe4, 0x56, 0x40, 0xf4, 0xd4, 0x1c, 0xbd, 0xa0, 0xff, 0x21, 0x17, 0x7d, 0x11,
0xa7, 0x85, 0xb9, 0xe4, 0x55, 0xbf, 0xc5, 0xeb, 0x8b, 0xf1, 0x45, 0xda, 0xbf, 0x09, 0xf0, 0x3e,
0x37, 0x36, 0xa1, 0x34, 0x43, 0x95, 0x1c, 0x78, 0x03, 0x8a, 0xf2, 0x49, 0xa4, 0x98, 0xaf, 0x9f,
0x67, 0xb0, 0x7e, 0x8c, 0x43, 0xb6, 0xd0, 0xd2, 0x18, 0x1b, 0x50, 0x9c, 0x0e, 0x32, 0x29, 0xd1,
0x26, 0x2c, 0xec, 0x2f, 0x16, 0x7d, 0x13, 0x4a, 0x33, 0x51, 0x64, 0xf8, 0xef, 0x0a, 0x94, 0x66,
0x28, 0x90, 0xe3, 0xd8, 0x00, 0xf5, 0x26, 0x70, 0x76, 0x78, 0x55, 0x55, 0x8f, 0x1a, 0xb6, 0xea,
0x3a, 0xe3, 0xa3, 0x55, 0x6f, 0x8e, 0x36, 0xda, 0x96, 0x68, 0x66, 0xa4, 0x9c, 0x11, 0xdb, 0x32,
0xfa, 0x98, 0x1d, 0xe7, 0xf2, 0xdd, 0xe3, 0x5c, 0xb9, 0xff, 0x38, 0xd1, 0x36, 0xac, 0x90, 0x0b,
0x1e, 0xe0, 0x72, 0xf6, 0x8e, 0xdb, 0x12, 0x10, 0x63, 0x0f, 0xb4, 0x63, 0xd7, 0xeb, 0xcd, 0xc7,
0xda, 0xef, 0x90, 0x17, 0xce, 0x82, 0x92, 0xfa, 0xe7, 0x55, 0x58, 0x95, 0x40, 0x74, 0x0e, 0xf9,
0xb8, 0xa6, 0xa1, 0x7a, 0xca, 0xad, 0x26, 0xe8, 0xb8, 0xbe, 0xfb, 0x20, 0x1f, 0x39, 0x17, 0x0e,
0x5a, 0x4c, 0xbb, 0xd0, 0x4e, 0x6a, 0x8c, 0x59, 0x39, 0xd5, 0xeb, 0x0f, 0x71, 0x99, 0x64, 0x8d,
0xdd, 0x6c, 0x6a, 0xd6, 0xdb, 0x1a, 0x91, 0x9a, 0x35, 0x49, 0x12, 0x3e, 0x40, 0x61, 0xea, 0x70,
0xd1, 0xee, 0x1c, 0x8a, 0xa8, 0xff, 0xfb, 0x30, 0x27, 0x99, 0xfb, 0x1c, 0xf2, 0xf1, 0x83, 0x4c,
0x1d, 0x70, 0x82, 0x04, 0xa4, 0x0e, 0x38, 0xe9, 0xe2, 0xa3, 0xa6, 0xa7, 0x6e, 0x35, 0xb5, 0xe9,
0x24, 0x7d, 0x48, 0x6d, 0x3a, 0x51, 0x0e, 0xa2, 0xdc, 0x53, 0x6a, 0x90, 0x9a, 0x3b, 0x49, 0x3e,
0x53, 0x73, 0x27, 0x0b, 0x4e, 0x57, 0x9c, 0xea, 0xb8, 0xeb, 0xed, 0x34, 0xee, 0x26, 0x67, 0xad,
0xff, 0x7d, 0x2f, 0xac, 0xc8, 0x73, 0xf0, 0xe6, 0xf2, 0xba, 0xb2, 0xf4, 0xed, 0xba, 0xb2, 0xf4,
0x71, 0x58, 0x51, 0x2e, 0x87, 0x15, 0xe5, 0xeb, 0xb0, 0xa2, 0xfc, 0x18, 0x56, 0x94, 0xb7, 0x4f,
0xe7, 0xfc, 0x7f, 0xb9, 0x27, 0xcd, 0xd7, 0x6a, 0x3b, 0x3b, 0x12, 0xa1, 0xdd, 0x9f, 0x01, 0x00,
0x00, 0xff, 0xff, 0x59, 0xf5, 0x57, 0xa8, 0xab, 0x0a, 0x00, 0x00,
}
func (m *StartSandboxRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *StartSandboxRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *StartSandboxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if m.Options != nil {
{
size, err := m.Options.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintSandbox(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x22
}
if len(m.Rootfs) > 0 {
for iNdEx := len(m.Rootfs) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.Rootfs[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintSandbox(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x1a
}
}
if len(m.BundlePath) > 0 {
i -= len(m.BundlePath)
copy(dAtA[i:], m.BundlePath)
i = encodeVarintSandbox(dAtA, i, uint64(len(m.BundlePath)))
i--
dAtA[i] = 0x12
}
if len(m.SandboxID) > 0 {
i -= len(m.SandboxID)
copy(dAtA[i:], m.SandboxID)
i = encodeVarintSandbox(dAtA, i, uint64(len(m.SandboxID)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *StartSandboxResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *StartSandboxResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *StartSandboxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if m.Pid != 0 {
i = encodeVarintSandbox(dAtA, i, uint64(m.Pid))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func (m *StopSandboxRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *StopSandboxRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *StopSandboxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if m.TimeoutSecs != 0 {
i = encodeVarintSandbox(dAtA, i, uint64(m.TimeoutSecs))
i--
dAtA[i] = 0x10
}
if len(m.SandboxID) > 0 {
i -= len(m.SandboxID)
copy(dAtA[i:], m.SandboxID)
i = encodeVarintSandbox(dAtA, i, uint64(len(m.SandboxID)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *StopSandboxResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *StopSandboxResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *StopSandboxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
return len(dAtA) - i, nil
}
func (m *UpdateSandboxRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *UpdateSandboxRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *UpdateSandboxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if len(m.Annotations) > 0 {
for k := range m.Annotations {
v := m.Annotations[k]
baseI := i
i -= len(v)
copy(dAtA[i:], v)
i = encodeVarintSandbox(dAtA, i, uint64(len(v)))
i--
dAtA[i] = 0x12
i -= len(k)
copy(dAtA[i:], k)
i = encodeVarintSandbox(dAtA, i, uint64(len(k)))
i--
dAtA[i] = 0xa
i = encodeVarintSandbox(dAtA, i, uint64(baseI-i))
i--
dAtA[i] = 0x1a
}
}
if m.Resources != nil {
{
size, err := m.Resources.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintSandbox(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x12
}
if len(m.SandboxID) > 0 {
i -= len(m.SandboxID)
copy(dAtA[i:], m.SandboxID)
i = encodeVarintSandbox(dAtA, i, uint64(len(m.SandboxID)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *WaitSandboxRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *WaitSandboxRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *WaitSandboxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if len(m.SandboxID) > 0 {
i -= len(m.SandboxID)
copy(dAtA[i:], m.SandboxID)
i = encodeVarintSandbox(dAtA, i, uint64(len(m.SandboxID)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *WaitSandboxResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *WaitSandboxResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *WaitSandboxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if m.ExitedAt != nil {
{
size, err := m.ExitedAt.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintSandbox(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x12
}
if m.ExitStatus != 0 {
i = encodeVarintSandbox(dAtA, i, uint64(m.ExitStatus))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func (m *UpdateSandboxResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *UpdateSandboxResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *UpdateSandboxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
return len(dAtA) - i, nil
}
func (m *SandboxStatusRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *SandboxStatusRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *SandboxStatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if len(m.SandboxID) > 0 {
i -= len(m.SandboxID)
copy(dAtA[i:], m.SandboxID)
i = encodeVarintSandbox(dAtA, i, uint64(len(m.SandboxID)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *PauseSandboxRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *PauseSandboxRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *PauseSandboxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if len(m.SandboxID) > 0 {
i -= len(m.SandboxID)
copy(dAtA[i:], m.SandboxID)
i = encodeVarintSandbox(dAtA, i, uint64(len(m.SandboxID)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *PauseSandboxResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *PauseSandboxResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *PauseSandboxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
return len(dAtA) - i, nil
}
func (m *ResumeSandboxRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *ResumeSandboxRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *ResumeSandboxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if len(m.SandboxID) > 0 {
i -= len(m.SandboxID)
copy(dAtA[i:], m.SandboxID)
i = encodeVarintSandbox(dAtA, i, uint64(len(m.SandboxID)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *ResumeSandboxResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *ResumeSandboxResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *ResumeSandboxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
return len(dAtA) - i, nil
}
func (m *SandboxStatusResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *SandboxStatusResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *SandboxStatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if m.Extra != nil {
{
size, err := m.Extra.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintSandbox(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x32
}
if m.ExitedAt != nil {
{
size, err := m.ExitedAt.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintSandbox(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x2a
}
if m.ExitStatus != 0 {
i = encodeVarintSandbox(dAtA, i, uint64(m.ExitStatus))
i--
dAtA[i] = 0x20
}
if len(m.State) > 0 {
i -= len(m.State)
copy(dAtA[i:], m.State)
i = encodeVarintSandbox(dAtA, i, uint64(len(m.State)))
i--
dAtA[i] = 0x1a
}
if m.Pid != 0 {
i = encodeVarintSandbox(dAtA, i, uint64(m.Pid))
i--
dAtA[i] = 0x10
}
if len(m.ID) > 0 {
i -= len(m.ID)
copy(dAtA[i:], m.ID)
i = encodeVarintSandbox(dAtA, i, uint64(len(m.ID)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *PingRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *PingRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *PingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if len(m.SandboxID) > 0 {
i -= len(m.SandboxID)
copy(dAtA[i:], m.SandboxID)
i = encodeVarintSandbox(dAtA, i, uint64(len(m.SandboxID)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *PingResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *PingResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *PingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
return len(dAtA) - i, nil
}
func encodeVarintSandbox(dAtA []byte, offset int, v uint64) int {
offset -= sovSandbox(v)
base := offset
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return base
}
func (m *StartSandboxRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.SandboxID)
if l > 0 {
n += 1 + l + sovSandbox(uint64(l))
}
l = len(m.BundlePath)
if l > 0 {
n += 1 + l + sovSandbox(uint64(l))
}
if len(m.Rootfs) > 0 {
for _, e := range m.Rootfs {
l = e.Size()
n += 1 + l + sovSandbox(uint64(l))
}
}
if m.Options != nil {
l = m.Options.Size()
n += 1 + l + sovSandbox(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *StartSandboxResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.Pid != 0 {
n += 1 + sovSandbox(uint64(m.Pid))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *StopSandboxRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.SandboxID)
if l > 0 {
n += 1 + l + sovSandbox(uint64(l))
}
if m.TimeoutSecs != 0 {
n += 1 + sovSandbox(uint64(m.TimeoutSecs))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *StopSandboxResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *UpdateSandboxRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.SandboxID)
if l > 0 {
n += 1 + l + sovSandbox(uint64(l))
}
if m.Resources != nil {
l = m.Resources.Size()
n += 1 + l + sovSandbox(uint64(l))
}
if len(m.Annotations) > 0 {
for k, v := range m.Annotations {
_ = k
_ = v
mapEntrySize := 1 + len(k) + sovSandbox(uint64(len(k))) + 1 + len(v) + sovSandbox(uint64(len(v)))
n += mapEntrySize + 1 + sovSandbox(uint64(mapEntrySize))
}
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *WaitSandboxRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.SandboxID)
if l > 0 {
n += 1 + l + sovSandbox(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *WaitSandboxResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.ExitStatus != 0 {
n += 1 + sovSandbox(uint64(m.ExitStatus))
}
if m.ExitedAt != nil {
l = m.ExitedAt.Size()
n += 1 + l + sovSandbox(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *UpdateSandboxResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *SandboxStatusRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.SandboxID)
if l > 0 {
n += 1 + l + sovSandbox(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *PauseSandboxRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.SandboxID)
if l > 0 {
n += 1 + l + sovSandbox(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *PauseSandboxResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *ResumeSandboxRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.SandboxID)
if l > 0 {
n += 1 + l + sovSandbox(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *ResumeSandboxResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *SandboxStatusResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.ID)
if l > 0 {
n += 1 + l + sovSandbox(uint64(l))
}
if m.Pid != 0 {
n += 1 + sovSandbox(uint64(m.Pid))
}
l = len(m.State)
if l > 0 {
n += 1 + l + sovSandbox(uint64(l))
}
if m.ExitStatus != 0 {
n += 1 + sovSandbox(uint64(m.ExitStatus))
}
if m.ExitedAt != nil {
l = m.ExitedAt.Size()
n += 1 + l + sovSandbox(uint64(l))
}
if m.Extra != nil {
l = m.Extra.Size()
n += 1 + l + sovSandbox(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *PingRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.SandboxID)
if l > 0 {
n += 1 + l + sovSandbox(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *PingResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func sovSandbox(x uint64) (n int) {
return (math_bits.Len64(x|1) + 6) / 7
}
func sozSandbox(x uint64) (n int) {
return sovSandbox(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (this *StartSandboxRequest) String() string {
if this == nil {
return "nil"
}
repeatedStringForRootfs := "[]*Mount{"
for _, f := range this.Rootfs {
repeatedStringForRootfs += strings.Replace(fmt.Sprintf("%v", f), "Mount", "types.Mount", 1) + ","
}
repeatedStringForRootfs += "}"
s := strings.Join([]string{`&StartSandboxRequest{`,
`SandboxID:` + fmt.Sprintf("%v", this.SandboxID) + `,`,
`BundlePath:` + fmt.Sprintf("%v", this.BundlePath) + `,`,
`Rootfs:` + repeatedStringForRootfs + `,`,
`Options:` + strings.Replace(fmt.Sprintf("%v", this.Options), "Any", "types1.Any", 1) + `,`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
return s
}
func (this *StartSandboxResponse) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&StartSandboxResponse{`,
`Pid:` + fmt.Sprintf("%v", this.Pid) + `,`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
return s
}
func (this *StopSandboxRequest) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&StopSandboxRequest{`,
`SandboxID:` + fmt.Sprintf("%v", this.SandboxID) + `,`,
`TimeoutSecs:` + fmt.Sprintf("%v", this.TimeoutSecs) + `,`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
return s
}
func (this *StopSandboxResponse) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&StopSandboxResponse{`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
return s
}
func (this *UpdateSandboxRequest) String() string {
if this == nil {
return "nil"
}
keysForAnnotations := make([]string, 0, len(this.Annotations))
for k, _ := range this.Annotations {
keysForAnnotations = append(keysForAnnotations, k)
}
github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotations)
mapStringForAnnotations := "map[string]string{"
for _, k := range keysForAnnotations {
mapStringForAnnotations += fmt.Sprintf("%v: %v,", k, this.Annotations[k])
}
mapStringForAnnotations += "}"
s := strings.Join([]string{`&UpdateSandboxRequest{`,
`SandboxID:` + fmt.Sprintf("%v", this.SandboxID) + `,`,
`Resources:` + strings.Replace(fmt.Sprintf("%v", this.Resources), "Any", "types1.Any", 1) + `,`,
`Annotations:` + mapStringForAnnotations + `,`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
return s
}
func (this *WaitSandboxRequest) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&WaitSandboxRequest{`,
`SandboxID:` + fmt.Sprintf("%v", this.SandboxID) + `,`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
return s
}
func (this *WaitSandboxResponse) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&WaitSandboxResponse{`,
`ExitStatus:` + fmt.Sprintf("%v", this.ExitStatus) + `,`,
`ExitedAt:` + strings.Replace(fmt.Sprintf("%v", this.ExitedAt), "Timestamp", "types1.Timestamp", 1) + `,`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
return s
}
func (this *UpdateSandboxResponse) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&UpdateSandboxResponse{`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
return s
}
func (this *SandboxStatusRequest) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&SandboxStatusRequest{`,
`SandboxID:` + fmt.Sprintf("%v", this.SandboxID) + `,`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
return s
}
func (this *PauseSandboxRequest) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&PauseSandboxRequest{`,
`SandboxID:` + fmt.Sprintf("%v", this.SandboxID) + `,`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
return s
}
func (this *PauseSandboxResponse) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&PauseSandboxResponse{`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
return s
}
func (this *ResumeSandboxRequest) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&ResumeSandboxRequest{`,
`SandboxID:` + fmt.Sprintf("%v", this.SandboxID) + `,`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
return s
}
func (this *ResumeSandboxResponse) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&ResumeSandboxResponse{`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
return s
}
func (this *SandboxStatusResponse) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&SandboxStatusResponse{`,
`ID:` + fmt.Sprintf("%v", this.ID) + `,`,
`Pid:` + fmt.Sprintf("%v", this.Pid) + `,`,
`State:` + fmt.Sprintf("%v", this.State) + `,`,
`ExitStatus:` + fmt.Sprintf("%v", this.ExitStatus) + `,`,
`ExitedAt:` + strings.Replace(fmt.Sprintf("%v", this.ExitedAt), "Timestamp", "types1.Timestamp", 1) + `,`,
`Extra:` + strings.Replace(fmt.Sprintf("%v", this.Extra), "Any", "types1.Any", 1) + `,`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
return s
}
func (this *PingRequest) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&PingRequest{`,
`SandboxID:` + fmt.Sprintf("%v", this.SandboxID) + `,`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
return s
}
func (this *PingResponse) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&PingResponse{`,
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
`}`,
}, "")
return s
}
func valueToStringSandbox(v interface{}) string {
rv := reflect.ValueOf(v)
if rv.IsNil() {
return "nil"
}
pv := reflect.Indirect(rv).Interface()
return fmt.Sprintf("*%v", pv)
}
type SandboxService interface {
StartSandbox(ctx context.Context, req *StartSandboxRequest) (*StartSandboxResponse, error)
StopSandbox(ctx context.Context, req *StopSandboxRequest) (*StopSandboxResponse, error)
WaitSandbox(ctx context.Context, req *WaitSandboxRequest) (*WaitSandboxResponse, error)
UpdateSandbox(ctx context.Context, req *UpdateSandboxRequest) (*UpdateSandboxResponse, error)
PauseSandbox(ctx context.Context, req *PauseSandboxRequest) (*PauseSandboxResponse, error)
ResumeSandbox(ctx context.Context, req *ResumeSandboxRequest) (*ResumeSandboxResponse, error)
SandboxStatus(ctx context.Context, req *SandboxStatusRequest) (*SandboxStatusResponse, error)
PingSandbox(ctx context.Context, req *PingRequest) (*PingResponse, error)
}
func RegisterSandboxService(srv *github_com_containerd_ttrpc.Server, svc SandboxService) {
srv.Register("containerd.runtime.sandbox.v1.Sandbox", map[string]github_com_containerd_ttrpc.Method{
"StartSandbox": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
var req StartSandboxRequest
if err := unmarshal(&req); err != nil {
return nil, err
}
return svc.StartSandbox(ctx, &req)
},
"StopSandbox": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
var req StopSandboxRequest
if err := unmarshal(&req); err != nil {
return nil, err
}
return svc.StopSandbox(ctx, &req)
},
"WaitSandbox": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
var req WaitSandboxRequest
if err := unmarshal(&req); err != nil {
return nil, err
}
return svc.WaitSandbox(ctx, &req)
},
"UpdateSandbox": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
var req UpdateSandboxRequest
if err := unmarshal(&req); err != nil {
return nil, err
}
return svc.UpdateSandbox(ctx, &req)
},
"PauseSandbox": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
var req PauseSandboxRequest
if err := unmarshal(&req); err != nil {
return nil, err
}
return svc.PauseSandbox(ctx, &req)
},
"ResumeSandbox": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
var req ResumeSandboxRequest
if err := unmarshal(&req); err != nil {
return nil, err
}
return svc.ResumeSandbox(ctx, &req)
},
"SandboxStatus": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
var req SandboxStatusRequest
if err := unmarshal(&req); err != nil {
return nil, err
}
return svc.SandboxStatus(ctx, &req)
},
"PingSandbox": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) {
var req PingRequest
if err := unmarshal(&req); err != nil {
return nil, err
}
return svc.PingSandbox(ctx, &req)
},
})
}
type sandboxClient struct {
client *github_com_containerd_ttrpc.Client
}
func NewSandboxClient(client *github_com_containerd_ttrpc.Client) SandboxService {
return &sandboxClient{
client: client,
}
}
func (c *sandboxClient) StartSandbox(ctx context.Context, req *StartSandboxRequest) (*StartSandboxResponse, error) {
var resp StartSandboxResponse
if err := c.client.Call(ctx, "containerd.runtime.sandbox.v1.Sandbox", "StartSandbox", req, &resp); err != nil {
return nil, err
}
return &resp, nil
}
func (c *sandboxClient) StopSandbox(ctx context.Context, req *StopSandboxRequest) (*StopSandboxResponse, error) {
var resp StopSandboxResponse
if err := c.client.Call(ctx, "containerd.runtime.sandbox.v1.Sandbox", "StopSandbox", req, &resp); err != nil {
return nil, err
}
return &resp, nil
}
func (c *sandboxClient) WaitSandbox(ctx context.Context, req *WaitSandboxRequest) (*WaitSandboxResponse, error) {
var resp WaitSandboxResponse
if err := c.client.Call(ctx, "containerd.runtime.sandbox.v1.Sandbox", "WaitSandbox", req, &resp); err != nil {
return nil, err
}
return &resp, nil
}
func (c *sandboxClient) UpdateSandbox(ctx context.Context, req *UpdateSandboxRequest) (*UpdateSandboxResponse, error) {
var resp UpdateSandboxResponse
if err := c.client.Call(ctx, "containerd.runtime.sandbox.v1.Sandbox", "UpdateSandbox", req, &resp); err != nil {
return nil, err
}
return &resp, nil
}
func (c *sandboxClient) PauseSandbox(ctx context.Context, req *PauseSandboxRequest) (*PauseSandboxResponse, error) {
var resp PauseSandboxResponse
if err := c.client.Call(ctx, "containerd.runtime.sandbox.v1.Sandbox", "PauseSandbox", req, &resp); err != nil {
return nil, err
}
return &resp, nil
}
func (c *sandboxClient) ResumeSandbox(ctx context.Context, req *ResumeSandboxRequest) (*ResumeSandboxResponse, error) {
var resp ResumeSandboxResponse
if err := c.client.Call(ctx, "containerd.runtime.sandbox.v1.Sandbox", "ResumeSandbox", req, &resp); err != nil {
return nil, err
}
return &resp, nil
}
func (c *sandboxClient) SandboxStatus(ctx context.Context, req *SandboxStatusRequest) (*SandboxStatusResponse, error) {
var resp SandboxStatusResponse
if err := c.client.Call(ctx, "containerd.runtime.sandbox.v1.Sandbox", "SandboxStatus", req, &resp); err != nil {
return nil, err
}
return &resp, nil
}
func (c *sandboxClient) PingSandbox(ctx context.Context, req *PingRequest) (*PingResponse, error) {
var resp PingResponse
if err := c.client.Call(ctx, "containerd.runtime.sandbox.v1.Sandbox", "PingSandbox", req, &resp); err != nil {
return nil, err
}
return &resp, nil
}
func (m *StartSandboxRequest) 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 ErrIntOverflowSandbox
}
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: StartSandboxRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: StartSandboxRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field SandboxID", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowSandbox
}
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 ErrInvalidLengthSandbox
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthSandbox
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.SandboxID = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field BundlePath", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowSandbox
}
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 ErrInvalidLengthSandbox
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthSandbox
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.BundlePath = 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 ErrIntOverflowSandbox
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthSandbox
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthSandbox
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Rootfs = append(m.Rootfs, &types.Mount{})
if err := m.Rootfs[len(m.Rootfs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 4:
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 ErrIntOverflowSandbox
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthSandbox
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthSandbox
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Options == nil {
m.Options = &types1.Any{}
}
if err := m.Options.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipSandbox(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthSandbox
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *StartSandboxResponse) 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 ErrIntOverflowSandbox
}
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: StartSandboxResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: StartSandboxResponse: 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 ErrIntOverflowSandbox
}
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 := skipSandbox(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthSandbox
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *StopSandboxRequest) 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 ErrIntOverflowSandbox
}
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: StopSandboxRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: StopSandboxRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field SandboxID", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowSandbox
}
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 ErrInvalidLengthSandbox
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthSandbox
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.SandboxID = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field TimeoutSecs", wireType)
}
m.TimeoutSecs = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowSandbox
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.TimeoutSecs |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipSandbox(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthSandbox
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *StopSandboxResponse) 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 ErrIntOverflowSandbox
}
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: StopSandboxResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: StopSandboxResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipSandbox(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthSandbox
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *UpdateSandboxRequest) 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 ErrIntOverflowSandbox
}
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: UpdateSandboxRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: UpdateSandboxRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field SandboxID", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowSandbox
}
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 ErrInvalidLengthSandbox
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthSandbox
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.SandboxID = 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 ErrIntOverflowSandbox
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthSandbox
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthSandbox
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Resources == nil {
m.Resources = &types1.Any{}
}
if err := m.Resources.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowSandbox
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthSandbox
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthSandbox
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Annotations == nil {
m.Annotations = make(map[string]string)
}
var mapkey string
var mapvalue string
for iNdEx < postIndex {
entryPreIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowSandbox
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
if fieldNum == 1 {
var stringLenmapkey uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowSandbox
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLenmapkey |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLenmapkey := int(stringLenmapkey)
if intStringLenmapkey < 0 {
return ErrInvalidLengthSandbox
}
postStringIndexmapkey := iNdEx + intStringLenmapkey
if postStringIndexmapkey < 0 {
return ErrInvalidLengthSandbox
}
if postStringIndexmapkey > l {
return io.ErrUnexpectedEOF
}
mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
iNdEx = postStringIndexmapkey
} else if fieldNum == 2 {
var stringLenmapvalue uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowSandbox
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLenmapvalue |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLenmapvalue := int(stringLenmapvalue)
if intStringLenmapvalue < 0 {
return ErrInvalidLengthSandbox
}
postStringIndexmapvalue := iNdEx + intStringLenmapvalue
if postStringIndexmapvalue < 0 {
return ErrInvalidLengthSandbox
}
if postStringIndexmapvalue > l {
return io.ErrUnexpectedEOF
}
mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
iNdEx = postStringIndexmapvalue
} else {
iNdEx = entryPreIndex
skippy, err := skipSandbox(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthSandbox
}
if (iNdEx + skippy) > postIndex {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
m.Annotations[mapkey] = mapvalue
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipSandbox(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthSandbox
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *WaitSandboxRequest) 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 ErrIntOverflowSandbox
}
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: WaitSandboxRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: WaitSandboxRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field SandboxID", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowSandbox
}
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 ErrInvalidLengthSandbox
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthSandbox
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.SandboxID = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipSandbox(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthSandbox
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *WaitSandboxResponse) 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 ErrIntOverflowSandbox
}
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: WaitSandboxResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: WaitSandboxResponse: 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 ErrIntOverflowSandbox
}
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 ErrIntOverflowSandbox
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthSandbox
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthSandbox
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.ExitedAt == nil {
m.ExitedAt = &types1.Timestamp{}
}
if err := m.ExitedAt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipSandbox(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthSandbox
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *UpdateSandboxResponse) 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 ErrIntOverflowSandbox
}
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: UpdateSandboxResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: UpdateSandboxResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipSandbox(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthSandbox
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *SandboxStatusRequest) 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 ErrIntOverflowSandbox
}
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: SandboxStatusRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: SandboxStatusRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field SandboxID", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowSandbox
}
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 ErrInvalidLengthSandbox
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthSandbox
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.SandboxID = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipSandbox(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthSandbox
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *PauseSandboxRequest) 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 ErrIntOverflowSandbox
}
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: PauseSandboxRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: PauseSandboxRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field SandboxID", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowSandbox
}
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 ErrInvalidLengthSandbox
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthSandbox
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.SandboxID = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipSandbox(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthSandbox
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *PauseSandboxResponse) 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 ErrIntOverflowSandbox
}
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: PauseSandboxResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: PauseSandboxResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipSandbox(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthSandbox
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *ResumeSandboxRequest) 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 ErrIntOverflowSandbox
}
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: ResumeSandboxRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: ResumeSandboxRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field SandboxID", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowSandbox
}
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 ErrInvalidLengthSandbox
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthSandbox
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.SandboxID = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipSandbox(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthSandbox
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *ResumeSandboxResponse) 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 ErrIntOverflowSandbox
}
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: ResumeSandboxResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: ResumeSandboxResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipSandbox(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthSandbox
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *SandboxStatusResponse) 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 ErrIntOverflowSandbox
}
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: SandboxStatusResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: SandboxStatusResponse: 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 ErrIntOverflowSandbox
}
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 ErrInvalidLengthSandbox
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthSandbox
}
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 Pid", wireType)
}
m.Pid = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowSandbox
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Pid |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field State", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowSandbox
}
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 ErrInvalidLengthSandbox
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthSandbox
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.State = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 4:
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 ErrIntOverflowSandbox
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.ExitStatus |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 5:
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 ErrIntOverflowSandbox
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthSandbox
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthSandbox
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.ExitedAt == nil {
m.ExitedAt = &types1.Timestamp{}
}
if err := m.ExitedAt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 6:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Extra", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowSandbox
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthSandbox
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthSandbox
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Extra == nil {
m.Extra = &types1.Any{}
}
if err := m.Extra.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipSandbox(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthSandbox
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *PingRequest) 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 ErrIntOverflowSandbox
}
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: PingRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: PingRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field SandboxID", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowSandbox
}
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 ErrInvalidLengthSandbox
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthSandbox
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.SandboxID = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipSandbox(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthSandbox
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *PingResponse) 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 ErrIntOverflowSandbox
}
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: PingResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: PingResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipSandbox(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthSandbox
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipSandbox(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
depth := 0
for iNdEx < l {
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowSandbox
}
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, ErrIntOverflowSandbox
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
iNdEx++
if dAtA[iNdEx-1] < 0x80 {
break
}
}
case 1:
iNdEx += 8
case 2:
var length int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowSandbox
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
length |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if length < 0 {
return 0, ErrInvalidLengthSandbox
}
iNdEx += length
case 3:
depth++
case 4:
if depth == 0 {
return 0, ErrUnexpectedEndOfGroupSandbox
}
depth--
case 5:
iNdEx += 4
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
if iNdEx < 0 {
return 0, ErrInvalidLengthSandbox
}
if depth == 0 {
return iNdEx, nil
}
}
return 0, io.ErrUnexpectedEOF
}
var (
ErrInvalidLengthSandbox = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowSandbox = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupSandbox = fmt.Errorf("proto: unexpected end of group")
)