1426 lines
		
	
	
		
			36 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			1426 lines
		
	
	
		
			36 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
| // Code generated by protoc-gen-gogo. DO NOT EDIT.
 | |
| // source: github.com/containerd/containerd/api/events/container.proto
 | |
| 
 | |
| package events
 | |
| 
 | |
| import (
 | |
| 	fmt "fmt"
 | |
| 	github_com_containerd_typeurl "github.com/containerd/typeurl"
 | |
| 	proto "github.com/gogo/protobuf/proto"
 | |
| 	github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
 | |
| 	types "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 ContainerCreate struct {
 | |
| 	ID                   string                   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
 | |
| 	Image                string                   `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"`
 | |
| 	Runtime              *ContainerCreate_Runtime `protobuf:"bytes,3,opt,name=runtime,proto3" json:"runtime,omitempty"`
 | |
| 	XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
 | |
| 	XXX_unrecognized     []byte                   `json:"-"`
 | |
| 	XXX_sizecache        int32                    `json:"-"`
 | |
| }
 | |
| 
 | |
| func (m *ContainerCreate) Reset()      { *m = ContainerCreate{} }
 | |
| func (*ContainerCreate) ProtoMessage() {}
 | |
| func (*ContainerCreate) Descriptor() ([]byte, []int) {
 | |
| 	return fileDescriptor_0d1f05b8626f83ea, []int{0}
 | |
| }
 | |
| func (m *ContainerCreate) XXX_Unmarshal(b []byte) error {
 | |
| 	return m.Unmarshal(b)
 | |
| }
 | |
| func (m *ContainerCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
 | |
| 	if deterministic {
 | |
| 		return xxx_messageInfo_ContainerCreate.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 *ContainerCreate) XXX_Merge(src proto.Message) {
 | |
| 	xxx_messageInfo_ContainerCreate.Merge(m, src)
 | |
| }
 | |
| func (m *ContainerCreate) XXX_Size() int {
 | |
| 	return m.Size()
 | |
| }
 | |
| func (m *ContainerCreate) XXX_DiscardUnknown() {
 | |
| 	xxx_messageInfo_ContainerCreate.DiscardUnknown(m)
 | |
| }
 | |
| 
 | |
| var xxx_messageInfo_ContainerCreate proto.InternalMessageInfo
 | |
| 
 | |
| type ContainerCreate_Runtime struct {
 | |
| 	Name                 string     `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
 | |
| 	Options              *types.Any `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
 | |
| 	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
 | |
| 	XXX_unrecognized     []byte     `json:"-"`
 | |
| 	XXX_sizecache        int32      `json:"-"`
 | |
| }
 | |
| 
 | |
| func (m *ContainerCreate_Runtime) Reset()      { *m = ContainerCreate_Runtime{} }
 | |
| func (*ContainerCreate_Runtime) ProtoMessage() {}
 | |
| func (*ContainerCreate_Runtime) Descriptor() ([]byte, []int) {
 | |
| 	return fileDescriptor_0d1f05b8626f83ea, []int{0, 0}
 | |
| }
 | |
| func (m *ContainerCreate_Runtime) XXX_Unmarshal(b []byte) error {
 | |
| 	return m.Unmarshal(b)
 | |
| }
 | |
| func (m *ContainerCreate_Runtime) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
 | |
| 	if deterministic {
 | |
| 		return xxx_messageInfo_ContainerCreate_Runtime.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 *ContainerCreate_Runtime) XXX_Merge(src proto.Message) {
 | |
| 	xxx_messageInfo_ContainerCreate_Runtime.Merge(m, src)
 | |
| }
 | |
| func (m *ContainerCreate_Runtime) XXX_Size() int {
 | |
| 	return m.Size()
 | |
| }
 | |
| func (m *ContainerCreate_Runtime) XXX_DiscardUnknown() {
 | |
| 	xxx_messageInfo_ContainerCreate_Runtime.DiscardUnknown(m)
 | |
| }
 | |
| 
 | |
| var xxx_messageInfo_ContainerCreate_Runtime proto.InternalMessageInfo
 | |
| 
 | |
| type ContainerUpdate struct {
 | |
| 	ID                   string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
 | |
| 	Image                string            `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"`
 | |
| 	Labels               map[string]string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
 | |
| 	SnapshotKey          string            `protobuf:"bytes,4,opt,name=snapshot_key,json=snapshotKey,proto3" json:"snapshot_key,omitempty"`
 | |
| 	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
 | |
| 	XXX_unrecognized     []byte            `json:"-"`
 | |
| 	XXX_sizecache        int32             `json:"-"`
 | |
| }
 | |
| 
 | |
| func (m *ContainerUpdate) Reset()      { *m = ContainerUpdate{} }
 | |
| func (*ContainerUpdate) ProtoMessage() {}
 | |
| func (*ContainerUpdate) Descriptor() ([]byte, []int) {
 | |
| 	return fileDescriptor_0d1f05b8626f83ea, []int{1}
 | |
| }
 | |
| func (m *ContainerUpdate) XXX_Unmarshal(b []byte) error {
 | |
| 	return m.Unmarshal(b)
 | |
| }
 | |
| func (m *ContainerUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
 | |
| 	if deterministic {
 | |
| 		return xxx_messageInfo_ContainerUpdate.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 *ContainerUpdate) XXX_Merge(src proto.Message) {
 | |
| 	xxx_messageInfo_ContainerUpdate.Merge(m, src)
 | |
| }
 | |
| func (m *ContainerUpdate) XXX_Size() int {
 | |
| 	return m.Size()
 | |
| }
 | |
| func (m *ContainerUpdate) XXX_DiscardUnknown() {
 | |
| 	xxx_messageInfo_ContainerUpdate.DiscardUnknown(m)
 | |
| }
 | |
| 
 | |
| var xxx_messageInfo_ContainerUpdate proto.InternalMessageInfo
 | |
| 
 | |
| type ContainerDelete struct {
 | |
| 	ID                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
 | |
| 	XXX_NoUnkeyedLiteral struct{} `json:"-"`
 | |
| 	XXX_unrecognized     []byte   `json:"-"`
 | |
| 	XXX_sizecache        int32    `json:"-"`
 | |
| }
 | |
| 
 | |
| func (m *ContainerDelete) Reset()      { *m = ContainerDelete{} }
 | |
| func (*ContainerDelete) ProtoMessage() {}
 | |
| func (*ContainerDelete) Descriptor() ([]byte, []int) {
 | |
| 	return fileDescriptor_0d1f05b8626f83ea, []int{2}
 | |
| }
 | |
| func (m *ContainerDelete) XXX_Unmarshal(b []byte) error {
 | |
| 	return m.Unmarshal(b)
 | |
| }
 | |
| func (m *ContainerDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
 | |
| 	if deterministic {
 | |
| 		return xxx_messageInfo_ContainerDelete.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 *ContainerDelete) XXX_Merge(src proto.Message) {
 | |
| 	xxx_messageInfo_ContainerDelete.Merge(m, src)
 | |
| }
 | |
| func (m *ContainerDelete) XXX_Size() int {
 | |
| 	return m.Size()
 | |
| }
 | |
| func (m *ContainerDelete) XXX_DiscardUnknown() {
 | |
| 	xxx_messageInfo_ContainerDelete.DiscardUnknown(m)
 | |
| }
 | |
| 
 | |
| var xxx_messageInfo_ContainerDelete proto.InternalMessageInfo
 | |
| 
 | |
| func init() {
 | |
| 	proto.RegisterType((*ContainerCreate)(nil), "containerd.events.ContainerCreate")
 | |
| 	proto.RegisterType((*ContainerCreate_Runtime)(nil), "containerd.events.ContainerCreate.Runtime")
 | |
| 	proto.RegisterType((*ContainerUpdate)(nil), "containerd.events.ContainerUpdate")
 | |
| 	proto.RegisterMapType((map[string]string)(nil), "containerd.events.ContainerUpdate.LabelsEntry")
 | |
| 	proto.RegisterType((*ContainerDelete)(nil), "containerd.events.ContainerDelete")
 | |
| }
 | |
| 
 | |
| func init() {
 | |
| 	proto.RegisterFile("github.com/containerd/containerd/api/events/container.proto", fileDescriptor_0d1f05b8626f83ea)
 | |
| }
 | |
| 
 | |
| var fileDescriptor_0d1f05b8626f83ea = []byte{
 | |
| 	// 413 bytes of a gzipped FileDescriptorProto
 | |
| 	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xc1, 0x0a, 0xd3, 0x30,
 | |
| 	0x18, 0xc7, 0x97, 0x76, 0x6e, 0x98, 0x0a, 0x6a, 0x18, 0x52, 0x7b, 0xa8, 0x73, 0xa7, 0xe9, 0x21,
 | |
| 	0x85, 0x7a, 0x51, 0x77, 0xd1, 0x6d, 0x0a, 0xa2, 0x82, 0x14, 0x84, 0xe1, 0x45, 0xd2, 0x35, 0xeb,
 | |
| 	0x82, 0x6d, 0x52, 0xda, 0x74, 0xd0, 0x9b, 0x8f, 0xe2, 0xe3, 0xec, 0xe8, 0xc1, 0x83, 0x27, 0x71,
 | |
| 	0x05, 0xdf, 0xc0, 0x07, 0x90, 0x26, 0xeb, 0x56, 0x14, 0x95, 0x9d, 0xfa, 0xcf, 0xd7, 0xff, 0x3f,
 | |
| 	0xdf, 0xf7, 0xfb, 0x08, 0x9c, 0xc5, 0x4c, 0x6e, 0xcb, 0x10, 0xaf, 0x45, 0xea, 0xad, 0x05, 0x97,
 | |
| 	0x84, 0x71, 0x9a, 0x47, 0x5d, 0x49, 0x32, 0xe6, 0xd1, 0x1d, 0xe5, 0xb2, 0x38, 0x57, 0x71, 0x96,
 | |
| 	0x0b, 0x29, 0xd0, 0xcd, 0xb3, 0x0d, 0x6b, 0x8b, 0x73, 0x3b, 0x16, 0x22, 0x4e, 0xa8, 0xa7, 0x0c,
 | |
| 	0x61, 0xb9, 0xf1, 0x08, 0xaf, 0xb4, 0xdb, 0x19, 0xc5, 0x22, 0x16, 0x4a, 0x7a, 0x8d, 0x3a, 0x56,
 | |
| 	0x9f, 0xfc, 0x77, 0x80, 0xd3, 0x55, 0x59, 0x52, 0xc6, 0x8c, 0x7b, 0x1b, 0x46, 0x93, 0x28, 0x23,
 | |
| 	0x72, 0xab, 0x6f, 0x98, 0x7c, 0x01, 0xf0, 0xfa, 0xa2, 0xb5, 0x2f, 0x72, 0x4a, 0x24, 0x45, 0xb7,
 | |
| 	0xa0, 0xc1, 0x22, 0x1b, 0x8c, 0xc1, 0xf4, 0xea, 0x7c, 0x50, 0x7f, 0xbb, 0x63, 0xbc, 0x58, 0x06,
 | |
| 	0x06, 0x8b, 0xd0, 0x08, 0x5e, 0x61, 0x29, 0x89, 0xa9, 0x6d, 0x34, 0xbf, 0x02, 0x7d, 0x40, 0x4b,
 | |
| 	0x38, 0xcc, 0x4b, 0x2e, 0x59, 0x4a, 0x6d, 0x73, 0x0c, 0xa6, 0x96, 0x7f, 0x1f, 0xff, 0x41, 0x86,
 | |
| 	0x7f, 0x6b, 0x81, 0x03, 0x9d, 0x08, 0xda, 0xa8, 0xf3, 0x1a, 0x0e, 0x8f, 0x35, 0x84, 0x60, 0x9f,
 | |
| 	0x93, 0x94, 0xea, 0x01, 0x02, 0xa5, 0x11, 0x86, 0x43, 0x91, 0x49, 0x26, 0x78, 0xa1, 0x9a, 0x5b,
 | |
| 	0xfe, 0x08, 0xeb, 0x5d, 0xe1, 0x16, 0x10, 0x3f, 0xe5, 0x55, 0xd0, 0x9a, 0x26, 0x3f, 0xba, 0x58,
 | |
| 	0x6f, 0xb3, 0xe8, 0x72, 0xac, 0xe7, 0x70, 0x90, 0x90, 0x90, 0x26, 0x85, 0x6d, 0x8e, 0xcd, 0xa9,
 | |
| 	0xe5, 0xe3, 0x7f, 0x51, 0xe9, 0x0e, 0xf8, 0x95, 0x0a, 0x3c, 0xe3, 0x32, 0xaf, 0x82, 0x63, 0x1a,
 | |
| 	0xdd, 0x85, 0xd7, 0x0a, 0x4e, 0xb2, 0x62, 0x2b, 0xe4, 0xfb, 0x0f, 0xb4, 0xb2, 0xfb, 0xaa, 0x89,
 | |
| 	0xd5, 0xd6, 0x5e, 0xd2, 0xca, 0x79, 0x04, 0xad, 0x4e, 0x12, 0xdd, 0x80, 0x66, 0x63, 0xd4, 0xf8,
 | |
| 	0x8d, 0x6c, 0x26, 0xdc, 0x91, 0xa4, 0x3c, 0x4d, 0xa8, 0x0e, 0x8f, 0x8d, 0x87, 0x60, 0x72, 0xaf,
 | |
| 	0x83, 0xb9, 0xa4, 0x09, 0xfd, 0x3b, 0xe6, 0xfc, 0xcd, 0xfe, 0xe0, 0xf6, 0xbe, 0x1e, 0xdc, 0xde,
 | |
| 	0xc7, 0xda, 0x05, 0xfb, 0xda, 0x05, 0x9f, 0x6b, 0x17, 0x7c, 0xaf, 0x5d, 0xf0, 0xe9, 0xa7, 0x0b,
 | |
| 	0xde, 0xf9, 0x17, 0x3c, 0xe5, 0x99, 0xfe, 0xac, 0xc0, 0xca, 0x08, 0x07, 0x6a, 0xff, 0x0f, 0x7e,
 | |
| 	0x05, 0x00, 0x00, 0xff, 0xff, 0xf5, 0x09, 0xe0, 0xd6, 0x0b, 0x03, 0x00, 0x00,
 | |
| }
 | |
| 
 | |
| // Field returns the value for the given fieldpath as a string, if defined.
 | |
| // If the value is not defined, the second value will be false.
 | |
| func (m *ContainerCreate) Field(fieldpath []string) (string, bool) {
 | |
| 	if len(fieldpath) == 0 {
 | |
| 		return "", false
 | |
| 	}
 | |
| 
 | |
| 	switch fieldpath[0] {
 | |
| 	case "id":
 | |
| 		return string(m.ID), len(m.ID) > 0
 | |
| 	case "image":
 | |
| 		return string(m.Image), len(m.Image) > 0
 | |
| 	case "runtime":
 | |
| 		// NOTE(stevvooe): This is probably not correct in many cases.
 | |
| 		// We assume that the target message also implements the Field
 | |
| 		// method, which isn't likely true in a lot of cases.
 | |
| 		//
 | |
| 		// If you have a broken build and have found this comment,
 | |
| 		// you may be closer to a solution.
 | |
| 		if m.Runtime == nil {
 | |
| 			return "", false
 | |
| 		}
 | |
| 
 | |
| 		return m.Runtime.Field(fieldpath[1:])
 | |
| 	}
 | |
| 	return "", false
 | |
| }
 | |
| 
 | |
| // Field returns the value for the given fieldpath as a string, if defined.
 | |
| // If the value is not defined, the second value will be false.
 | |
| func (m *ContainerCreate_Runtime) Field(fieldpath []string) (string, bool) {
 | |
| 	if len(fieldpath) == 0 {
 | |
| 		return "", false
 | |
| 	}
 | |
| 
 | |
| 	switch fieldpath[0] {
 | |
| 	case "name":
 | |
| 		return string(m.Name), len(m.Name) > 0
 | |
| 	case "options":
 | |
| 		decoded, err := github_com_containerd_typeurl.UnmarshalAny(m.Options)
 | |
| 		if err != nil {
 | |
| 			return "", false
 | |
| 		}
 | |
| 
 | |
| 		adaptor, ok := decoded.(interface{ Field([]string) (string, bool) })
 | |
| 		if !ok {
 | |
| 			return "", false
 | |
| 		}
 | |
| 		return adaptor.Field(fieldpath[1:])
 | |
| 	}
 | |
| 	return "", false
 | |
| }
 | |
| 
 | |
| // Field returns the value for the given fieldpath as a string, if defined.
 | |
| // If the value is not defined, the second value will be false.
 | |
| func (m *ContainerUpdate) Field(fieldpath []string) (string, bool) {
 | |
| 	if len(fieldpath) == 0 {
 | |
| 		return "", false
 | |
| 	}
 | |
| 
 | |
| 	switch fieldpath[0] {
 | |
| 	case "id":
 | |
| 		return string(m.ID), len(m.ID) > 0
 | |
| 	case "image":
 | |
| 		return string(m.Image), len(m.Image) > 0
 | |
| 	case "labels":
 | |
| 		// Labels fields have been special-cased by name. If this breaks,
 | |
| 		// add better special casing to fieldpath plugin.
 | |
| 		if len(m.Labels) == 0 {
 | |
| 			return "", false
 | |
| 		}
 | |
| 		value, ok := m.Labels[strings.Join(fieldpath[1:], ".")]
 | |
| 		return value, ok
 | |
| 	case "snapshot_key":
 | |
| 		return string(m.SnapshotKey), len(m.SnapshotKey) > 0
 | |
| 	}
 | |
| 	return "", false
 | |
| }
 | |
| 
 | |
| // Field returns the value for the given fieldpath as a string, if defined.
 | |
| // If the value is not defined, the second value will be false.
 | |
| func (m *ContainerDelete) Field(fieldpath []string) (string, bool) {
 | |
| 	if len(fieldpath) == 0 {
 | |
| 		return "", false
 | |
| 	}
 | |
| 
 | |
| 	switch fieldpath[0] {
 | |
| 	case "id":
 | |
| 		return string(m.ID), len(m.ID) > 0
 | |
| 	}
 | |
| 	return "", false
 | |
| }
 | |
| func (m *ContainerCreate) 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 *ContainerCreate) MarshalTo(dAtA []byte) (int, error) {
 | |
| 	size := m.Size()
 | |
| 	return m.MarshalToSizedBuffer(dAtA[:size])
 | |
| }
 | |
| 
 | |
| func (m *ContainerCreate) 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.Runtime != nil {
 | |
| 		{
 | |
| 			size, err := m.Runtime.MarshalToSizedBuffer(dAtA[:i])
 | |
| 			if err != nil {
 | |
| 				return 0, err
 | |
| 			}
 | |
| 			i -= size
 | |
| 			i = encodeVarintContainer(dAtA, i, uint64(size))
 | |
| 		}
 | |
| 		i--
 | |
| 		dAtA[i] = 0x1a
 | |
| 	}
 | |
| 	if len(m.Image) > 0 {
 | |
| 		i -= len(m.Image)
 | |
| 		copy(dAtA[i:], m.Image)
 | |
| 		i = encodeVarintContainer(dAtA, i, uint64(len(m.Image)))
 | |
| 		i--
 | |
| 		dAtA[i] = 0x12
 | |
| 	}
 | |
| 	if len(m.ID) > 0 {
 | |
| 		i -= len(m.ID)
 | |
| 		copy(dAtA[i:], m.ID)
 | |
| 		i = encodeVarintContainer(dAtA, i, uint64(len(m.ID)))
 | |
| 		i--
 | |
| 		dAtA[i] = 0xa
 | |
| 	}
 | |
| 	return len(dAtA) - i, nil
 | |
| }
 | |
| 
 | |
| func (m *ContainerCreate_Runtime) 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 *ContainerCreate_Runtime) MarshalTo(dAtA []byte) (int, error) {
 | |
| 	size := m.Size()
 | |
| 	return m.MarshalToSizedBuffer(dAtA[:size])
 | |
| }
 | |
| 
 | |
| func (m *ContainerCreate_Runtime) 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 = encodeVarintContainer(dAtA, i, uint64(size))
 | |
| 		}
 | |
| 		i--
 | |
| 		dAtA[i] = 0x12
 | |
| 	}
 | |
| 	if len(m.Name) > 0 {
 | |
| 		i -= len(m.Name)
 | |
| 		copy(dAtA[i:], m.Name)
 | |
| 		i = encodeVarintContainer(dAtA, i, uint64(len(m.Name)))
 | |
| 		i--
 | |
| 		dAtA[i] = 0xa
 | |
| 	}
 | |
| 	return len(dAtA) - i, nil
 | |
| }
 | |
| 
 | |
| func (m *ContainerUpdate) 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 *ContainerUpdate) MarshalTo(dAtA []byte) (int, error) {
 | |
| 	size := m.Size()
 | |
| 	return m.MarshalToSizedBuffer(dAtA[:size])
 | |
| }
 | |
| 
 | |
| func (m *ContainerUpdate) 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.SnapshotKey) > 0 {
 | |
| 		i -= len(m.SnapshotKey)
 | |
| 		copy(dAtA[i:], m.SnapshotKey)
 | |
| 		i = encodeVarintContainer(dAtA, i, uint64(len(m.SnapshotKey)))
 | |
| 		i--
 | |
| 		dAtA[i] = 0x22
 | |
| 	}
 | |
| 	if len(m.Labels) > 0 {
 | |
| 		for k := range m.Labels {
 | |
| 			v := m.Labels[k]
 | |
| 			baseI := i
 | |
| 			i -= len(v)
 | |
| 			copy(dAtA[i:], v)
 | |
| 			i = encodeVarintContainer(dAtA, i, uint64(len(v)))
 | |
| 			i--
 | |
| 			dAtA[i] = 0x12
 | |
| 			i -= len(k)
 | |
| 			copy(dAtA[i:], k)
 | |
| 			i = encodeVarintContainer(dAtA, i, uint64(len(k)))
 | |
| 			i--
 | |
| 			dAtA[i] = 0xa
 | |
| 			i = encodeVarintContainer(dAtA, i, uint64(baseI-i))
 | |
| 			i--
 | |
| 			dAtA[i] = 0x1a
 | |
| 		}
 | |
| 	}
 | |
| 	if len(m.Image) > 0 {
 | |
| 		i -= len(m.Image)
 | |
| 		copy(dAtA[i:], m.Image)
 | |
| 		i = encodeVarintContainer(dAtA, i, uint64(len(m.Image)))
 | |
| 		i--
 | |
| 		dAtA[i] = 0x12
 | |
| 	}
 | |
| 	if len(m.ID) > 0 {
 | |
| 		i -= len(m.ID)
 | |
| 		copy(dAtA[i:], m.ID)
 | |
| 		i = encodeVarintContainer(dAtA, i, uint64(len(m.ID)))
 | |
| 		i--
 | |
| 		dAtA[i] = 0xa
 | |
| 	}
 | |
| 	return len(dAtA) - i, nil
 | |
| }
 | |
| 
 | |
| func (m *ContainerDelete) 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 *ContainerDelete) MarshalTo(dAtA []byte) (int, error) {
 | |
| 	size := m.Size()
 | |
| 	return m.MarshalToSizedBuffer(dAtA[:size])
 | |
| }
 | |
| 
 | |
| func (m *ContainerDelete) 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.ID) > 0 {
 | |
| 		i -= len(m.ID)
 | |
| 		copy(dAtA[i:], m.ID)
 | |
| 		i = encodeVarintContainer(dAtA, i, uint64(len(m.ID)))
 | |
| 		i--
 | |
| 		dAtA[i] = 0xa
 | |
| 	}
 | |
| 	return len(dAtA) - i, nil
 | |
| }
 | |
| 
 | |
| func encodeVarintContainer(dAtA []byte, offset int, v uint64) int {
 | |
| 	offset -= sovContainer(v)
 | |
| 	base := offset
 | |
| 	for v >= 1<<7 {
 | |
| 		dAtA[offset] = uint8(v&0x7f | 0x80)
 | |
| 		v >>= 7
 | |
| 		offset++
 | |
| 	}
 | |
| 	dAtA[offset] = uint8(v)
 | |
| 	return base
 | |
| }
 | |
| func (m *ContainerCreate) Size() (n int) {
 | |
| 	if m == nil {
 | |
| 		return 0
 | |
| 	}
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	l = len(m.ID)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovContainer(uint64(l))
 | |
| 	}
 | |
| 	l = len(m.Image)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovContainer(uint64(l))
 | |
| 	}
 | |
| 	if m.Runtime != nil {
 | |
| 		l = m.Runtime.Size()
 | |
| 		n += 1 + l + sovContainer(uint64(l))
 | |
| 	}
 | |
| 	if m.XXX_unrecognized != nil {
 | |
| 		n += len(m.XXX_unrecognized)
 | |
| 	}
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *ContainerCreate_Runtime) Size() (n int) {
 | |
| 	if m == nil {
 | |
| 		return 0
 | |
| 	}
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	l = len(m.Name)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovContainer(uint64(l))
 | |
| 	}
 | |
| 	if m.Options != nil {
 | |
| 		l = m.Options.Size()
 | |
| 		n += 1 + l + sovContainer(uint64(l))
 | |
| 	}
 | |
| 	if m.XXX_unrecognized != nil {
 | |
| 		n += len(m.XXX_unrecognized)
 | |
| 	}
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *ContainerUpdate) Size() (n int) {
 | |
| 	if m == nil {
 | |
| 		return 0
 | |
| 	}
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	l = len(m.ID)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovContainer(uint64(l))
 | |
| 	}
 | |
| 	l = len(m.Image)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovContainer(uint64(l))
 | |
| 	}
 | |
| 	if len(m.Labels) > 0 {
 | |
| 		for k, v := range m.Labels {
 | |
| 			_ = k
 | |
| 			_ = v
 | |
| 			mapEntrySize := 1 + len(k) + sovContainer(uint64(len(k))) + 1 + len(v) + sovContainer(uint64(len(v)))
 | |
| 			n += mapEntrySize + 1 + sovContainer(uint64(mapEntrySize))
 | |
| 		}
 | |
| 	}
 | |
| 	l = len(m.SnapshotKey)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovContainer(uint64(l))
 | |
| 	}
 | |
| 	if m.XXX_unrecognized != nil {
 | |
| 		n += len(m.XXX_unrecognized)
 | |
| 	}
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func (m *ContainerDelete) Size() (n int) {
 | |
| 	if m == nil {
 | |
| 		return 0
 | |
| 	}
 | |
| 	var l int
 | |
| 	_ = l
 | |
| 	l = len(m.ID)
 | |
| 	if l > 0 {
 | |
| 		n += 1 + l + sovContainer(uint64(l))
 | |
| 	}
 | |
| 	if m.XXX_unrecognized != nil {
 | |
| 		n += len(m.XXX_unrecognized)
 | |
| 	}
 | |
| 	return n
 | |
| }
 | |
| 
 | |
| func sovContainer(x uint64) (n int) {
 | |
| 	return (math_bits.Len64(x|1) + 6) / 7
 | |
| }
 | |
| func sozContainer(x uint64) (n int) {
 | |
| 	return sovContainer(uint64((x << 1) ^ uint64((int64(x) >> 63))))
 | |
| }
 | |
| func (this *ContainerCreate) String() string {
 | |
| 	if this == nil {
 | |
| 		return "nil"
 | |
| 	}
 | |
| 	s := strings.Join([]string{`&ContainerCreate{`,
 | |
| 		`ID:` + fmt.Sprintf("%v", this.ID) + `,`,
 | |
| 		`Image:` + fmt.Sprintf("%v", this.Image) + `,`,
 | |
| 		`Runtime:` + strings.Replace(fmt.Sprintf("%v", this.Runtime), "ContainerCreate_Runtime", "ContainerCreate_Runtime", 1) + `,`,
 | |
| 		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
 | |
| 		`}`,
 | |
| 	}, "")
 | |
| 	return s
 | |
| }
 | |
| func (this *ContainerCreate_Runtime) String() string {
 | |
| 	if this == nil {
 | |
| 		return "nil"
 | |
| 	}
 | |
| 	s := strings.Join([]string{`&ContainerCreate_Runtime{`,
 | |
| 		`Name:` + fmt.Sprintf("%v", this.Name) + `,`,
 | |
| 		`Options:` + strings.Replace(fmt.Sprintf("%v", this.Options), "Any", "types.Any", 1) + `,`,
 | |
| 		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
 | |
| 		`}`,
 | |
| 	}, "")
 | |
| 	return s
 | |
| }
 | |
| func (this *ContainerUpdate) String() string {
 | |
| 	if this == nil {
 | |
| 		return "nil"
 | |
| 	}
 | |
| 	keysForLabels := make([]string, 0, len(this.Labels))
 | |
| 	for k, _ := range this.Labels {
 | |
| 		keysForLabels = append(keysForLabels, k)
 | |
| 	}
 | |
| 	github_com_gogo_protobuf_sortkeys.Strings(keysForLabels)
 | |
| 	mapStringForLabels := "map[string]string{"
 | |
| 	for _, k := range keysForLabels {
 | |
| 		mapStringForLabels += fmt.Sprintf("%v: %v,", k, this.Labels[k])
 | |
| 	}
 | |
| 	mapStringForLabels += "}"
 | |
| 	s := strings.Join([]string{`&ContainerUpdate{`,
 | |
| 		`ID:` + fmt.Sprintf("%v", this.ID) + `,`,
 | |
| 		`Image:` + fmt.Sprintf("%v", this.Image) + `,`,
 | |
| 		`Labels:` + mapStringForLabels + `,`,
 | |
| 		`SnapshotKey:` + fmt.Sprintf("%v", this.SnapshotKey) + `,`,
 | |
| 		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
 | |
| 		`}`,
 | |
| 	}, "")
 | |
| 	return s
 | |
| }
 | |
| func (this *ContainerDelete) String() string {
 | |
| 	if this == nil {
 | |
| 		return "nil"
 | |
| 	}
 | |
| 	s := strings.Join([]string{`&ContainerDelete{`,
 | |
| 		`ID:` + fmt.Sprintf("%v", this.ID) + `,`,
 | |
| 		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
 | |
| 		`}`,
 | |
| 	}, "")
 | |
| 	return s
 | |
| }
 | |
| func valueToStringContainer(v interface{}) string {
 | |
| 	rv := reflect.ValueOf(v)
 | |
| 	if rv.IsNil() {
 | |
| 		return "nil"
 | |
| 	}
 | |
| 	pv := reflect.Indirect(rv).Interface()
 | |
| 	return fmt.Sprintf("*%v", pv)
 | |
| }
 | |
| func (m *ContainerCreate) 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 ErrIntOverflowContainer
 | |
| 			}
 | |
| 			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: ContainerCreate: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: ContainerCreate: 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 ErrIntOverflowContainer
 | |
| 				}
 | |
| 				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 ErrInvalidLengthContainer
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex < 0 {
 | |
| 				return ErrInvalidLengthContainer
 | |
| 			}
 | |
| 			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 Image", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowContainer
 | |
| 				}
 | |
| 				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 ErrInvalidLengthContainer
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex < 0 {
 | |
| 				return ErrInvalidLengthContainer
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Image = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		case 3:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Runtime", wireType)
 | |
| 			}
 | |
| 			var msglen int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowContainer
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				msglen |= int(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if msglen < 0 {
 | |
| 				return ErrInvalidLengthContainer
 | |
| 			}
 | |
| 			postIndex := iNdEx + msglen
 | |
| 			if postIndex < 0 {
 | |
| 				return ErrInvalidLengthContainer
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			if m.Runtime == nil {
 | |
| 				m.Runtime = &ContainerCreate_Runtime{}
 | |
| 			}
 | |
| 			if err := m.Runtime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := skipContainer(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if skippy < 0 {
 | |
| 				return ErrInvalidLengthContainer
 | |
| 			}
 | |
| 			if (iNdEx + skippy) < 0 {
 | |
| 				return ErrInvalidLengthContainer
 | |
| 			}
 | |
| 			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 *ContainerCreate_Runtime) 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 ErrIntOverflowContainer
 | |
| 			}
 | |
| 			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: Runtime: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: Runtime: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 		}
 | |
| 		switch fieldNum {
 | |
| 		case 1:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowContainer
 | |
| 				}
 | |
| 				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 ErrInvalidLengthContainer
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex < 0 {
 | |
| 				return ErrInvalidLengthContainer
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Name = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		case 2:
 | |
| 			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 ErrIntOverflowContainer
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				msglen |= int(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if msglen < 0 {
 | |
| 				return ErrInvalidLengthContainer
 | |
| 			}
 | |
| 			postIndex := iNdEx + msglen
 | |
| 			if postIndex < 0 {
 | |
| 				return ErrInvalidLengthContainer
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			if m.Options == nil {
 | |
| 				m.Options = &types.Any{}
 | |
| 			}
 | |
| 			if err := m.Options.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := skipContainer(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if skippy < 0 {
 | |
| 				return ErrInvalidLengthContainer
 | |
| 			}
 | |
| 			if (iNdEx + skippy) < 0 {
 | |
| 				return ErrInvalidLengthContainer
 | |
| 			}
 | |
| 			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 *ContainerUpdate) 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 ErrIntOverflowContainer
 | |
| 			}
 | |
| 			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: ContainerUpdate: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: ContainerUpdate: 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 ErrIntOverflowContainer
 | |
| 				}
 | |
| 				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 ErrInvalidLengthContainer
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex < 0 {
 | |
| 				return ErrInvalidLengthContainer
 | |
| 			}
 | |
| 			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 Image", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowContainer
 | |
| 				}
 | |
| 				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 ErrInvalidLengthContainer
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex < 0 {
 | |
| 				return ErrInvalidLengthContainer
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.Image = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		case 3:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
 | |
| 			}
 | |
| 			var msglen int
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowContainer
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				msglen |= int(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			if msglen < 0 {
 | |
| 				return ErrInvalidLengthContainer
 | |
| 			}
 | |
| 			postIndex := iNdEx + msglen
 | |
| 			if postIndex < 0 {
 | |
| 				return ErrInvalidLengthContainer
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			if m.Labels == nil {
 | |
| 				m.Labels = 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 ErrIntOverflowContainer
 | |
| 					}
 | |
| 					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 ErrIntOverflowContainer
 | |
| 						}
 | |
| 						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 ErrInvalidLengthContainer
 | |
| 					}
 | |
| 					postStringIndexmapkey := iNdEx + intStringLenmapkey
 | |
| 					if postStringIndexmapkey < 0 {
 | |
| 						return ErrInvalidLengthContainer
 | |
| 					}
 | |
| 					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 ErrIntOverflowContainer
 | |
| 						}
 | |
| 						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 ErrInvalidLengthContainer
 | |
| 					}
 | |
| 					postStringIndexmapvalue := iNdEx + intStringLenmapvalue
 | |
| 					if postStringIndexmapvalue < 0 {
 | |
| 						return ErrInvalidLengthContainer
 | |
| 					}
 | |
| 					if postStringIndexmapvalue > l {
 | |
| 						return io.ErrUnexpectedEOF
 | |
| 					}
 | |
| 					mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
 | |
| 					iNdEx = postStringIndexmapvalue
 | |
| 				} else {
 | |
| 					iNdEx = entryPreIndex
 | |
| 					skippy, err := skipContainer(dAtA[iNdEx:])
 | |
| 					if err != nil {
 | |
| 						return err
 | |
| 					}
 | |
| 					if skippy < 0 {
 | |
| 						return ErrInvalidLengthContainer
 | |
| 					}
 | |
| 					if (iNdEx + skippy) > postIndex {
 | |
| 						return io.ErrUnexpectedEOF
 | |
| 					}
 | |
| 					iNdEx += skippy
 | |
| 				}
 | |
| 			}
 | |
| 			m.Labels[mapkey] = mapvalue
 | |
| 			iNdEx = postIndex
 | |
| 		case 4:
 | |
| 			if wireType != 2 {
 | |
| 				return fmt.Errorf("proto: wrong wireType = %d for field SnapshotKey", wireType)
 | |
| 			}
 | |
| 			var stringLen uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return ErrIntOverflowContainer
 | |
| 				}
 | |
| 				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 ErrInvalidLengthContainer
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex < 0 {
 | |
| 				return ErrInvalidLengthContainer
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.SnapshotKey = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := skipContainer(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if skippy < 0 {
 | |
| 				return ErrInvalidLengthContainer
 | |
| 			}
 | |
| 			if (iNdEx + skippy) < 0 {
 | |
| 				return ErrInvalidLengthContainer
 | |
| 			}
 | |
| 			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 *ContainerDelete) 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 ErrIntOverflowContainer
 | |
| 			}
 | |
| 			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: ContainerDelete: wiretype end group for non-group")
 | |
| 		}
 | |
| 		if fieldNum <= 0 {
 | |
| 			return fmt.Errorf("proto: ContainerDelete: 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 ErrIntOverflowContainer
 | |
| 				}
 | |
| 				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 ErrInvalidLengthContainer
 | |
| 			}
 | |
| 			postIndex := iNdEx + intStringLen
 | |
| 			if postIndex < 0 {
 | |
| 				return ErrInvalidLengthContainer
 | |
| 			}
 | |
| 			if postIndex > l {
 | |
| 				return io.ErrUnexpectedEOF
 | |
| 			}
 | |
| 			m.ID = string(dAtA[iNdEx:postIndex])
 | |
| 			iNdEx = postIndex
 | |
| 		default:
 | |
| 			iNdEx = preIndex
 | |
| 			skippy, err := skipContainer(dAtA[iNdEx:])
 | |
| 			if err != nil {
 | |
| 				return err
 | |
| 			}
 | |
| 			if skippy < 0 {
 | |
| 				return ErrInvalidLengthContainer
 | |
| 			}
 | |
| 			if (iNdEx + skippy) < 0 {
 | |
| 				return ErrInvalidLengthContainer
 | |
| 			}
 | |
| 			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 skipContainer(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, ErrIntOverflowContainer
 | |
| 			}
 | |
| 			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, ErrIntOverflowContainer
 | |
| 				}
 | |
| 				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, ErrIntOverflowContainer
 | |
| 				}
 | |
| 				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, ErrInvalidLengthContainer
 | |
| 			}
 | |
| 			iNdEx += length
 | |
| 		case 3:
 | |
| 			depth++
 | |
| 		case 4:
 | |
| 			if depth == 0 {
 | |
| 				return 0, ErrUnexpectedEndOfGroupContainer
 | |
| 			}
 | |
| 			depth--
 | |
| 		case 5:
 | |
| 			iNdEx += 4
 | |
| 		default:
 | |
| 			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
 | |
| 		}
 | |
| 		if iNdEx < 0 {
 | |
| 			return 0, ErrInvalidLengthContainer
 | |
| 		}
 | |
| 		if depth == 0 {
 | |
| 			return iNdEx, nil
 | |
| 		}
 | |
| 	}
 | |
| 	return 0, io.ErrUnexpectedEOF
 | |
| }
 | |
| 
 | |
| var (
 | |
| 	ErrInvalidLengthContainer        = fmt.Errorf("proto: negative length found during unmarshaling")
 | |
| 	ErrIntOverflowContainer          = fmt.Errorf("proto: integer overflow")
 | |
| 	ErrUnexpectedEndOfGroupContainer = fmt.Errorf("proto: unexpected end of group")
 | |
| )
 | 
