2017-10-02 04:59:34 +00:00
|
|
|
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
2017-06-06 18:01:18 +00:00
|
|
|
// source: ops.proto
|
|
|
|
|
2019-03-06 00:48:39 +00:00
|
|
|
package pb
|
2017-06-06 18:01:18 +00:00
|
|
|
|
2019-03-06 00:48:39 +00:00
|
|
|
/*
|
2018-02-27 07:06:01 +00:00
|
|
|
Package pb provides the protobuf definition of LLB: low-level builder instruction.
|
|
|
|
LLB is DAG-structured; Op represents a vertex, and Definition represents a graph.
|
2017-06-06 18:01:18 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
import proto "github.com/gogo/protobuf/proto"
|
|
|
|
import fmt "fmt"
|
|
|
|
import math "math"
|
2017-06-21 21:48:21 +00:00
|
|
|
import _ "github.com/gogo/protobuf/gogoproto"
|
2017-06-06 18:01:18 +00:00
|
|
|
|
2017-06-21 21:48:21 +00:00
|
|
|
import github_com_opencontainers_go_digest "github.com/opencontainers/go-digest"
|
2018-07-18 22:32:37 +00:00
|
|
|
import github_com_moby_buildkit_util_apicaps "github.com/moby/buildkit/util/apicaps"
|
2017-06-06 18:01:18 +00:00
|
|
|
|
2019-03-06 00:48:39 +00:00
|
|
|
import github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
|
2018-09-17 22:19:04 +00:00
|
|
|
|
2017-06-06 18:01:18 +00:00
|
|
|
import io "io"
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ = proto.Marshal
|
|
|
|
var _ = fmt.Errorf
|
|
|
|
var _ = math.Inf
|
|
|
|
|
2017-10-02 04:59:34 +00:00
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the proto package it is being compiled against.
|
|
|
|
// A compilation error at this line likely means your copy of the
|
|
|
|
// proto package needs to be updated.
|
|
|
|
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
|
|
2018-08-04 19:42:01 +00:00
|
|
|
type NetMode int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
NetMode_UNSET NetMode = 0
|
|
|
|
NetMode_HOST NetMode = 1
|
|
|
|
NetMode_NONE NetMode = 2
|
|
|
|
)
|
|
|
|
|
|
|
|
var NetMode_name = map[int32]string{
|
|
|
|
0: "UNSET",
|
|
|
|
1: "HOST",
|
|
|
|
2: "NONE",
|
|
|
|
}
|
|
|
|
var NetMode_value = map[string]int32{
|
|
|
|
"UNSET": 0,
|
|
|
|
"HOST": 1,
|
|
|
|
"NONE": 2,
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x NetMode) String() string {
|
|
|
|
return proto.EnumName(NetMode_name, int32(x))
|
|
|
|
}
|
2019-03-06 00:48:39 +00:00
|
|
|
func (NetMode) EnumDescriptor() ([]byte, []int) {
|
2019-03-11 17:19:24 +00:00
|
|
|
return fileDescriptor_ops_8d64813b9835ab08, []int{0}
|
2019-03-06 00:48:39 +00:00
|
|
|
}
|
2018-08-04 19:42:01 +00:00
|
|
|
|
2018-06-18 20:57:36 +00:00
|
|
|
// MountType defines a type of a mount from a supported set
|
2018-05-15 19:09:09 +00:00
|
|
|
type MountType int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
MountType_BIND MountType = 0
|
|
|
|
MountType_SECRET MountType = 1
|
|
|
|
MountType_SSH MountType = 2
|
|
|
|
MountType_CACHE MountType = 3
|
2018-06-08 05:28:52 +00:00
|
|
|
MountType_TMPFS MountType = 4
|
2018-05-15 19:09:09 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
var MountType_name = map[int32]string{
|
|
|
|
0: "BIND",
|
|
|
|
1: "SECRET",
|
|
|
|
2: "SSH",
|
|
|
|
3: "CACHE",
|
2018-06-08 05:28:52 +00:00
|
|
|
4: "TMPFS",
|
2018-05-15 19:09:09 +00:00
|
|
|
}
|
|
|
|
var MountType_value = map[string]int32{
|
|
|
|
"BIND": 0,
|
|
|
|
"SECRET": 1,
|
|
|
|
"SSH": 2,
|
|
|
|
"CACHE": 3,
|
2018-06-08 05:28:52 +00:00
|
|
|
"TMPFS": 4,
|
2018-05-15 19:09:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x MountType) String() string {
|
|
|
|
return proto.EnumName(MountType_name, int32(x))
|
|
|
|
}
|
2019-03-06 00:48:39 +00:00
|
|
|
func (MountType) EnumDescriptor() ([]byte, []int) {
|
2019-03-11 17:19:24 +00:00
|
|
|
return fileDescriptor_ops_8d64813b9835ab08, []int{1}
|
2019-03-06 00:48:39 +00:00
|
|
|
}
|
2018-05-15 19:09:09 +00:00
|
|
|
|
2018-06-18 20:57:36 +00:00
|
|
|
// CacheSharingOpt defines different sharing modes for cache mount
|
|
|
|
type CacheSharingOpt int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
// SHARED cache mount can be used concurrently by multiple writers
|
|
|
|
CacheSharingOpt_SHARED CacheSharingOpt = 0
|
|
|
|
// PRIVATE creates a new mount if there are multiple writers
|
|
|
|
CacheSharingOpt_PRIVATE CacheSharingOpt = 1
|
|
|
|
// LOCKED pauses second writer until first one releases the mount
|
|
|
|
CacheSharingOpt_LOCKED CacheSharingOpt = 2
|
|
|
|
)
|
|
|
|
|
|
|
|
var CacheSharingOpt_name = map[int32]string{
|
|
|
|
0: "SHARED",
|
|
|
|
1: "PRIVATE",
|
|
|
|
2: "LOCKED",
|
|
|
|
}
|
|
|
|
var CacheSharingOpt_value = map[string]int32{
|
|
|
|
"SHARED": 0,
|
|
|
|
"PRIVATE": 1,
|
|
|
|
"LOCKED": 2,
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x CacheSharingOpt) String() string {
|
|
|
|
return proto.EnumName(CacheSharingOpt_name, int32(x))
|
|
|
|
}
|
2019-03-06 00:48:39 +00:00
|
|
|
func (CacheSharingOpt) EnumDescriptor() ([]byte, []int) {
|
2019-03-11 17:19:24 +00:00
|
|
|
return fileDescriptor_ops_8d64813b9835ab08, []int{2}
|
2019-03-06 00:48:39 +00:00
|
|
|
}
|
2018-06-18 20:57:36 +00:00
|
|
|
|
2018-02-27 07:06:01 +00:00
|
|
|
// Op represents a vertex of the LLB DAG.
|
2017-06-06 18:01:18 +00:00
|
|
|
type Op struct {
|
2018-02-27 07:06:01 +00:00
|
|
|
// inputs is a set of input edges.
|
2019-03-06 00:48:39 +00:00
|
|
|
Inputs []*Input `protobuf:"bytes,1,rep,name=inputs,proto3" json:"inputs,omitempty"`
|
2017-06-06 18:01:18 +00:00
|
|
|
// Types that are valid to be assigned to Op:
|
|
|
|
// *Op_Exec
|
|
|
|
// *Op_Source
|
2019-01-23 21:05:59 +00:00
|
|
|
// *Op_File
|
2017-07-21 17:58:24 +00:00
|
|
|
// *Op_Build
|
2018-06-21 21:09:38 +00:00
|
|
|
Op isOp_Op `protobuf_oneof:"op"`
|
2019-03-06 00:48:39 +00:00
|
|
|
Platform *Platform `protobuf:"bytes,10,opt,name=platform,proto3" json:"platform,omitempty"`
|
|
|
|
Constraints *WorkerConstraints `protobuf:"bytes,11,opt,name=constraints,proto3" json:"constraints,omitempty"`
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
|
2019-03-06 00:48:39 +00:00
|
|
|
func (m *Op) Reset() { *m = Op{} }
|
|
|
|
func (m *Op) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Op) ProtoMessage() {}
|
|
|
|
func (*Op) Descriptor() ([]byte, []int) {
|
2019-03-11 17:19:24 +00:00
|
|
|
return fileDescriptor_ops_8d64813b9835ab08, []int{0}
|
2019-03-06 00:48:39 +00:00
|
|
|
}
|
|
|
|
func (m *Op) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *Op) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalTo(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (dst *Op) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Op.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *Op) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *Op) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Op.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_Op proto.InternalMessageInfo
|
2017-06-06 18:01:18 +00:00
|
|
|
|
|
|
|
type isOp_Op interface {
|
|
|
|
isOp_Op()
|
|
|
|
MarshalTo([]byte) (int, error)
|
|
|
|
Size() int
|
|
|
|
}
|
|
|
|
|
|
|
|
type Op_Exec struct {
|
2019-03-06 00:48:39 +00:00
|
|
|
Exec *ExecOp `protobuf:"bytes,2,opt,name=exec,proto3,oneof"`
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
type Op_Source struct {
|
2019-03-06 00:48:39 +00:00
|
|
|
Source *SourceOp `protobuf:"bytes,3,opt,name=source,proto3,oneof"`
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
type Op_File struct {
|
|
|
|
File *FileOp `protobuf:"bytes,4,opt,name=file,proto3,oneof"`
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2017-07-21 17:58:24 +00:00
|
|
|
type Op_Build struct {
|
2019-03-06 00:48:39 +00:00
|
|
|
Build *BuildOp `protobuf:"bytes,5,opt,name=build,proto3,oneof"`
|
2017-07-21 17:58:24 +00:00
|
|
|
}
|
2017-06-06 18:01:18 +00:00
|
|
|
|
|
|
|
func (*Op_Exec) isOp_Op() {}
|
|
|
|
func (*Op_Source) isOp_Op() {}
|
2019-01-23 21:05:59 +00:00
|
|
|
func (*Op_File) isOp_Op() {}
|
2017-07-21 17:58:24 +00:00
|
|
|
func (*Op_Build) isOp_Op() {}
|
2017-06-06 18:01:18 +00:00
|
|
|
|
|
|
|
func (m *Op) GetOp() isOp_Op {
|
|
|
|
if m != nil {
|
|
|
|
return m.Op
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2017-06-09 01:16:19 +00:00
|
|
|
func (m *Op) GetInputs() []*Input {
|
2017-06-06 18:01:18 +00:00
|
|
|
if m != nil {
|
|
|
|
return m.Inputs
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Op) GetExec() *ExecOp {
|
|
|
|
if x, ok := m.GetOp().(*Op_Exec); ok {
|
|
|
|
return x.Exec
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Op) GetSource() *SourceOp {
|
|
|
|
if x, ok := m.GetOp().(*Op_Source); ok {
|
|
|
|
return x.Source
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *Op) GetFile() *FileOp {
|
|
|
|
if x, ok := m.GetOp().(*Op_File); ok {
|
|
|
|
return x.File
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2017-07-21 17:58:24 +00:00
|
|
|
func (m *Op) GetBuild() *BuildOp {
|
|
|
|
if x, ok := m.GetOp().(*Op_Build); ok {
|
|
|
|
return x.Build
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-06-21 21:09:38 +00:00
|
|
|
func (m *Op) GetPlatform() *Platform {
|
|
|
|
if m != nil {
|
|
|
|
return m.Platform
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Op) GetConstraints() *WorkerConstraints {
|
|
|
|
if m != nil {
|
|
|
|
return m.Constraints
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2017-06-06 18:01:18 +00:00
|
|
|
// XXX_OneofFuncs is for the internal use of the proto package.
|
2017-10-02 04:59:34 +00:00
|
|
|
func (*Op) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
|
|
|
|
return _Op_OneofMarshaler, _Op_OneofUnmarshaler, _Op_OneofSizer, []interface{}{
|
2017-06-06 18:01:18 +00:00
|
|
|
(*Op_Exec)(nil),
|
|
|
|
(*Op_Source)(nil),
|
2019-01-23 21:05:59 +00:00
|
|
|
(*Op_File)(nil),
|
2017-07-21 17:58:24 +00:00
|
|
|
(*Op_Build)(nil),
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func _Op_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
|
|
|
m := msg.(*Op)
|
|
|
|
// op
|
|
|
|
switch x := m.Op.(type) {
|
|
|
|
case *Op_Exec:
|
|
|
|
_ = b.EncodeVarint(2<<3 | proto.WireBytes)
|
|
|
|
if err := b.EncodeMessage(x.Exec); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
case *Op_Source:
|
|
|
|
_ = b.EncodeVarint(3<<3 | proto.WireBytes)
|
|
|
|
if err := b.EncodeMessage(x.Source); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
case *Op_File:
|
2017-06-06 18:01:18 +00:00
|
|
|
_ = b.EncodeVarint(4<<3 | proto.WireBytes)
|
2019-01-23 21:05:59 +00:00
|
|
|
if err := b.EncodeMessage(x.File); err != nil {
|
2017-06-06 18:01:18 +00:00
|
|
|
return err
|
|
|
|
}
|
2017-07-21 17:58:24 +00:00
|
|
|
case *Op_Build:
|
|
|
|
_ = b.EncodeVarint(5<<3 | proto.WireBytes)
|
|
|
|
if err := b.EncodeMessage(x.Build); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2017-06-06 18:01:18 +00:00
|
|
|
case nil:
|
|
|
|
default:
|
|
|
|
return fmt.Errorf("Op.Op has unexpected type %T", x)
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func _Op_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
|
|
|
|
m := msg.(*Op)
|
|
|
|
switch tag {
|
|
|
|
case 2: // op.exec
|
|
|
|
if wire != proto.WireBytes {
|
|
|
|
return true, proto.ErrInternalBadWireType
|
|
|
|
}
|
|
|
|
msg := new(ExecOp)
|
|
|
|
err := b.DecodeMessage(msg)
|
|
|
|
m.Op = &Op_Exec{msg}
|
|
|
|
return true, err
|
|
|
|
case 3: // op.source
|
|
|
|
if wire != proto.WireBytes {
|
|
|
|
return true, proto.ErrInternalBadWireType
|
|
|
|
}
|
|
|
|
msg := new(SourceOp)
|
|
|
|
err := b.DecodeMessage(msg)
|
|
|
|
m.Op = &Op_Source{msg}
|
|
|
|
return true, err
|
2019-01-23 21:05:59 +00:00
|
|
|
case 4: // op.file
|
2017-06-06 18:01:18 +00:00
|
|
|
if wire != proto.WireBytes {
|
|
|
|
return true, proto.ErrInternalBadWireType
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
msg := new(FileOp)
|
2017-06-06 18:01:18 +00:00
|
|
|
err := b.DecodeMessage(msg)
|
2019-01-23 21:05:59 +00:00
|
|
|
m.Op = &Op_File{msg}
|
2017-06-06 18:01:18 +00:00
|
|
|
return true, err
|
2017-07-21 17:58:24 +00:00
|
|
|
case 5: // op.build
|
|
|
|
if wire != proto.WireBytes {
|
|
|
|
return true, proto.ErrInternalBadWireType
|
|
|
|
}
|
|
|
|
msg := new(BuildOp)
|
|
|
|
err := b.DecodeMessage(msg)
|
|
|
|
m.Op = &Op_Build{msg}
|
|
|
|
return true, err
|
2017-06-06 18:01:18 +00:00
|
|
|
default:
|
|
|
|
return false, nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-02 04:59:34 +00:00
|
|
|
func _Op_OneofSizer(msg proto.Message) (n int) {
|
|
|
|
m := msg.(*Op)
|
|
|
|
// op
|
|
|
|
switch x := m.Op.(type) {
|
|
|
|
case *Op_Exec:
|
|
|
|
s := proto.Size(x.Exec)
|
2019-03-06 00:48:39 +00:00
|
|
|
n += 1 // tag and wire
|
2017-10-02 04:59:34 +00:00
|
|
|
n += proto.SizeVarint(uint64(s))
|
|
|
|
n += s
|
|
|
|
case *Op_Source:
|
|
|
|
s := proto.Size(x.Source)
|
2019-03-06 00:48:39 +00:00
|
|
|
n += 1 // tag and wire
|
2017-10-02 04:59:34 +00:00
|
|
|
n += proto.SizeVarint(uint64(s))
|
|
|
|
n += s
|
2019-01-23 21:05:59 +00:00
|
|
|
case *Op_File:
|
|
|
|
s := proto.Size(x.File)
|
2019-03-06 00:48:39 +00:00
|
|
|
n += 1 // tag and wire
|
2017-10-02 04:59:34 +00:00
|
|
|
n += proto.SizeVarint(uint64(s))
|
|
|
|
n += s
|
|
|
|
case *Op_Build:
|
|
|
|
s := proto.Size(x.Build)
|
2019-03-06 00:48:39 +00:00
|
|
|
n += 1 // tag and wire
|
2017-10-02 04:59:34 +00:00
|
|
|
n += proto.SizeVarint(uint64(s))
|
|
|
|
n += s
|
|
|
|
case nil:
|
|
|
|
default:
|
|
|
|
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2018-06-21 21:09:38 +00:00
|
|
|
// Platform is github.com/opencontainers/image-spec/specs-go/v1.Platform
|
|
|
|
type Platform struct {
|
|
|
|
Architecture string `protobuf:"bytes,1,opt,name=Architecture,proto3" json:"Architecture,omitempty"`
|
|
|
|
OS string `protobuf:"bytes,2,opt,name=OS,proto3" json:"OS,omitempty"`
|
|
|
|
Variant string `protobuf:"bytes,3,opt,name=Variant,proto3" json:"Variant,omitempty"`
|
|
|
|
OSVersion string `protobuf:"bytes,4,opt,name=OSVersion,proto3" json:"OSVersion,omitempty"`
|
2019-03-06 00:48:39 +00:00
|
|
|
OSFeatures []string `protobuf:"bytes,5,rep,name=OSFeatures,proto3" json:"OSFeatures,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Platform) Reset() { *m = Platform{} }
|
|
|
|
func (m *Platform) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Platform) ProtoMessage() {}
|
|
|
|
func (*Platform) Descriptor() ([]byte, []int) {
|
2019-03-11 17:19:24 +00:00
|
|
|
return fileDescriptor_ops_8d64813b9835ab08, []int{1}
|
2019-03-06 00:48:39 +00:00
|
|
|
}
|
|
|
|
func (m *Platform) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *Platform) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalTo(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (dst *Platform) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Platform.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *Platform) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *Platform) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Platform.DiscardUnknown(m)
|
2018-06-21 21:09:38 +00:00
|
|
|
}
|
|
|
|
|
2019-03-06 00:48:39 +00:00
|
|
|
var xxx_messageInfo_Platform proto.InternalMessageInfo
|
2018-06-21 21:09:38 +00:00
|
|
|
|
|
|
|
func (m *Platform) GetArchitecture() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Architecture
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Platform) GetOS() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.OS
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Platform) GetVariant() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Variant
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Platform) GetOSVersion() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.OSVersion
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Platform) GetOSFeatures() []string {
|
|
|
|
if m != nil {
|
|
|
|
return m.OSFeatures
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-02-27 07:06:01 +00:00
|
|
|
// Input represents an input edge for an Op.
|
2017-06-09 01:16:19 +00:00
|
|
|
type Input struct {
|
2018-02-27 07:06:01 +00:00
|
|
|
// digest of the marshaled input Op
|
2017-06-21 21:48:21 +00:00
|
|
|
Digest github_com_opencontainers_go_digest.Digest `protobuf:"bytes,1,opt,name=digest,proto3,customtype=github.com/opencontainers/go-digest.Digest" json:"digest"`
|
2018-02-27 07:06:01 +00:00
|
|
|
// output index of the input Op
|
|
|
|
Index OutputIndex `protobuf:"varint,2,opt,name=index,proto3,customtype=OutputIndex" json:"index"`
|
2017-06-09 01:16:19 +00:00
|
|
|
}
|
|
|
|
|
2019-03-06 00:48:39 +00:00
|
|
|
func (m *Input) Reset() { *m = Input{} }
|
|
|
|
func (m *Input) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Input) ProtoMessage() {}
|
|
|
|
func (*Input) Descriptor() ([]byte, []int) {
|
2019-03-11 17:19:24 +00:00
|
|
|
return fileDescriptor_ops_8d64813b9835ab08, []int{2}
|
2019-03-06 00:48:39 +00:00
|
|
|
}
|
|
|
|
func (m *Input) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *Input) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalTo(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (dst *Input) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Input.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *Input) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *Input) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Input.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_Input proto.InternalMessageInfo
|
2017-06-09 01:16:19 +00:00
|
|
|
|
2018-02-27 07:06:01 +00:00
|
|
|
// ExecOp executes a command in a container.
|
2017-06-06 18:01:18 +00:00
|
|
|
type ExecOp struct {
|
2019-03-06 00:48:39 +00:00
|
|
|
Meta *Meta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
|
|
|
Mounts []*Mount `protobuf:"bytes,2,rep,name=mounts,proto3" json:"mounts,omitempty"`
|
2018-08-04 19:42:01 +00:00
|
|
|
Network NetMode `protobuf:"varint,3,opt,name=network,proto3,enum=pb.NetMode" json:"network,omitempty"`
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
|
2019-03-06 00:48:39 +00:00
|
|
|
func (m *ExecOp) Reset() { *m = ExecOp{} }
|
|
|
|
func (m *ExecOp) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ExecOp) ProtoMessage() {}
|
|
|
|
func (*ExecOp) Descriptor() ([]byte, []int) {
|
2019-03-11 17:19:24 +00:00
|
|
|
return fileDescriptor_ops_8d64813b9835ab08, []int{3}
|
2019-03-06 00:48:39 +00:00
|
|
|
}
|
|
|
|
func (m *ExecOp) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *ExecOp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalTo(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (dst *ExecOp) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ExecOp.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *ExecOp) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *ExecOp) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ExecOp.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_ExecOp proto.InternalMessageInfo
|
2017-06-06 18:01:18 +00:00
|
|
|
|
|
|
|
func (m *ExecOp) GetMeta() *Meta {
|
|
|
|
if m != nil {
|
|
|
|
return m.Meta
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ExecOp) GetMounts() []*Mount {
|
|
|
|
if m != nil {
|
|
|
|
return m.Mounts
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-08-04 19:42:01 +00:00
|
|
|
func (m *ExecOp) GetNetwork() NetMode {
|
|
|
|
if m != nil {
|
|
|
|
return m.Network
|
|
|
|
}
|
|
|
|
return NetMode_UNSET
|
|
|
|
}
|
|
|
|
|
2018-02-27 07:06:01 +00:00
|
|
|
// Meta is a set of arguments for ExecOp.
|
2017-10-02 04:59:34 +00:00
|
|
|
// Meta is unrelated to LLB metadata.
|
|
|
|
// FIXME: rename (ExecContext? ExecArgs?)
|
2017-06-06 18:01:18 +00:00
|
|
|
type Meta struct {
|
2019-03-06 00:48:39 +00:00
|
|
|
Args []string `protobuf:"bytes,1,rep,name=args,proto3" json:"args,omitempty"`
|
|
|
|
Env []string `protobuf:"bytes,2,rep,name=env,proto3" json:"env,omitempty"`
|
2018-08-01 21:15:43 +00:00
|
|
|
Cwd string `protobuf:"bytes,3,opt,name=cwd,proto3" json:"cwd,omitempty"`
|
|
|
|
User string `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty"`
|
2019-03-06 00:48:39 +00:00
|
|
|
ProxyEnv *ProxyEnv `protobuf:"bytes,5,opt,name=proxy_env,json=proxyEnv,proto3" json:"proxy_env,omitempty"`
|
|
|
|
ExtraHosts []*HostIP `protobuf:"bytes,6,rep,name=extraHosts,proto3" json:"extraHosts,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Meta) Reset() { *m = Meta{} }
|
|
|
|
func (m *Meta) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Meta) ProtoMessage() {}
|
|
|
|
func (*Meta) Descriptor() ([]byte, []int) {
|
2019-03-11 17:19:24 +00:00
|
|
|
return fileDescriptor_ops_8d64813b9835ab08, []int{4}
|
2019-03-06 00:48:39 +00:00
|
|
|
}
|
|
|
|
func (m *Meta) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *Meta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalTo(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (dst *Meta) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Meta.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *Meta) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *Meta) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Meta.DiscardUnknown(m)
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
|
2019-03-06 00:48:39 +00:00
|
|
|
var xxx_messageInfo_Meta proto.InternalMessageInfo
|
2017-10-02 04:59:34 +00:00
|
|
|
|
|
|
|
func (m *Meta) GetArgs() []string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Args
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Meta) GetEnv() []string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Env
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Meta) GetCwd() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Cwd
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
2017-06-06 18:01:18 +00:00
|
|
|
|
2017-12-11 21:17:07 +00:00
|
|
|
func (m *Meta) GetUser() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.User
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2018-05-20 21:48:35 +00:00
|
|
|
func (m *Meta) GetProxyEnv() *ProxyEnv {
|
|
|
|
if m != nil {
|
|
|
|
return m.ProxyEnv
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-08-01 21:15:43 +00:00
|
|
|
func (m *Meta) GetExtraHosts() []*HostIP {
|
|
|
|
if m != nil {
|
|
|
|
return m.ExtraHosts
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-02-27 07:06:01 +00:00
|
|
|
// Mount specifies how to mount an input Op as a filesystem.
|
2017-06-06 18:01:18 +00:00
|
|
|
type Mount struct {
|
2018-05-15 19:09:09 +00:00
|
|
|
Input InputIndex `protobuf:"varint,1,opt,name=input,proto3,customtype=InputIndex" json:"input"`
|
|
|
|
Selector string `protobuf:"bytes,2,opt,name=selector,proto3" json:"selector,omitempty"`
|
|
|
|
Dest string `protobuf:"bytes,3,opt,name=dest,proto3" json:"dest,omitempty"`
|
|
|
|
Output OutputIndex `protobuf:"varint,4,opt,name=output,proto3,customtype=OutputIndex" json:"output"`
|
|
|
|
Readonly bool `protobuf:"varint,5,opt,name=readonly,proto3" json:"readonly,omitempty"`
|
|
|
|
MountType MountType `protobuf:"varint,6,opt,name=mountType,proto3,enum=pb.MountType" json:"mountType,omitempty"`
|
2019-03-06 00:48:39 +00:00
|
|
|
CacheOpt *CacheOpt `protobuf:"bytes,20,opt,name=cacheOpt,proto3" json:"cacheOpt,omitempty"`
|
|
|
|
SecretOpt *SecretOpt `protobuf:"bytes,21,opt,name=secretOpt,proto3" json:"secretOpt,omitempty"`
|
|
|
|
SSHOpt *SSHOpt `protobuf:"bytes,22,opt,name=SSHOpt,proto3" json:"SSHOpt,omitempty"`
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
|
2019-03-06 00:48:39 +00:00
|
|
|
func (m *Mount) Reset() { *m = Mount{} }
|
|
|
|
func (m *Mount) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Mount) ProtoMessage() {}
|
|
|
|
func (*Mount) Descriptor() ([]byte, []int) {
|
2019-03-11 17:19:24 +00:00
|
|
|
return fileDescriptor_ops_8d64813b9835ab08, []int{5}
|
2019-03-06 00:48:39 +00:00
|
|
|
}
|
|
|
|
func (m *Mount) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *Mount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalTo(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (dst *Mount) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Mount.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *Mount) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *Mount) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Mount.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_Mount proto.InternalMessageInfo
|
2017-10-02 04:59:34 +00:00
|
|
|
|
|
|
|
func (m *Mount) GetSelector() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Selector
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Mount) GetDest() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Dest
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Mount) GetReadonly() bool {
|
|
|
|
if m != nil {
|
|
|
|
return m.Readonly
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
2017-06-06 18:01:18 +00:00
|
|
|
|
2018-05-15 19:09:09 +00:00
|
|
|
func (m *Mount) GetMountType() MountType {
|
|
|
|
if m != nil {
|
|
|
|
return m.MountType
|
|
|
|
}
|
|
|
|
return MountType_BIND
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Mount) GetCacheOpt() *CacheOpt {
|
|
|
|
if m != nil {
|
|
|
|
return m.CacheOpt
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-07-19 21:44:18 +00:00
|
|
|
func (m *Mount) GetSecretOpt() *SecretOpt {
|
|
|
|
if m != nil {
|
|
|
|
return m.SecretOpt
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-09-04 23:33:07 +00:00
|
|
|
func (m *Mount) GetSSHOpt() *SSHOpt {
|
|
|
|
if m != nil {
|
|
|
|
return m.SSHOpt
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-06-18 20:57:36 +00:00
|
|
|
// CacheOpt defines options specific to cache mounts
|
2018-05-15 19:09:09 +00:00
|
|
|
type CacheOpt struct {
|
2018-06-18 20:57:36 +00:00
|
|
|
// ID is an optional namespace for the mount
|
2018-05-15 19:09:09 +00:00
|
|
|
ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
|
2018-06-18 20:57:36 +00:00
|
|
|
// Sharing is the sharing mode for the mount
|
|
|
|
Sharing CacheSharingOpt `protobuf:"varint,2,opt,name=sharing,proto3,enum=pb.CacheSharingOpt" json:"sharing,omitempty"`
|
2018-05-15 19:09:09 +00:00
|
|
|
}
|
|
|
|
|
2019-03-06 00:48:39 +00:00
|
|
|
func (m *CacheOpt) Reset() { *m = CacheOpt{} }
|
|
|
|
func (m *CacheOpt) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*CacheOpt) ProtoMessage() {}
|
|
|
|
func (*CacheOpt) Descriptor() ([]byte, []int) {
|
2019-03-11 17:19:24 +00:00
|
|
|
return fileDescriptor_ops_8d64813b9835ab08, []int{6}
|
2019-03-06 00:48:39 +00:00
|
|
|
}
|
|
|
|
func (m *CacheOpt) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *CacheOpt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalTo(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (dst *CacheOpt) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_CacheOpt.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *CacheOpt) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *CacheOpt) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_CacheOpt.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_CacheOpt proto.InternalMessageInfo
|
2018-05-15 19:09:09 +00:00
|
|
|
|
|
|
|
func (m *CacheOpt) GetID() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.ID
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2018-06-18 20:57:36 +00:00
|
|
|
func (m *CacheOpt) GetSharing() CacheSharingOpt {
|
|
|
|
if m != nil {
|
|
|
|
return m.Sharing
|
|
|
|
}
|
|
|
|
return CacheSharingOpt_SHARED
|
|
|
|
}
|
|
|
|
|
2018-07-19 21:44:18 +00:00
|
|
|
// SecretOpt defines options describing secret mounts
|
|
|
|
type SecretOpt struct {
|
|
|
|
// ID of secret. Used for quering the value.
|
|
|
|
ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
|
|
|
|
// UID of secret file
|
|
|
|
Uid uint32 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid,omitempty"`
|
|
|
|
// GID of secret file
|
|
|
|
Gid uint32 `protobuf:"varint,3,opt,name=gid,proto3" json:"gid,omitempty"`
|
|
|
|
// Mode is the filesystem mode of secret file
|
|
|
|
Mode uint32 `protobuf:"varint,4,opt,name=mode,proto3" json:"mode,omitempty"`
|
|
|
|
// Optional defines if secret value is required. Error is produced
|
|
|
|
// if value is not found and optional is false.
|
|
|
|
Optional bool `protobuf:"varint,5,opt,name=optional,proto3" json:"optional,omitempty"`
|
|
|
|
}
|
|
|
|
|
2019-03-06 00:48:39 +00:00
|
|
|
func (m *SecretOpt) Reset() { *m = SecretOpt{} }
|
|
|
|
func (m *SecretOpt) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*SecretOpt) ProtoMessage() {}
|
|
|
|
func (*SecretOpt) Descriptor() ([]byte, []int) {
|
2019-03-11 17:19:24 +00:00
|
|
|
return fileDescriptor_ops_8d64813b9835ab08, []int{7}
|
2019-03-06 00:48:39 +00:00
|
|
|
}
|
|
|
|
func (m *SecretOpt) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *SecretOpt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalTo(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (dst *SecretOpt) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_SecretOpt.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *SecretOpt) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *SecretOpt) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_SecretOpt.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_SecretOpt proto.InternalMessageInfo
|
2018-07-19 21:44:18 +00:00
|
|
|
|
|
|
|
func (m *SecretOpt) GetID() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.ID
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SecretOpt) GetUid() uint32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Uid
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SecretOpt) GetGid() uint32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Gid
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SecretOpt) GetMode() uint32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Mode
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SecretOpt) GetOptional() bool {
|
|
|
|
if m != nil {
|
|
|
|
return m.Optional
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2018-09-04 23:33:07 +00:00
|
|
|
// SSHOpt defines options describing secret mounts
|
|
|
|
type SSHOpt struct {
|
|
|
|
// ID of exposed ssh rule. Used for quering the value.
|
|
|
|
ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
|
|
|
|
// UID of agent socket
|
|
|
|
Uid uint32 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid,omitempty"`
|
|
|
|
// GID of agent socket
|
|
|
|
Gid uint32 `protobuf:"varint,3,opt,name=gid,proto3" json:"gid,omitempty"`
|
|
|
|
// Mode is the filesystem mode of agent socket
|
|
|
|
Mode uint32 `protobuf:"varint,4,opt,name=mode,proto3" json:"mode,omitempty"`
|
|
|
|
// Optional defines if ssh socket is required. Error is produced
|
|
|
|
// if client does not expose ssh.
|
|
|
|
Optional bool `protobuf:"varint,5,opt,name=optional,proto3" json:"optional,omitempty"`
|
|
|
|
}
|
|
|
|
|
2019-03-06 00:48:39 +00:00
|
|
|
func (m *SSHOpt) Reset() { *m = SSHOpt{} }
|
|
|
|
func (m *SSHOpt) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*SSHOpt) ProtoMessage() {}
|
|
|
|
func (*SSHOpt) Descriptor() ([]byte, []int) {
|
2019-03-11 17:19:24 +00:00
|
|
|
return fileDescriptor_ops_8d64813b9835ab08, []int{8}
|
2019-03-06 00:48:39 +00:00
|
|
|
}
|
|
|
|
func (m *SSHOpt) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *SSHOpt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalTo(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (dst *SSHOpt) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_SSHOpt.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *SSHOpt) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *SSHOpt) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_SSHOpt.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_SSHOpt proto.InternalMessageInfo
|
2018-09-04 23:33:07 +00:00
|
|
|
|
|
|
|
func (m *SSHOpt) GetID() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.ID
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SSHOpt) GetUid() uint32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Uid
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SSHOpt) GetGid() uint32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Gid
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SSHOpt) GetMode() uint32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Mode
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SSHOpt) GetOptional() bool {
|
|
|
|
if m != nil {
|
|
|
|
return m.Optional
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2018-02-27 07:06:01 +00:00
|
|
|
// SourceOp specifies a source such as build contexts and images.
|
2017-06-06 18:01:18 +00:00
|
|
|
type SourceOp struct {
|
2018-02-27 07:06:01 +00:00
|
|
|
// TODO: use source type or any type instead of URL protocol.
|
|
|
|
// identifier e.g. local://, docker-image://, git://, https://...
|
|
|
|
Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
|
|
|
|
// attrs are defined in attr.go
|
2019-03-06 00:48:39 +00:00
|
|
|
Attrs map[string]string `protobuf:"bytes,2,rep,name=attrs,proto3" json:"attrs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
|
2019-03-06 00:48:39 +00:00
|
|
|
func (m *SourceOp) Reset() { *m = SourceOp{} }
|
|
|
|
func (m *SourceOp) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*SourceOp) ProtoMessage() {}
|
|
|
|
func (*SourceOp) Descriptor() ([]byte, []int) {
|
2019-03-11 17:19:24 +00:00
|
|
|
return fileDescriptor_ops_8d64813b9835ab08, []int{9}
|
2019-03-06 00:48:39 +00:00
|
|
|
}
|
|
|
|
func (m *SourceOp) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *SourceOp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalTo(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (dst *SourceOp) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_SourceOp.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *SourceOp) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *SourceOp) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_SourceOp.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_SourceOp proto.InternalMessageInfo
|
2017-10-02 04:59:34 +00:00
|
|
|
|
|
|
|
func (m *SourceOp) GetIdentifier() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Identifier
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
2017-06-06 18:01:18 +00:00
|
|
|
|
2017-07-08 23:25:07 +00:00
|
|
|
func (m *SourceOp) GetAttrs() map[string]string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Attrs
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-02-27 07:06:01 +00:00
|
|
|
// BuildOp is used for nested build invocation.
|
2018-07-05 23:32:01 +00:00
|
|
|
// BuildOp is experimental and can break without backwards compatibility
|
2017-07-21 17:58:24 +00:00
|
|
|
type BuildOp struct {
|
|
|
|
Builder InputIndex `protobuf:"varint,1,opt,name=builder,proto3,customtype=InputIndex" json:"builder"`
|
2019-03-06 00:48:39 +00:00
|
|
|
Inputs map[string]*BuildInput `protobuf:"bytes,2,rep,name=inputs,proto3" json:"inputs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
|
|
Def *Definition `protobuf:"bytes,3,opt,name=def,proto3" json:"def,omitempty"`
|
|
|
|
Attrs map[string]string `protobuf:"bytes,4,rep,name=attrs,proto3" json:"attrs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
2017-07-21 17:58:24 +00:00
|
|
|
}
|
|
|
|
|
2019-03-06 00:48:39 +00:00
|
|
|
func (m *BuildOp) Reset() { *m = BuildOp{} }
|
|
|
|
func (m *BuildOp) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*BuildOp) ProtoMessage() {}
|
|
|
|
func (*BuildOp) Descriptor() ([]byte, []int) {
|
2019-03-11 17:19:24 +00:00
|
|
|
return fileDescriptor_ops_8d64813b9835ab08, []int{10}
|
2019-03-06 00:48:39 +00:00
|
|
|
}
|
|
|
|
func (m *BuildOp) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *BuildOp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalTo(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (dst *BuildOp) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_BuildOp.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *BuildOp) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *BuildOp) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_BuildOp.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_BuildOp proto.InternalMessageInfo
|
2017-07-21 17:58:24 +00:00
|
|
|
|
|
|
|
func (m *BuildOp) GetInputs() map[string]*BuildInput {
|
|
|
|
if m != nil {
|
|
|
|
return m.Inputs
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2017-10-02 04:59:34 +00:00
|
|
|
func (m *BuildOp) GetDef() *Definition {
|
|
|
|
if m != nil {
|
|
|
|
return m.Def
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2017-07-21 17:58:24 +00:00
|
|
|
func (m *BuildOp) GetAttrs() map[string]string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Attrs
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-02-27 07:06:01 +00:00
|
|
|
// BuildInput is used for BuildOp.
|
2017-07-21 17:58:24 +00:00
|
|
|
type BuildInput struct {
|
|
|
|
Input InputIndex `protobuf:"varint,1,opt,name=input,proto3,customtype=InputIndex" json:"input"`
|
|
|
|
}
|
|
|
|
|
2019-03-06 00:48:39 +00:00
|
|
|
func (m *BuildInput) Reset() { *m = BuildInput{} }
|
|
|
|
func (m *BuildInput) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*BuildInput) ProtoMessage() {}
|
|
|
|
func (*BuildInput) Descriptor() ([]byte, []int) {
|
2019-03-11 17:19:24 +00:00
|
|
|
return fileDescriptor_ops_8d64813b9835ab08, []int{11}
|
2019-03-06 00:48:39 +00:00
|
|
|
}
|
|
|
|
func (m *BuildInput) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *BuildInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalTo(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (dst *BuildInput) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_BuildInput.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *BuildInput) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *BuildInput) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_BuildInput.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_BuildInput proto.InternalMessageInfo
|
2017-10-02 04:59:34 +00:00
|
|
|
|
2018-02-27 07:06:01 +00:00
|
|
|
// OpMetadata is a per-vertex metadata entry, which can be defined for arbitrary Op vertex and overridable on the run time.
|
2017-10-02 04:59:34 +00:00
|
|
|
type OpMetadata struct {
|
2018-02-27 07:06:01 +00:00
|
|
|
// ignore_cache specifies to ignore the cache for this Op.
|
2017-10-02 04:59:34 +00:00
|
|
|
IgnoreCache bool `protobuf:"varint,1,opt,name=ignore_cache,json=ignoreCache,proto3" json:"ignore_cache,omitempty"`
|
2017-12-08 00:13:50 +00:00
|
|
|
// Description can be used for keeping any text fields that builder doesn't parse
|
2019-03-06 00:48:39 +00:00
|
|
|
Description map[string]string `protobuf:"bytes,2,rep,name=description,proto3" json:"description,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
2018-06-21 21:09:38 +00:00
|
|
|
// index 3 reserved for WorkerConstraint in previous versions
|
|
|
|
// WorkerConstraint worker_constraint = 3;
|
2019-03-06 00:48:39 +00:00
|
|
|
ExportCache *ExportCache `protobuf:"bytes,4,opt,name=export_cache,json=exportCache,proto3" json:"export_cache,omitempty"`
|
|
|
|
Caps map[github_com_moby_buildkit_util_apicaps.CapID]bool `protobuf:"bytes,5,rep,name=caps,proto3,castkey=github.com/moby/buildkit/util/apicaps.CapID" json:"caps" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
|
2017-10-02 04:59:34 +00:00
|
|
|
}
|
|
|
|
|
2019-03-06 00:48:39 +00:00
|
|
|
func (m *OpMetadata) Reset() { *m = OpMetadata{} }
|
|
|
|
func (m *OpMetadata) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*OpMetadata) ProtoMessage() {}
|
|
|
|
func (*OpMetadata) Descriptor() ([]byte, []int) {
|
2019-03-11 17:19:24 +00:00
|
|
|
return fileDescriptor_ops_8d64813b9835ab08, []int{12}
|
2019-03-06 00:48:39 +00:00
|
|
|
}
|
|
|
|
func (m *OpMetadata) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *OpMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalTo(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (dst *OpMetadata) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_OpMetadata.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *OpMetadata) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *OpMetadata) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_OpMetadata.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_OpMetadata proto.InternalMessageInfo
|
2017-10-02 04:59:34 +00:00
|
|
|
|
|
|
|
func (m *OpMetadata) GetIgnoreCache() bool {
|
|
|
|
if m != nil {
|
|
|
|
return m.IgnoreCache
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2017-12-08 00:13:50 +00:00
|
|
|
func (m *OpMetadata) GetDescription() map[string]string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Description
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-05-07 21:20:25 +00:00
|
|
|
func (m *OpMetadata) GetExportCache() *ExportCache {
|
|
|
|
if m != nil {
|
|
|
|
return m.ExportCache
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-07-18 22:32:37 +00:00
|
|
|
func (m *OpMetadata) GetCaps() map[github_com_moby_buildkit_util_apicaps.CapID]bool {
|
|
|
|
if m != nil {
|
|
|
|
return m.Caps
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-05-07 21:20:25 +00:00
|
|
|
type ExportCache struct {
|
|
|
|
Value bool `protobuf:"varint,1,opt,name=Value,proto3" json:"Value,omitempty"`
|
|
|
|
}
|
|
|
|
|
2019-03-06 00:48:39 +00:00
|
|
|
func (m *ExportCache) Reset() { *m = ExportCache{} }
|
|
|
|
func (m *ExportCache) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ExportCache) ProtoMessage() {}
|
|
|
|
func (*ExportCache) Descriptor() ([]byte, []int) {
|
2019-03-11 17:19:24 +00:00
|
|
|
return fileDescriptor_ops_8d64813b9835ab08, []int{13}
|
2019-03-06 00:48:39 +00:00
|
|
|
}
|
|
|
|
func (m *ExportCache) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *ExportCache) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalTo(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (dst *ExportCache) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ExportCache.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *ExportCache) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *ExportCache) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ExportCache.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_ExportCache proto.InternalMessageInfo
|
2018-05-07 21:20:25 +00:00
|
|
|
|
|
|
|
func (m *ExportCache) GetValue() bool {
|
|
|
|
if m != nil {
|
|
|
|
return m.Value
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2018-05-20 21:48:35 +00:00
|
|
|
type ProxyEnv struct {
|
|
|
|
HttpProxy string `protobuf:"bytes,1,opt,name=http_proxy,json=httpProxy,proto3" json:"http_proxy,omitempty"`
|
|
|
|
HttpsProxy string `protobuf:"bytes,2,opt,name=https_proxy,json=httpsProxy,proto3" json:"https_proxy,omitempty"`
|
|
|
|
FtpProxy string `protobuf:"bytes,3,opt,name=ftp_proxy,json=ftpProxy,proto3" json:"ftp_proxy,omitempty"`
|
|
|
|
NoProxy string `protobuf:"bytes,4,opt,name=no_proxy,json=noProxy,proto3" json:"no_proxy,omitempty"`
|
|
|
|
}
|
|
|
|
|
2019-03-06 00:48:39 +00:00
|
|
|
func (m *ProxyEnv) Reset() { *m = ProxyEnv{} }
|
|
|
|
func (m *ProxyEnv) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ProxyEnv) ProtoMessage() {}
|
|
|
|
func (*ProxyEnv) Descriptor() ([]byte, []int) {
|
2019-03-11 17:19:24 +00:00
|
|
|
return fileDescriptor_ops_8d64813b9835ab08, []int{14}
|
2019-03-06 00:48:39 +00:00
|
|
|
}
|
|
|
|
func (m *ProxyEnv) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *ProxyEnv) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalTo(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (dst *ProxyEnv) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ProxyEnv.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *ProxyEnv) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *ProxyEnv) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ProxyEnv.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_ProxyEnv proto.InternalMessageInfo
|
2018-05-20 21:48:35 +00:00
|
|
|
|
|
|
|
func (m *ProxyEnv) GetHttpProxy() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.HttpProxy
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ProxyEnv) GetHttpsProxy() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.HttpsProxy
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ProxyEnv) GetFtpProxy() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.FtpProxy
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ProxyEnv) GetNoProxy() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.NoProxy
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2018-06-21 21:09:38 +00:00
|
|
|
// WorkerConstraints defines conditions for the worker
|
|
|
|
type WorkerConstraints struct {
|
2019-03-06 00:48:39 +00:00
|
|
|
Filter []string `protobuf:"bytes,1,rep,name=filter,proto3" json:"filter,omitempty"`
|
2017-11-21 08:08:36 +00:00
|
|
|
}
|
|
|
|
|
2019-03-06 00:48:39 +00:00
|
|
|
func (m *WorkerConstraints) Reset() { *m = WorkerConstraints{} }
|
|
|
|
func (m *WorkerConstraints) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*WorkerConstraints) ProtoMessage() {}
|
|
|
|
func (*WorkerConstraints) Descriptor() ([]byte, []int) {
|
2019-03-11 17:19:24 +00:00
|
|
|
return fileDescriptor_ops_8d64813b9835ab08, []int{15}
|
2019-03-06 00:48:39 +00:00
|
|
|
}
|
|
|
|
func (m *WorkerConstraints) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *WorkerConstraints) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalTo(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (dst *WorkerConstraints) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_WorkerConstraints.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *WorkerConstraints) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *WorkerConstraints) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_WorkerConstraints.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_WorkerConstraints proto.InternalMessageInfo
|
2017-11-21 08:08:36 +00:00
|
|
|
|
2018-06-21 21:09:38 +00:00
|
|
|
func (m *WorkerConstraints) GetFilter() []string {
|
2017-11-21 08:08:36 +00:00
|
|
|
if m != nil {
|
2017-12-19 09:34:34 +00:00
|
|
|
return m.Filter
|
2017-11-21 08:08:36 +00:00
|
|
|
}
|
2017-12-19 09:34:34 +00:00
|
|
|
return nil
|
2017-11-21 08:08:36 +00:00
|
|
|
}
|
|
|
|
|
2017-10-02 04:59:34 +00:00
|
|
|
// Definition is the LLB definition structure with per-vertex metadata entries
|
|
|
|
type Definition struct {
|
2018-02-27 07:06:01 +00:00
|
|
|
// def is a list of marshaled Op messages
|
2019-03-06 00:48:39 +00:00
|
|
|
Def [][]byte `protobuf:"bytes,1,rep,name=def,proto3" json:"def,omitempty"`
|
2018-02-27 07:06:01 +00:00
|
|
|
// metadata contains metadata for the each of the Op messages.
|
|
|
|
// A key must be an LLB op digest string. Currently, empty string is not expected as a key, but it may change in the future.
|
2019-03-06 00:48:39 +00:00
|
|
|
Metadata map[github_com_opencontainers_go_digest.Digest]OpMetadata `protobuf:"bytes,2,rep,name=metadata,proto3,castkey=github.com/opencontainers/go-digest.Digest" json:"metadata" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
2017-10-02 04:59:34 +00:00
|
|
|
}
|
|
|
|
|
2019-03-06 00:48:39 +00:00
|
|
|
func (m *Definition) Reset() { *m = Definition{} }
|
|
|
|
func (m *Definition) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Definition) ProtoMessage() {}
|
|
|
|
func (*Definition) Descriptor() ([]byte, []int) {
|
2019-03-11 17:19:24 +00:00
|
|
|
return fileDescriptor_ops_8d64813b9835ab08, []int{16}
|
2019-03-06 00:48:39 +00:00
|
|
|
}
|
|
|
|
func (m *Definition) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *Definition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalTo(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (dst *Definition) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Definition.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *Definition) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *Definition) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Definition.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_Definition proto.InternalMessageInfo
|
2017-10-02 04:59:34 +00:00
|
|
|
|
|
|
|
func (m *Definition) GetDef() [][]byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.Def
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Definition) GetMetadata() map[github_com_opencontainers_go_digest.Digest]OpMetadata {
|
|
|
|
if m != nil {
|
|
|
|
return m.Metadata
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2017-07-21 17:58:24 +00:00
|
|
|
|
2018-08-01 21:15:43 +00:00
|
|
|
type HostIP struct {
|
|
|
|
Host string `protobuf:"bytes,1,opt,name=Host,proto3" json:"Host,omitempty"`
|
|
|
|
IP string `protobuf:"bytes,2,opt,name=IP,proto3" json:"IP,omitempty"`
|
|
|
|
}
|
|
|
|
|
2019-03-06 00:48:39 +00:00
|
|
|
func (m *HostIP) Reset() { *m = HostIP{} }
|
|
|
|
func (m *HostIP) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*HostIP) ProtoMessage() {}
|
|
|
|
func (*HostIP) Descriptor() ([]byte, []int) {
|
2019-03-11 17:19:24 +00:00
|
|
|
return fileDescriptor_ops_8d64813b9835ab08, []int{17}
|
2019-03-06 00:48:39 +00:00
|
|
|
}
|
|
|
|
func (m *HostIP) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *HostIP) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalTo(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (dst *HostIP) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_HostIP.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *HostIP) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *HostIP) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_HostIP.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_HostIP proto.InternalMessageInfo
|
2018-08-01 21:15:43 +00:00
|
|
|
|
|
|
|
func (m *HostIP) GetHost() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Host
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *HostIP) GetIP() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.IP
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
type FileOp struct {
|
|
|
|
Actions []*FileAction `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions,omitempty"`
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
|
|
|
|
func (m *FileOp) Reset() { *m = FileOp{} }
|
|
|
|
func (m *FileOp) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*FileOp) ProtoMessage() {}
|
|
|
|
func (*FileOp) Descriptor() ([]byte, []int) {
|
2019-03-11 17:19:24 +00:00
|
|
|
return fileDescriptor_ops_8d64813b9835ab08, []int{18}
|
2019-01-23 21:05:59 +00:00
|
|
|
}
|
|
|
|
func (m *FileOp) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *FileOp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalTo(b)
|
2017-06-06 18:01:18 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (dst *FileOp) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_FileOp.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *FileOp) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *FileOp) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_FileOp.DiscardUnknown(m)
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
var xxx_messageInfo_FileOp proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *FileOp) GetActions() []*FileAction {
|
|
|
|
if m != nil {
|
|
|
|
return m.Actions
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type FileAction struct {
|
|
|
|
Input InputIndex `protobuf:"varint,1,opt,name=input,proto3,customtype=InputIndex" json:"input"`
|
|
|
|
SecondaryInput InputIndex `protobuf:"varint,2,opt,name=secondaryInput,proto3,customtype=InputIndex" json:"secondaryInput"`
|
|
|
|
Output OutputIndex `protobuf:"varint,3,opt,name=output,proto3,customtype=OutputIndex" json:"output"`
|
|
|
|
// Types that are valid to be assigned to Action:
|
|
|
|
// *FileAction_Copy
|
|
|
|
// *FileAction_Mkfile
|
|
|
|
// *FileAction_Mkdir
|
|
|
|
// *FileAction_Rm
|
|
|
|
Action isFileAction_Action `protobuf_oneof:"action"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *FileAction) Reset() { *m = FileAction{} }
|
|
|
|
func (m *FileAction) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*FileAction) ProtoMessage() {}
|
|
|
|
func (*FileAction) Descriptor() ([]byte, []int) {
|
2019-03-11 17:19:24 +00:00
|
|
|
return fileDescriptor_ops_8d64813b9835ab08, []int{19}
|
2019-01-23 21:05:59 +00:00
|
|
|
}
|
|
|
|
func (m *FileAction) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *FileAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalTo(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (dst *FileAction) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_FileAction.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *FileAction) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *FileAction) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_FileAction.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_FileAction proto.InternalMessageInfo
|
|
|
|
|
|
|
|
type isFileAction_Action interface {
|
|
|
|
isFileAction_Action()
|
|
|
|
MarshalTo([]byte) (int, error)
|
|
|
|
Size() int
|
|
|
|
}
|
|
|
|
|
|
|
|
type FileAction_Copy struct {
|
|
|
|
Copy *FileActionCopy `protobuf:"bytes,4,opt,name=copy,proto3,oneof"`
|
|
|
|
}
|
|
|
|
type FileAction_Mkfile struct {
|
|
|
|
Mkfile *FileActionMkFile `protobuf:"bytes,5,opt,name=mkfile,proto3,oneof"`
|
|
|
|
}
|
|
|
|
type FileAction_Mkdir struct {
|
|
|
|
Mkdir *FileActionMkDir `protobuf:"bytes,6,opt,name=mkdir,proto3,oneof"`
|
|
|
|
}
|
|
|
|
type FileAction_Rm struct {
|
|
|
|
Rm *FileActionRm `protobuf:"bytes,7,opt,name=rm,proto3,oneof"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*FileAction_Copy) isFileAction_Action() {}
|
|
|
|
func (*FileAction_Mkfile) isFileAction_Action() {}
|
|
|
|
func (*FileAction_Mkdir) isFileAction_Action() {}
|
|
|
|
func (*FileAction_Rm) isFileAction_Action() {}
|
|
|
|
|
|
|
|
func (m *FileAction) GetAction() isFileAction_Action {
|
|
|
|
if m != nil {
|
|
|
|
return m.Action
|
2018-06-21 21:09:38 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *FileAction) GetCopy() *FileActionCopy {
|
|
|
|
if x, ok := m.GetAction().(*FileAction_Copy); ok {
|
|
|
|
return x.Copy
|
2018-06-21 21:09:38 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return nil
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *FileAction) GetMkfile() *FileActionMkFile {
|
|
|
|
if x, ok := m.GetAction().(*FileAction_Mkfile); ok {
|
|
|
|
return x.Mkfile
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return nil
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
|
|
|
|
func (m *FileAction) GetMkdir() *FileActionMkDir {
|
|
|
|
if x, ok := m.GetAction().(*FileAction_Mkdir); ok {
|
|
|
|
return x.Mkdir
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return nil
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
|
|
|
|
func (m *FileAction) GetRm() *FileActionRm {
|
|
|
|
if x, ok := m.GetAction().(*FileAction_Rm); ok {
|
|
|
|
return x.Rm
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return nil
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
|
|
|
|
// XXX_OneofFuncs is for the internal use of the proto package.
|
|
|
|
func (*FileAction) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
|
|
|
|
return _FileAction_OneofMarshaler, _FileAction_OneofUnmarshaler, _FileAction_OneofSizer, []interface{}{
|
|
|
|
(*FileAction_Copy)(nil),
|
|
|
|
(*FileAction_Mkfile)(nil),
|
|
|
|
(*FileAction_Mkdir)(nil),
|
|
|
|
(*FileAction_Rm)(nil),
|
2017-07-21 17:58:24 +00:00
|
|
|
}
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
|
|
|
|
func _FileAction_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
|
|
|
m := msg.(*FileAction)
|
|
|
|
// action
|
|
|
|
switch x := m.Action.(type) {
|
|
|
|
case *FileAction_Copy:
|
|
|
|
_ = b.EncodeVarint(4<<3 | proto.WireBytes)
|
|
|
|
if err := b.EncodeMessage(x.Copy); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
case *FileAction_Mkfile:
|
|
|
|
_ = b.EncodeVarint(5<<3 | proto.WireBytes)
|
|
|
|
if err := b.EncodeMessage(x.Mkfile); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
case *FileAction_Mkdir:
|
|
|
|
_ = b.EncodeVarint(6<<3 | proto.WireBytes)
|
|
|
|
if err := b.EncodeMessage(x.Mkdir); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
case *FileAction_Rm:
|
|
|
|
_ = b.EncodeVarint(7<<3 | proto.WireBytes)
|
|
|
|
if err := b.EncodeMessage(x.Rm); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
case nil:
|
|
|
|
default:
|
|
|
|
return fmt.Errorf("FileAction.Action has unexpected type %T", x)
|
2018-06-21 21:09:38 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return nil
|
2018-06-21 21:09:38 +00:00
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func _FileAction_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
|
|
|
|
m := msg.(*FileAction)
|
|
|
|
switch tag {
|
|
|
|
case 4: // action.copy
|
|
|
|
if wire != proto.WireBytes {
|
|
|
|
return true, proto.ErrInternalBadWireType
|
|
|
|
}
|
|
|
|
msg := new(FileActionCopy)
|
|
|
|
err := b.DecodeMessage(msg)
|
|
|
|
m.Action = &FileAction_Copy{msg}
|
|
|
|
return true, err
|
|
|
|
case 5: // action.mkfile
|
|
|
|
if wire != proto.WireBytes {
|
|
|
|
return true, proto.ErrInternalBadWireType
|
|
|
|
}
|
|
|
|
msg := new(FileActionMkFile)
|
|
|
|
err := b.DecodeMessage(msg)
|
|
|
|
m.Action = &FileAction_Mkfile{msg}
|
|
|
|
return true, err
|
|
|
|
case 6: // action.mkdir
|
|
|
|
if wire != proto.WireBytes {
|
|
|
|
return true, proto.ErrInternalBadWireType
|
|
|
|
}
|
|
|
|
msg := new(FileActionMkDir)
|
|
|
|
err := b.DecodeMessage(msg)
|
|
|
|
m.Action = &FileAction_Mkdir{msg}
|
|
|
|
return true, err
|
|
|
|
case 7: // action.rm
|
|
|
|
if wire != proto.WireBytes {
|
|
|
|
return true, proto.ErrInternalBadWireType
|
2018-06-21 21:09:38 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
msg := new(FileActionRm)
|
|
|
|
err := b.DecodeMessage(msg)
|
|
|
|
m.Action = &FileAction_Rm{msg}
|
|
|
|
return true, err
|
|
|
|
default:
|
|
|
|
return false, nil
|
2018-06-21 21:09:38 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func _FileAction_OneofSizer(msg proto.Message) (n int) {
|
|
|
|
m := msg.(*FileAction)
|
|
|
|
// action
|
|
|
|
switch x := m.Action.(type) {
|
|
|
|
case *FileAction_Copy:
|
|
|
|
s := proto.Size(x.Copy)
|
|
|
|
n += 1 // tag and wire
|
|
|
|
n += proto.SizeVarint(uint64(s))
|
|
|
|
n += s
|
|
|
|
case *FileAction_Mkfile:
|
|
|
|
s := proto.Size(x.Mkfile)
|
|
|
|
n += 1 // tag and wire
|
|
|
|
n += proto.SizeVarint(uint64(s))
|
|
|
|
n += s
|
|
|
|
case *FileAction_Mkdir:
|
|
|
|
s := proto.Size(x.Mkdir)
|
|
|
|
n += 1 // tag and wire
|
|
|
|
n += proto.SizeVarint(uint64(s))
|
|
|
|
n += s
|
|
|
|
case *FileAction_Rm:
|
|
|
|
s := proto.Size(x.Rm)
|
|
|
|
n += 1 // tag and wire
|
|
|
|
n += proto.SizeVarint(uint64(s))
|
|
|
|
n += s
|
|
|
|
case nil:
|
|
|
|
default:
|
|
|
|
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
2017-06-09 01:16:19 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return n
|
2017-06-09 01:16:19 +00:00
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
type FileActionCopy struct {
|
2019-02-05 01:36:01 +00:00
|
|
|
// src is the source path
|
|
|
|
Src string `protobuf:"bytes,1,opt,name=src,proto3" json:"src,omitempty"`
|
|
|
|
// dest path
|
|
|
|
Dest string `protobuf:"bytes,2,opt,name=dest,proto3" json:"dest,omitempty"`
|
|
|
|
// optional owner override
|
2019-03-11 17:19:24 +00:00
|
|
|
Owner *ChownOpt `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
|
2019-02-05 01:36:01 +00:00
|
|
|
// optional permission bits override
|
2019-03-11 17:19:24 +00:00
|
|
|
Mode int32 `protobuf:"varint,4,opt,name=mode,proto3" json:"mode,omitempty"`
|
2019-02-05 01:36:01 +00:00
|
|
|
// followSymlink resolves symlinks in src
|
2019-03-11 17:19:24 +00:00
|
|
|
FollowSymlink bool `protobuf:"varint,5,opt,name=followSymlink,proto3" json:"followSymlink,omitempty"`
|
2019-02-05 01:36:01 +00:00
|
|
|
// dirCopyContents only copies contents if src is a directory
|
2019-03-11 17:19:24 +00:00
|
|
|
DirCopyContents bool `protobuf:"varint,6,opt,name=dirCopyContents,proto3" json:"dirCopyContents,omitempty"`
|
2019-02-05 01:36:01 +00:00
|
|
|
// attemptUnpackDockerCompatibility detects if src is an archive to unpack it instead
|
2019-03-11 17:19:24 +00:00
|
|
|
AttemptUnpackDockerCompatibility bool `protobuf:"varint,7,opt,name=attemptUnpackDockerCompatibility,proto3" json:"attemptUnpackDockerCompatibility,omitempty"`
|
2019-02-05 01:36:01 +00:00
|
|
|
// createDestPath creates dest path directories if needed
|
2019-03-11 17:19:24 +00:00
|
|
|
CreateDestPath bool `protobuf:"varint,8,opt,name=createDestPath,proto3" json:"createDestPath,omitempty"`
|
2019-02-05 01:36:01 +00:00
|
|
|
// allowWildcard allows filepath.Match wildcards in src path
|
2019-03-11 17:19:24 +00:00
|
|
|
AllowWildcard bool `protobuf:"varint,9,opt,name=allowWildcard,proto3" json:"allowWildcard,omitempty"`
|
2019-02-05 01:36:01 +00:00
|
|
|
// allowEmptyWildcard doesn't fail the whole copy if wildcard doesn't resolve to files
|
2019-03-11 17:19:24 +00:00
|
|
|
AllowEmptyWildcard bool `protobuf:"varint,10,opt,name=allowEmptyWildcard,proto3" json:"allowEmptyWildcard,omitempty"`
|
2019-02-05 01:36:01 +00:00
|
|
|
// optional created time override
|
2019-03-11 17:19:24 +00:00
|
|
|
Timestamp int64 `protobuf:"varint,11,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
2017-06-09 01:16:19 +00:00
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *FileActionCopy) Reset() { *m = FileActionCopy{} }
|
|
|
|
func (m *FileActionCopy) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*FileActionCopy) ProtoMessage() {}
|
|
|
|
func (*FileActionCopy) Descriptor() ([]byte, []int) {
|
2019-03-11 17:19:24 +00:00
|
|
|
return fileDescriptor_ops_8d64813b9835ab08, []int{20}
|
2019-01-23 21:05:59 +00:00
|
|
|
}
|
|
|
|
func (m *FileActionCopy) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *FileActionCopy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalTo(b)
|
2017-06-06 18:01:18 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (dst *FileActionCopy) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_FileActionCopy.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *FileActionCopy) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *FileActionCopy) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_FileActionCopy.DiscardUnknown(m)
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
var xxx_messageInfo_FileActionCopy proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *FileActionCopy) GetSrc() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Src
|
2018-08-04 19:42:01 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return ""
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *FileActionCopy) GetDest() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Dest
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return ""
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *FileActionCopy) GetOwner() *ChownOpt {
|
|
|
|
if m != nil {
|
|
|
|
return m.Owner
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *FileActionCopy) GetMode() int32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Mode
|
2017-12-11 21:17:07 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *FileActionCopy) GetFollowSymlink() bool {
|
|
|
|
if m != nil {
|
|
|
|
return m.FollowSymlink
|
2018-05-20 21:48:35 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *FileActionCopy) GetDirCopyContents() bool {
|
|
|
|
if m != nil {
|
|
|
|
return m.DirCopyContents
|
2018-08-01 21:15:43 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return false
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
|
2019-02-05 01:36:01 +00:00
|
|
|
func (m *FileActionCopy) GetAttemptUnpackDockerCompatibility() bool {
|
2019-01-23 21:05:59 +00:00
|
|
|
if m != nil {
|
2019-02-05 01:36:01 +00:00
|
|
|
return m.AttemptUnpackDockerCompatibility
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return false
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *FileActionCopy) GetCreateDestPath() bool {
|
|
|
|
if m != nil {
|
|
|
|
return m.CreateDestPath
|
2018-09-04 23:33:07 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return false
|
2018-05-15 19:09:09 +00:00
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *FileActionCopy) GetAllowWildcard() bool {
|
|
|
|
if m != nil {
|
|
|
|
return m.AllowWildcard
|
2018-05-15 19:09:09 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return false
|
2018-05-15 19:09:09 +00:00
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *FileActionCopy) GetAllowEmptyWildcard() bool {
|
|
|
|
if m != nil {
|
|
|
|
return m.AllowEmptyWildcard
|
2018-06-18 20:57:36 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return false
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
|
2019-02-01 18:52:53 +00:00
|
|
|
func (m *FileActionCopy) GetTimestamp() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Timestamp
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
type FileActionMkFile struct {
|
2019-02-05 01:36:01 +00:00
|
|
|
// path for the new file
|
|
|
|
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
|
|
|
|
// permission bits
|
|
|
|
Mode int32 `protobuf:"varint,2,opt,name=mode,proto3" json:"mode,omitempty"`
|
|
|
|
// data is the new file contents
|
|
|
|
Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
|
|
|
|
// optional owner for the new file
|
|
|
|
Owner *ChownOpt `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"`
|
|
|
|
// optional created time override
|
|
|
|
Timestamp int64 `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
2019-01-23 21:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *FileActionMkFile) Reset() { *m = FileActionMkFile{} }
|
|
|
|
func (m *FileActionMkFile) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*FileActionMkFile) ProtoMessage() {}
|
|
|
|
func (*FileActionMkFile) Descriptor() ([]byte, []int) {
|
2019-03-11 17:19:24 +00:00
|
|
|
return fileDescriptor_ops_8d64813b9835ab08, []int{21}
|
2019-01-23 21:05:59 +00:00
|
|
|
}
|
|
|
|
func (m *FileActionMkFile) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *FileActionMkFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalTo(b)
|
2018-07-19 21:44:18 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (dst *FileActionMkFile) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_FileActionMkFile.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *FileActionMkFile) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *FileActionMkFile) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_FileActionMkFile.DiscardUnknown(m)
|
2018-07-19 21:44:18 +00:00
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
var xxx_messageInfo_FileActionMkFile proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *FileActionMkFile) GetPath() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Path
|
2018-07-19 21:44:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *FileActionMkFile) GetMode() int32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Mode
|
2018-07-19 21:44:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *FileActionMkFile) GetData() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.Data
|
2018-07-19 21:44:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *FileActionMkFile) GetOwner() *ChownOpt {
|
|
|
|
if m != nil {
|
|
|
|
return m.Owner
|
2018-07-19 21:44:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return nil
|
2018-07-19 21:44:18 +00:00
|
|
|
}
|
|
|
|
|
2019-02-01 18:52:53 +00:00
|
|
|
func (m *FileActionMkFile) GetTimestamp() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Timestamp
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
type FileActionMkDir struct {
|
2019-02-05 01:36:01 +00:00
|
|
|
// path for the new directory
|
|
|
|
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
|
|
|
|
// permission bits
|
|
|
|
Mode int32 `protobuf:"varint,2,opt,name=mode,proto3" json:"mode,omitempty"`
|
|
|
|
// makeParents creates parent directories as well if needed
|
|
|
|
MakeParents bool `protobuf:"varint,3,opt,name=makeParents,proto3" json:"makeParents,omitempty"`
|
|
|
|
// optional owner for the new directory
|
|
|
|
Owner *ChownOpt `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"`
|
|
|
|
// optional created time override
|
|
|
|
Timestamp int64 `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
2019-01-23 21:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *FileActionMkDir) Reset() { *m = FileActionMkDir{} }
|
|
|
|
func (m *FileActionMkDir) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*FileActionMkDir) ProtoMessage() {}
|
|
|
|
func (*FileActionMkDir) Descriptor() ([]byte, []int) {
|
2019-03-11 17:19:24 +00:00
|
|
|
return fileDescriptor_ops_8d64813b9835ab08, []int{22}
|
2019-01-23 21:05:59 +00:00
|
|
|
}
|
|
|
|
func (m *FileActionMkDir) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *FileActionMkDir) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalTo(b)
|
2018-09-04 23:33:07 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (dst *FileActionMkDir) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_FileActionMkDir.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *FileActionMkDir) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *FileActionMkDir) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_FileActionMkDir.DiscardUnknown(m)
|
2018-09-04 23:33:07 +00:00
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
var xxx_messageInfo_FileActionMkDir proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *FileActionMkDir) GetPath() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Path
|
2018-09-04 23:33:07 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *FileActionMkDir) GetMode() int32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Mode
|
2018-09-04 23:33:07 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *FileActionMkDir) GetMakeParents() bool {
|
|
|
|
if m != nil {
|
|
|
|
return m.MakeParents
|
2018-09-04 23:33:07 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *FileActionMkDir) GetOwner() *ChownOpt {
|
|
|
|
if m != nil {
|
|
|
|
return m.Owner
|
2018-09-04 23:33:07 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return nil
|
2018-09-04 23:33:07 +00:00
|
|
|
}
|
|
|
|
|
2019-02-01 18:52:53 +00:00
|
|
|
func (m *FileActionMkDir) GetTimestamp() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Timestamp
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
type FileActionRm struct {
|
2019-02-05 01:36:01 +00:00
|
|
|
// path to remove
|
|
|
|
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
|
|
|
|
// allowNotFound doesn't fail the rm if file is not found
|
|
|
|
AllowNotFound bool `protobuf:"varint,2,opt,name=allowNotFound,proto3" json:"allowNotFound,omitempty"`
|
|
|
|
// allowWildcard allows filepath.Match wildcards in path
|
|
|
|
AllowWildcard bool `protobuf:"varint,3,opt,name=allowWildcard,proto3" json:"allowWildcard,omitempty"`
|
2019-01-23 21:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *FileActionRm) Reset() { *m = FileActionRm{} }
|
|
|
|
func (m *FileActionRm) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*FileActionRm) ProtoMessage() {}
|
|
|
|
func (*FileActionRm) Descriptor() ([]byte, []int) {
|
2019-03-11 17:19:24 +00:00
|
|
|
return fileDescriptor_ops_8d64813b9835ab08, []int{23}
|
2019-01-23 21:05:59 +00:00
|
|
|
}
|
|
|
|
func (m *FileActionRm) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *FileActionRm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalTo(b)
|
2017-06-06 18:01:18 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (dst *FileActionRm) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_FileActionRm.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *FileActionRm) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *FileActionRm) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_FileActionRm.DiscardUnknown(m)
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
var xxx_messageInfo_FileActionRm proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *FileActionRm) GetPath() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Path
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *FileActionRm) GetAllowNotFound() bool {
|
|
|
|
if m != nil {
|
|
|
|
return m.AllowNotFound
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *FileActionRm) GetAllowWildcard() bool {
|
|
|
|
if m != nil {
|
|
|
|
return m.AllowWildcard
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
|
|
|
type ChownOpt struct {
|
|
|
|
User *UserOpt `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
|
|
Group *UserOpt `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ChownOpt) Reset() { *m = ChownOpt{} }
|
|
|
|
func (m *ChownOpt) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ChownOpt) ProtoMessage() {}
|
|
|
|
func (*ChownOpt) Descriptor() ([]byte, []int) {
|
2019-03-11 17:19:24 +00:00
|
|
|
return fileDescriptor_ops_8d64813b9835ab08, []int{24}
|
2019-01-23 21:05:59 +00:00
|
|
|
}
|
|
|
|
func (m *ChownOpt) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *ChownOpt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalTo(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (dst *ChownOpt) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ChownOpt.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *ChownOpt) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *ChownOpt) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ChownOpt.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_ChownOpt proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *ChownOpt) GetUser() *UserOpt {
|
|
|
|
if m != nil {
|
|
|
|
return m.User
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ChownOpt) GetGroup() *UserOpt {
|
|
|
|
if m != nil {
|
|
|
|
return m.Group
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type UserOpt struct {
|
2019-02-05 01:36:01 +00:00
|
|
|
// Types that are valid to be assigned to User:
|
|
|
|
// *UserOpt_ByName
|
|
|
|
// *UserOpt_ByID
|
|
|
|
User isUserOpt_User `protobuf_oneof:"user"`
|
2019-01-23 21:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *UserOpt) Reset() { *m = UserOpt{} }
|
|
|
|
func (m *UserOpt) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*UserOpt) ProtoMessage() {}
|
|
|
|
func (*UserOpt) Descriptor() ([]byte, []int) {
|
2019-03-11 17:19:24 +00:00
|
|
|
return fileDescriptor_ops_8d64813b9835ab08, []int{25}
|
2019-01-23 21:05:59 +00:00
|
|
|
}
|
|
|
|
func (m *UserOpt) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *UserOpt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalTo(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (dst *UserOpt) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_UserOpt.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *UserOpt) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *UserOpt) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_UserOpt.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_UserOpt proto.InternalMessageInfo
|
|
|
|
|
2019-02-05 01:36:01 +00:00
|
|
|
type isUserOpt_User interface {
|
|
|
|
isUserOpt_User()
|
|
|
|
MarshalTo([]byte) (int, error)
|
|
|
|
Size() int
|
|
|
|
}
|
|
|
|
|
|
|
|
type UserOpt_ByName struct {
|
|
|
|
ByName *NamedUserOpt `protobuf:"bytes,1,opt,name=byName,proto3,oneof"`
|
|
|
|
}
|
|
|
|
type UserOpt_ByID struct {
|
|
|
|
ByID uint32 `protobuf:"varint,2,opt,name=byID,proto3,oneof"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*UserOpt_ByName) isUserOpt_User() {}
|
|
|
|
func (*UserOpt_ByID) isUserOpt_User() {}
|
|
|
|
|
|
|
|
func (m *UserOpt) GetUser() isUserOpt_User {
|
2019-01-23 21:05:59 +00:00
|
|
|
if m != nil {
|
2019-02-05 01:36:01 +00:00
|
|
|
return m.User
|
2019-01-23 21:05:59 +00:00
|
|
|
}
|
2019-02-05 01:36:01 +00:00
|
|
|
return nil
|
2019-01-23 21:05:59 +00:00
|
|
|
}
|
|
|
|
|
2019-02-05 01:36:01 +00:00
|
|
|
func (m *UserOpt) GetByName() *NamedUserOpt {
|
|
|
|
if x, ok := m.GetUser().(*UserOpt_ByName); ok {
|
|
|
|
return x.ByName
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *UserOpt) GetByID() uint32 {
|
|
|
|
if x, ok := m.GetUser().(*UserOpt_ByID); ok {
|
|
|
|
return x.ByID
|
2019-01-23 21:05:59 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-02-05 01:36:01 +00:00
|
|
|
// XXX_OneofFuncs is for the internal use of the proto package.
|
|
|
|
func (*UserOpt) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
|
|
|
|
return _UserOpt_OneofMarshaler, _UserOpt_OneofUnmarshaler, _UserOpt_OneofSizer, []interface{}{
|
|
|
|
(*UserOpt_ByName)(nil),
|
|
|
|
(*UserOpt_ByID)(nil),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func _UserOpt_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
|
|
|
m := msg.(*UserOpt)
|
|
|
|
// user
|
|
|
|
switch x := m.User.(type) {
|
|
|
|
case *UserOpt_ByName:
|
|
|
|
_ = b.EncodeVarint(1<<3 | proto.WireBytes)
|
|
|
|
if err := b.EncodeMessage(x.ByName); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
case *UserOpt_ByID:
|
|
|
|
_ = b.EncodeVarint(2<<3 | proto.WireVarint)
|
|
|
|
_ = b.EncodeVarint(uint64(x.ByID))
|
|
|
|
case nil:
|
|
|
|
default:
|
|
|
|
return fmt.Errorf("UserOpt.User has unexpected type %T", x)
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func _UserOpt_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
|
|
|
|
m := msg.(*UserOpt)
|
|
|
|
switch tag {
|
|
|
|
case 1: // user.byName
|
|
|
|
if wire != proto.WireBytes {
|
|
|
|
return true, proto.ErrInternalBadWireType
|
|
|
|
}
|
|
|
|
msg := new(NamedUserOpt)
|
|
|
|
err := b.DecodeMessage(msg)
|
|
|
|
m.User = &UserOpt_ByName{msg}
|
|
|
|
return true, err
|
|
|
|
case 2: // user.byID
|
|
|
|
if wire != proto.WireVarint {
|
|
|
|
return true, proto.ErrInternalBadWireType
|
|
|
|
}
|
|
|
|
x, err := b.DecodeVarint()
|
|
|
|
m.User = &UserOpt_ByID{uint32(x)}
|
|
|
|
return true, err
|
|
|
|
default:
|
|
|
|
return false, nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func _UserOpt_OneofSizer(msg proto.Message) (n int) {
|
|
|
|
m := msg.(*UserOpt)
|
|
|
|
// user
|
|
|
|
switch x := m.User.(type) {
|
|
|
|
case *UserOpt_ByName:
|
|
|
|
s := proto.Size(x.ByName)
|
|
|
|
n += 1 // tag and wire
|
|
|
|
n += proto.SizeVarint(uint64(s))
|
|
|
|
n += s
|
|
|
|
case *UserOpt_ByID:
|
|
|
|
n += 1 // tag and wire
|
|
|
|
n += proto.SizeVarint(uint64(x.ByID))
|
|
|
|
case nil:
|
|
|
|
default:
|
|
|
|
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
type NamedUserOpt struct {
|
|
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
|
|
Input InputIndex `protobuf:"varint,2,opt,name=input,proto3,customtype=InputIndex" json:"input"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NamedUserOpt) Reset() { *m = NamedUserOpt{} }
|
|
|
|
func (m *NamedUserOpt) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*NamedUserOpt) ProtoMessage() {}
|
|
|
|
func (*NamedUserOpt) Descriptor() ([]byte, []int) {
|
2019-03-11 17:19:24 +00:00
|
|
|
return fileDescriptor_ops_8d64813b9835ab08, []int{26}
|
2019-02-05 01:36:01 +00:00
|
|
|
}
|
|
|
|
func (m *NamedUserOpt) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *NamedUserOpt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalTo(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (dst *NamedUserOpt) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_NamedUserOpt.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *NamedUserOpt) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *NamedUserOpt) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_NamedUserOpt.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_NamedUserOpt proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *NamedUserOpt) GetName() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Name
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func init() {
|
|
|
|
proto.RegisterType((*Op)(nil), "pb.Op")
|
|
|
|
proto.RegisterType((*Platform)(nil), "pb.Platform")
|
|
|
|
proto.RegisterType((*Input)(nil), "pb.Input")
|
|
|
|
proto.RegisterType((*ExecOp)(nil), "pb.ExecOp")
|
|
|
|
proto.RegisterType((*Meta)(nil), "pb.Meta")
|
|
|
|
proto.RegisterType((*Mount)(nil), "pb.Mount")
|
|
|
|
proto.RegisterType((*CacheOpt)(nil), "pb.CacheOpt")
|
|
|
|
proto.RegisterType((*SecretOpt)(nil), "pb.SecretOpt")
|
|
|
|
proto.RegisterType((*SSHOpt)(nil), "pb.SSHOpt")
|
|
|
|
proto.RegisterType((*SourceOp)(nil), "pb.SourceOp")
|
|
|
|
proto.RegisterMapType((map[string]string)(nil), "pb.SourceOp.AttrsEntry")
|
|
|
|
proto.RegisterType((*BuildOp)(nil), "pb.BuildOp")
|
|
|
|
proto.RegisterMapType((map[string]string)(nil), "pb.BuildOp.AttrsEntry")
|
|
|
|
proto.RegisterMapType((map[string]*BuildInput)(nil), "pb.BuildOp.InputsEntry")
|
|
|
|
proto.RegisterType((*BuildInput)(nil), "pb.BuildInput")
|
|
|
|
proto.RegisterType((*OpMetadata)(nil), "pb.OpMetadata")
|
|
|
|
proto.RegisterMapType((map[github_com_moby_buildkit_util_apicaps.CapID]bool)(nil), "pb.OpMetadata.CapsEntry")
|
|
|
|
proto.RegisterMapType((map[string]string)(nil), "pb.OpMetadata.DescriptionEntry")
|
|
|
|
proto.RegisterType((*ExportCache)(nil), "pb.ExportCache")
|
|
|
|
proto.RegisterType((*ProxyEnv)(nil), "pb.ProxyEnv")
|
|
|
|
proto.RegisterType((*WorkerConstraints)(nil), "pb.WorkerConstraints")
|
|
|
|
proto.RegisterType((*Definition)(nil), "pb.Definition")
|
|
|
|
proto.RegisterMapType((map[github_com_opencontainers_go_digest.Digest]OpMetadata)(nil), "pb.Definition.MetadataEntry")
|
|
|
|
proto.RegisterType((*HostIP)(nil), "pb.HostIP")
|
|
|
|
proto.RegisterType((*FileOp)(nil), "pb.FileOp")
|
|
|
|
proto.RegisterType((*FileAction)(nil), "pb.FileAction")
|
|
|
|
proto.RegisterType((*FileActionCopy)(nil), "pb.FileActionCopy")
|
|
|
|
proto.RegisterType((*FileActionMkFile)(nil), "pb.FileActionMkFile")
|
|
|
|
proto.RegisterType((*FileActionMkDir)(nil), "pb.FileActionMkDir")
|
|
|
|
proto.RegisterType((*FileActionRm)(nil), "pb.FileActionRm")
|
|
|
|
proto.RegisterType((*ChownOpt)(nil), "pb.ChownOpt")
|
|
|
|
proto.RegisterType((*UserOpt)(nil), "pb.UserOpt")
|
2019-02-05 01:36:01 +00:00
|
|
|
proto.RegisterType((*NamedUserOpt)(nil), "pb.NamedUserOpt")
|
2019-01-23 21:05:59 +00:00
|
|
|
proto.RegisterEnum("pb.NetMode", NetMode_name, NetMode_value)
|
|
|
|
proto.RegisterEnum("pb.MountType", MountType_name, MountType_value)
|
|
|
|
proto.RegisterEnum("pb.CacheSharingOpt", CacheSharingOpt_name, CacheSharingOpt_value)
|
|
|
|
}
|
|
|
|
func (m *Op) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Op) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
var i int
|
2017-06-06 18:01:18 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2019-01-23 21:05:59 +00:00
|
|
|
if len(m.Inputs) > 0 {
|
|
|
|
for _, msg := range m.Inputs {
|
2017-10-02 04:59:34 +00:00
|
|
|
dAtA[i] = 0xa
|
2017-06-06 18:01:18 +00:00
|
|
|
i++
|
2017-10-02 04:59:34 +00:00
|
|
|
i = encodeVarintOps(dAtA, i, uint64(msg.Size()))
|
|
|
|
n, err := msg.MarshalTo(dAtA[i:])
|
2017-06-06 18:01:18 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n
|
|
|
|
}
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if m.Op != nil {
|
|
|
|
nn1, err := m.Op.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += nn1
|
|
|
|
}
|
|
|
|
if m.Platform != nil {
|
|
|
|
dAtA[i] = 0x52
|
2017-06-06 18:01:18 +00:00
|
|
|
i++
|
2019-01-23 21:05:59 +00:00
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.Platform.Size()))
|
|
|
|
n2, err := m.Platform.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n2
|
|
|
|
}
|
|
|
|
if m.Constraints != nil {
|
|
|
|
dAtA[i] = 0x5a
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.Constraints.Size()))
|
|
|
|
n3, err := m.Constraints.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n3
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *Op_Exec) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
i := 0
|
|
|
|
if m.Exec != nil {
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.Exec.Size()))
|
|
|
|
n4, err := m.Exec.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n4
|
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
func (m *Op_Source) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
i := 0
|
|
|
|
if m.Source != nil {
|
|
|
|
dAtA[i] = 0x1a
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.Source.Size()))
|
|
|
|
n5, err := m.Source.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n5
|
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
func (m *Op_File) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
i := 0
|
|
|
|
if m.File != nil {
|
|
|
|
dAtA[i] = 0x22
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.File.Size()))
|
|
|
|
n6, err := m.File.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n6
|
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
func (m *Op_Build) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
i := 0
|
|
|
|
if m.Build != nil {
|
|
|
|
dAtA[i] = 0x2a
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.Build.Size()))
|
|
|
|
n7, err := m.Build.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n7
|
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
func (m *Platform) Marshal() (dAtA []byte, err error) {
|
2017-06-06 18:01:18 +00:00
|
|
|
size := m.Size()
|
2017-10-02 04:59:34 +00:00
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
2017-06-06 18:01:18 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
return dAtA[:n], nil
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *Platform) MarshalTo(dAtA []byte) (int, error) {
|
2017-06-06 18:01:18 +00:00
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2019-01-23 21:05:59 +00:00
|
|
|
if len(m.Architecture) > 0 {
|
|
|
|
dAtA[i] = 0xa
|
2017-06-06 18:01:18 +00:00
|
|
|
i++
|
2019-01-23 21:05:59 +00:00
|
|
|
i = encodeVarintOps(dAtA, i, uint64(len(m.Architecture)))
|
|
|
|
i += copy(dAtA[i:], m.Architecture)
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if len(m.OS) > 0 {
|
2017-10-02 04:59:34 +00:00
|
|
|
dAtA[i] = 0x12
|
2017-06-06 18:01:18 +00:00
|
|
|
i++
|
2019-01-23 21:05:59 +00:00
|
|
|
i = encodeVarintOps(dAtA, i, uint64(len(m.OS)))
|
|
|
|
i += copy(dAtA[i:], m.OS)
|
|
|
|
}
|
|
|
|
if len(m.Variant) > 0 {
|
|
|
|
dAtA[i] = 0x1a
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(len(m.Variant)))
|
|
|
|
i += copy(dAtA[i:], m.Variant)
|
|
|
|
}
|
|
|
|
if len(m.OSVersion) > 0 {
|
|
|
|
dAtA[i] = 0x22
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(len(m.OSVersion)))
|
|
|
|
i += copy(dAtA[i:], m.OSVersion)
|
|
|
|
}
|
|
|
|
if len(m.OSFeatures) > 0 {
|
|
|
|
for _, s := range m.OSFeatures {
|
|
|
|
dAtA[i] = 0x2a
|
|
|
|
i++
|
|
|
|
l = len(s)
|
|
|
|
for l >= 1<<7 {
|
|
|
|
dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
|
|
|
|
l >>= 7
|
|
|
|
i++
|
|
|
|
}
|
|
|
|
dAtA[i] = uint8(l)
|
|
|
|
i++
|
|
|
|
i += copy(dAtA[i:], s)
|
|
|
|
}
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *Input) Marshal() (dAtA []byte, err error) {
|
2017-06-06 18:01:18 +00:00
|
|
|
size := m.Size()
|
2017-10-02 04:59:34 +00:00
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
2017-06-06 18:01:18 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
return dAtA[:n], nil
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *Input) MarshalTo(dAtA []byte) (int, error) {
|
2017-06-06 18:01:18 +00:00
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2019-01-23 21:05:59 +00:00
|
|
|
if len(m.Digest) > 0 {
|
2017-10-02 04:59:34 +00:00
|
|
|
dAtA[i] = 0xa
|
2017-06-06 18:01:18 +00:00
|
|
|
i++
|
2019-01-23 21:05:59 +00:00
|
|
|
i = encodeVarintOps(dAtA, i, uint64(len(m.Digest)))
|
|
|
|
i += copy(dAtA[i:], m.Digest)
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if m.Index != 0 {
|
|
|
|
dAtA[i] = 0x10
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.Index))
|
2017-07-08 23:25:07 +00:00
|
|
|
}
|
2017-06-06 18:01:18 +00:00
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *ExecOp) Marshal() (dAtA []byte, err error) {
|
2017-07-21 17:58:24 +00:00
|
|
|
size := m.Size()
|
2017-10-02 04:59:34 +00:00
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
2017-07-21 17:58:24 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
return dAtA[:n], nil
|
2017-07-21 17:58:24 +00:00
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *ExecOp) MarshalTo(dAtA []byte) (int, error) {
|
2017-07-21 17:58:24 +00:00
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2019-01-23 21:05:59 +00:00
|
|
|
if m.Meta != nil {
|
|
|
|
dAtA[i] = 0xa
|
2017-10-02 04:59:34 +00:00
|
|
|
i++
|
2019-01-23 21:05:59 +00:00
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.Meta.Size()))
|
|
|
|
n8, err := m.Meta.MarshalTo(dAtA[i:])
|
2017-10-02 04:59:34 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
2017-07-21 17:58:24 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
i += n8
|
2017-07-21 17:58:24 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if len(m.Mounts) > 0 {
|
|
|
|
for _, msg := range m.Mounts {
|
2017-10-02 04:59:34 +00:00
|
|
|
dAtA[i] = 0x12
|
2017-07-21 17:58:24 +00:00
|
|
|
i++
|
2019-01-23 21:05:59 +00:00
|
|
|
i = encodeVarintOps(dAtA, i, uint64(msg.Size()))
|
|
|
|
n, err := msg.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n
|
2017-07-21 17:58:24 +00:00
|
|
|
}
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if m.Network != 0 {
|
|
|
|
dAtA[i] = 0x18
|
2017-10-02 04:59:34 +00:00
|
|
|
i++
|
2019-01-23 21:05:59 +00:00
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.Network))
|
2017-10-02 04:59:34 +00:00
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *Meta) Marshal() (dAtA []byte, err error) {
|
2017-10-02 04:59:34 +00:00
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *Meta) MarshalTo(dAtA []byte) (int, error) {
|
2017-10-02 04:59:34 +00:00
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2019-01-23 21:05:59 +00:00
|
|
|
if len(m.Args) > 0 {
|
|
|
|
for _, s := range m.Args {
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
l = len(s)
|
|
|
|
for l >= 1<<7 {
|
|
|
|
dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
|
|
|
|
l >>= 7
|
|
|
|
i++
|
|
|
|
}
|
|
|
|
dAtA[i] = uint8(l)
|
|
|
|
i++
|
|
|
|
i += copy(dAtA[i:], s)
|
2017-10-02 04:59:34 +00:00
|
|
|
}
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if len(m.Env) > 0 {
|
|
|
|
for _, s := range m.Env {
|
2017-12-08 00:13:50 +00:00
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
2019-01-23 21:05:59 +00:00
|
|
|
l = len(s)
|
|
|
|
for l >= 1<<7 {
|
|
|
|
dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
|
|
|
|
l >>= 7
|
|
|
|
i++
|
|
|
|
}
|
|
|
|
dAtA[i] = uint8(l)
|
2017-12-08 00:13:50 +00:00
|
|
|
i++
|
2019-01-23 21:05:59 +00:00
|
|
|
i += copy(dAtA[i:], s)
|
2017-12-08 00:13:50 +00:00
|
|
|
}
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if len(m.Cwd) > 0 {
|
|
|
|
dAtA[i] = 0x1a
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(len(m.Cwd)))
|
|
|
|
i += copy(dAtA[i:], m.Cwd)
|
|
|
|
}
|
|
|
|
if len(m.User) > 0 {
|
2018-05-07 21:20:25 +00:00
|
|
|
dAtA[i] = 0x22
|
|
|
|
i++
|
2019-01-23 21:05:59 +00:00
|
|
|
i = encodeVarintOps(dAtA, i, uint64(len(m.User)))
|
|
|
|
i += copy(dAtA[i:], m.User)
|
|
|
|
}
|
|
|
|
if m.ProxyEnv != nil {
|
|
|
|
dAtA[i] = 0x2a
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.ProxyEnv.Size()))
|
|
|
|
n9, err := m.ProxyEnv.MarshalTo(dAtA[i:])
|
2018-05-07 21:20:25 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
i += n9
|
2018-05-07 21:20:25 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if len(m.ExtraHosts) > 0 {
|
|
|
|
for _, msg := range m.ExtraHosts {
|
|
|
|
dAtA[i] = 0x32
|
2018-07-18 22:32:37 +00:00
|
|
|
i++
|
2019-01-23 21:05:59 +00:00
|
|
|
i = encodeVarintOps(dAtA, i, uint64(msg.Size()))
|
|
|
|
n, err := msg.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
2018-07-18 22:32:37 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
i += n
|
2018-07-18 22:32:37 +00:00
|
|
|
}
|
|
|
|
}
|
2018-05-07 21:20:25 +00:00
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *Mount) Marshal() (dAtA []byte, err error) {
|
2018-05-07 21:20:25 +00:00
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *Mount) MarshalTo(dAtA []byte) (int, error) {
|
2018-05-07 21:20:25 +00:00
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2019-01-23 21:05:59 +00:00
|
|
|
if m.Input != 0 {
|
2018-05-07 21:20:25 +00:00
|
|
|
dAtA[i] = 0x8
|
|
|
|
i++
|
2019-01-23 21:05:59 +00:00
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.Input))
|
|
|
|
}
|
|
|
|
if len(m.Selector) > 0 {
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(len(m.Selector)))
|
|
|
|
i += copy(dAtA[i:], m.Selector)
|
|
|
|
}
|
|
|
|
if len(m.Dest) > 0 {
|
|
|
|
dAtA[i] = 0x1a
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(len(m.Dest)))
|
|
|
|
i += copy(dAtA[i:], m.Dest)
|
|
|
|
}
|
|
|
|
if m.Output != 0 {
|
|
|
|
dAtA[i] = 0x20
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.Output))
|
|
|
|
}
|
|
|
|
if m.Readonly {
|
|
|
|
dAtA[i] = 0x28
|
|
|
|
i++
|
|
|
|
if m.Readonly {
|
2018-05-07 21:20:25 +00:00
|
|
|
dAtA[i] = 1
|
|
|
|
} else {
|
|
|
|
dAtA[i] = 0
|
|
|
|
}
|
|
|
|
i++
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if m.MountType != 0 {
|
|
|
|
dAtA[i] = 0x30
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.MountType))
|
|
|
|
}
|
|
|
|
if m.CacheOpt != nil {
|
|
|
|
dAtA[i] = 0xa2
|
|
|
|
i++
|
|
|
|
dAtA[i] = 0x1
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.CacheOpt.Size()))
|
|
|
|
n10, err := m.CacheOpt.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n10
|
|
|
|
}
|
|
|
|
if m.SecretOpt != nil {
|
|
|
|
dAtA[i] = 0xaa
|
|
|
|
i++
|
|
|
|
dAtA[i] = 0x1
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.SecretOpt.Size()))
|
|
|
|
n11, err := m.SecretOpt.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n11
|
|
|
|
}
|
|
|
|
if m.SSHOpt != nil {
|
|
|
|
dAtA[i] = 0xb2
|
|
|
|
i++
|
|
|
|
dAtA[i] = 0x1
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.SSHOpt.Size()))
|
|
|
|
n12, err := m.SSHOpt.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n12
|
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *CacheOpt) Marshal() (dAtA []byte, err error) {
|
2018-05-20 21:48:35 +00:00
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *CacheOpt) MarshalTo(dAtA []byte) (int, error) {
|
2018-05-20 21:48:35 +00:00
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2019-01-23 21:05:59 +00:00
|
|
|
if len(m.ID) > 0 {
|
2018-05-20 21:48:35 +00:00
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
2019-01-23 21:05:59 +00:00
|
|
|
i = encodeVarintOps(dAtA, i, uint64(len(m.ID)))
|
|
|
|
i += copy(dAtA[i:], m.ID)
|
2018-05-20 21:48:35 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if m.Sharing != 0 {
|
|
|
|
dAtA[i] = 0x10
|
2018-05-20 21:48:35 +00:00
|
|
|
i++
|
2019-01-23 21:05:59 +00:00
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.Sharing))
|
2018-05-20 21:48:35 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SecretOpt) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SecretOpt) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.ID) > 0 {
|
|
|
|
dAtA[i] = 0xa
|
2018-05-20 21:48:35 +00:00
|
|
|
i++
|
2019-01-23 21:05:59 +00:00
|
|
|
i = encodeVarintOps(dAtA, i, uint64(len(m.ID)))
|
|
|
|
i += copy(dAtA[i:], m.ID)
|
2018-05-20 21:48:35 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if m.Uid != 0 {
|
|
|
|
dAtA[i] = 0x10
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.Uid))
|
|
|
|
}
|
|
|
|
if m.Gid != 0 {
|
|
|
|
dAtA[i] = 0x18
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.Gid))
|
|
|
|
}
|
|
|
|
if m.Mode != 0 {
|
|
|
|
dAtA[i] = 0x20
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.Mode))
|
|
|
|
}
|
|
|
|
if m.Optional {
|
|
|
|
dAtA[i] = 0x28
|
|
|
|
i++
|
|
|
|
if m.Optional {
|
|
|
|
dAtA[i] = 1
|
|
|
|
} else {
|
|
|
|
dAtA[i] = 0
|
|
|
|
}
|
2018-05-20 21:48:35 +00:00
|
|
|
i++
|
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *SSHOpt) Marshal() (dAtA []byte, err error) {
|
2017-11-21 08:08:36 +00:00
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *SSHOpt) MarshalTo(dAtA []byte) (int, error) {
|
2017-11-21 08:08:36 +00:00
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2019-01-23 21:05:59 +00:00
|
|
|
if len(m.ID) > 0 {
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(len(m.ID)))
|
|
|
|
i += copy(dAtA[i:], m.ID)
|
|
|
|
}
|
|
|
|
if m.Uid != 0 {
|
|
|
|
dAtA[i] = 0x10
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.Uid))
|
|
|
|
}
|
|
|
|
if m.Gid != 0 {
|
|
|
|
dAtA[i] = 0x18
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.Gid))
|
|
|
|
}
|
|
|
|
if m.Mode != 0 {
|
|
|
|
dAtA[i] = 0x20
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.Mode))
|
|
|
|
}
|
|
|
|
if m.Optional {
|
|
|
|
dAtA[i] = 0x28
|
|
|
|
i++
|
|
|
|
if m.Optional {
|
|
|
|
dAtA[i] = 1
|
|
|
|
} else {
|
|
|
|
dAtA[i] = 0
|
2017-12-19 09:34:34 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
i++
|
2017-11-21 08:08:36 +00:00
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *SourceOp) Marshal() (dAtA []byte, err error) {
|
2017-10-02 04:59:34 +00:00
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *SourceOp) MarshalTo(dAtA []byte) (int, error) {
|
2017-10-02 04:59:34 +00:00
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2019-01-23 21:05:59 +00:00
|
|
|
if len(m.Identifier) > 0 {
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(len(m.Identifier)))
|
|
|
|
i += copy(dAtA[i:], m.Identifier)
|
2017-10-02 04:59:34 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if len(m.Attrs) > 0 {
|
|
|
|
keysForAttrs := make([]string, 0, len(m.Attrs))
|
|
|
|
for k, _ := range m.Attrs {
|
|
|
|
keysForAttrs = append(keysForAttrs, string(k))
|
2018-09-17 22:19:04 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
github_com_gogo_protobuf_sortkeys.Strings(keysForAttrs)
|
|
|
|
for _, k := range keysForAttrs {
|
2017-10-02 04:59:34 +00:00
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
2019-01-23 21:05:59 +00:00
|
|
|
v := m.Attrs[string(k)]
|
|
|
|
mapSize := 1 + len(k) + sovOps(uint64(len(k))) + 1 + len(v) + sovOps(uint64(len(v)))
|
2017-10-02 04:59:34 +00:00
|
|
|
i = encodeVarintOps(dAtA, i, uint64(mapSize))
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(len(k)))
|
|
|
|
i += copy(dAtA[i:], k)
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
2019-01-23 21:05:59 +00:00
|
|
|
i = encodeVarintOps(dAtA, i, uint64(len(v)))
|
|
|
|
i += copy(dAtA[i:], v)
|
2017-10-02 04:59:34 +00:00
|
|
|
}
|
2017-07-21 17:58:24 +00:00
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *BuildOp) Marshal() (dAtA []byte, err error) {
|
2018-08-01 21:15:43 +00:00
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *BuildOp) MarshalTo(dAtA []byte) (int, error) {
|
2018-08-01 21:15:43 +00:00
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2019-01-23 21:05:59 +00:00
|
|
|
if m.Builder != 0 {
|
|
|
|
dAtA[i] = 0x8
|
2018-08-01 21:15:43 +00:00
|
|
|
i++
|
2019-01-23 21:05:59 +00:00
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.Builder))
|
2019-03-06 00:48:39 +00:00
|
|
|
}
|
2017-06-06 18:01:18 +00:00
|
|
|
if len(m.Inputs) > 0 {
|
2019-01-23 21:05:59 +00:00
|
|
|
keysForInputs := make([]string, 0, len(m.Inputs))
|
|
|
|
for k, _ := range m.Inputs {
|
|
|
|
keysForInputs = append(keysForInputs, string(k))
|
|
|
|
}
|
|
|
|
github_com_gogo_protobuf_sortkeys.Strings(keysForInputs)
|
|
|
|
for _, k := range keysForInputs {
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
|
|
|
v := m.Inputs[string(k)]
|
|
|
|
msgSize := 0
|
|
|
|
if v != nil {
|
|
|
|
msgSize = v.Size()
|
|
|
|
msgSize += 1 + sovOps(uint64(msgSize))
|
|
|
|
}
|
|
|
|
mapSize := 1 + len(k) + sovOps(uint64(len(k))) + msgSize
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(mapSize))
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(len(k)))
|
|
|
|
i += copy(dAtA[i:], k)
|
|
|
|
if v != nil {
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(v.Size()))
|
|
|
|
n13, err := v.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n13
|
|
|
|
}
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if m.Def != nil {
|
|
|
|
dAtA[i] = 0x1a
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.Def.Size()))
|
|
|
|
n14, err := m.Def.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n14
|
2019-03-06 00:48:39 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if len(m.Attrs) > 0 {
|
|
|
|
keysForAttrs := make([]string, 0, len(m.Attrs))
|
|
|
|
for k, _ := range m.Attrs {
|
|
|
|
keysForAttrs = append(keysForAttrs, string(k))
|
|
|
|
}
|
|
|
|
github_com_gogo_protobuf_sortkeys.Strings(keysForAttrs)
|
|
|
|
for _, k := range keysForAttrs {
|
|
|
|
dAtA[i] = 0x22
|
|
|
|
i++
|
|
|
|
v := m.Attrs[string(k)]
|
|
|
|
mapSize := 1 + len(k) + sovOps(uint64(len(k))) + 1 + len(v) + sovOps(uint64(len(v)))
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(mapSize))
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(len(k)))
|
|
|
|
i += copy(dAtA[i:], k)
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(len(v)))
|
|
|
|
i += copy(dAtA[i:], v)
|
|
|
|
}
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return i, nil
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
|
|
|
|
func (m *BuildInput) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return dAtA[:n], nil
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
|
|
|
|
func (m *BuildInput) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
2017-06-06 18:01:18 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
2019-01-23 21:05:59 +00:00
|
|
|
if m.Input != 0 {
|
|
|
|
dAtA[i] = 0x8
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.Input))
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return i, nil
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
|
|
|
|
func (m *OpMetadata) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
2017-07-21 17:58:24 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return dAtA[:n], nil
|
2017-07-21 17:58:24 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
|
|
|
|
func (m *OpMetadata) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
2018-06-21 21:09:38 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
2019-01-23 21:05:59 +00:00
|
|
|
if m.IgnoreCache {
|
|
|
|
dAtA[i] = 0x8
|
|
|
|
i++
|
|
|
|
if m.IgnoreCache {
|
|
|
|
dAtA[i] = 1
|
|
|
|
} else {
|
|
|
|
dAtA[i] = 0
|
|
|
|
}
|
|
|
|
i++
|
2018-06-21 21:09:38 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if len(m.Description) > 0 {
|
|
|
|
keysForDescription := make([]string, 0, len(m.Description))
|
|
|
|
for k, _ := range m.Description {
|
|
|
|
keysForDescription = append(keysForDescription, string(k))
|
|
|
|
}
|
|
|
|
github_com_gogo_protobuf_sortkeys.Strings(keysForDescription)
|
|
|
|
for _, k := range keysForDescription {
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
|
|
|
v := m.Description[string(k)]
|
|
|
|
mapSize := 1 + len(k) + sovOps(uint64(len(k))) + 1 + len(v) + sovOps(uint64(len(v)))
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(mapSize))
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(len(k)))
|
|
|
|
i += copy(dAtA[i:], k)
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(len(v)))
|
|
|
|
i += copy(dAtA[i:], v)
|
|
|
|
}
|
2018-06-21 21:09:38 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if m.ExportCache != nil {
|
|
|
|
dAtA[i] = 0x22
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.ExportCache.Size()))
|
|
|
|
n15, err := m.ExportCache.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n15
|
2018-06-21 21:09:38 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if len(m.Caps) > 0 {
|
|
|
|
keysForCaps := make([]string, 0, len(m.Caps))
|
|
|
|
for k, _ := range m.Caps {
|
|
|
|
keysForCaps = append(keysForCaps, string(k))
|
|
|
|
}
|
|
|
|
github_com_gogo_protobuf_sortkeys.Strings(keysForCaps)
|
|
|
|
for _, k := range keysForCaps {
|
|
|
|
dAtA[i] = 0x2a
|
|
|
|
i++
|
|
|
|
v := m.Caps[github_com_moby_buildkit_util_apicaps.CapID(k)]
|
|
|
|
mapSize := 1 + len(k) + sovOps(uint64(len(k))) + 1 + 1
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(mapSize))
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(len(k)))
|
|
|
|
i += copy(dAtA[i:], k)
|
|
|
|
dAtA[i] = 0x10
|
|
|
|
i++
|
|
|
|
if v {
|
|
|
|
dAtA[i] = 1
|
|
|
|
} else {
|
|
|
|
dAtA[i] = 0
|
|
|
|
}
|
|
|
|
i++
|
2018-06-21 21:09:38 +00:00
|
|
|
}
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return i, nil
|
2018-06-21 21:09:38 +00:00
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *ExportCache) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
2017-06-09 01:16:19 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return dAtA[:n], nil
|
2017-06-09 01:16:19 +00:00
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *ExportCache) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
2017-06-06 18:01:18 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
2019-01-23 21:05:59 +00:00
|
|
|
if m.Value {
|
|
|
|
dAtA[i] = 0x8
|
|
|
|
i++
|
|
|
|
if m.Value {
|
|
|
|
dAtA[i] = 1
|
|
|
|
} else {
|
|
|
|
dAtA[i] = 0
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
i++
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return i, nil
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *ProxyEnv) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
2019-03-06 00:48:39 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ProxyEnv) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
2017-06-06 18:01:18 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
2019-01-23 21:05:59 +00:00
|
|
|
if len(m.HttpProxy) > 0 {
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(len(m.HttpProxy)))
|
|
|
|
i += copy(dAtA[i:], m.HttpProxy)
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if len(m.HttpsProxy) > 0 {
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(len(m.HttpsProxy)))
|
|
|
|
i += copy(dAtA[i:], m.HttpsProxy)
|
2017-12-11 21:17:07 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if len(m.FtpProxy) > 0 {
|
|
|
|
dAtA[i] = 0x1a
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(len(m.FtpProxy)))
|
|
|
|
i += copy(dAtA[i:], m.FtpProxy)
|
2018-05-20 21:48:35 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if len(m.NoProxy) > 0 {
|
|
|
|
dAtA[i] = 0x22
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(len(m.NoProxy)))
|
|
|
|
i += copy(dAtA[i:], m.NoProxy)
|
2018-08-01 21:15:43 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return i, nil
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *WorkerConstraints) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
2019-03-06 00:48:39 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *WorkerConstraints) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
2017-06-06 18:01:18 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
2019-01-23 21:05:59 +00:00
|
|
|
if len(m.Filter) > 0 {
|
|
|
|
for _, s := range m.Filter {
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
l = len(s)
|
|
|
|
for l >= 1<<7 {
|
|
|
|
dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
|
|
|
|
l >>= 7
|
|
|
|
i++
|
|
|
|
}
|
|
|
|
dAtA[i] = uint8(l)
|
|
|
|
i++
|
|
|
|
i += copy(dAtA[i:], s)
|
|
|
|
}
|
2018-09-04 23:33:07 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return i, nil
|
2018-05-15 19:09:09 +00:00
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *Definition) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
2019-03-06 00:48:39 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Definition) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
2018-05-15 19:09:09 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
2019-01-23 21:05:59 +00:00
|
|
|
if len(m.Def) > 0 {
|
|
|
|
for _, b := range m.Def {
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(len(b)))
|
|
|
|
i += copy(dAtA[i:], b)
|
|
|
|
}
|
2018-05-15 19:09:09 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if len(m.Metadata) > 0 {
|
|
|
|
keysForMetadata := make([]string, 0, len(m.Metadata))
|
|
|
|
for k, _ := range m.Metadata {
|
|
|
|
keysForMetadata = append(keysForMetadata, string(k))
|
|
|
|
}
|
|
|
|
github_com_gogo_protobuf_sortkeys.Strings(keysForMetadata)
|
|
|
|
for _, k := range keysForMetadata {
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
|
|
|
v := m.Metadata[github_com_opencontainers_go_digest.Digest(k)]
|
|
|
|
msgSize := 0
|
|
|
|
if (&v) != nil {
|
|
|
|
msgSize = (&v).Size()
|
|
|
|
msgSize += 1 + sovOps(uint64(msgSize))
|
|
|
|
}
|
|
|
|
mapSize := 1 + len(k) + sovOps(uint64(len(k))) + msgSize
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(mapSize))
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(len(k)))
|
|
|
|
i += copy(dAtA[i:], k)
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64((&v).Size()))
|
|
|
|
n16, err := (&v).MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n16
|
|
|
|
}
|
2018-06-18 20:57:36 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return i, nil
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *HostIP) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
2019-03-06 00:48:39 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *HostIP) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
2018-07-19 21:44:18 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
2019-01-23 21:05:59 +00:00
|
|
|
if len(m.Host) > 0 {
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(len(m.Host)))
|
|
|
|
i += copy(dAtA[i:], m.Host)
|
2018-07-19 21:44:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if len(m.IP) > 0 {
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(len(m.IP)))
|
|
|
|
i += copy(dAtA[i:], m.IP)
|
2018-07-19 21:44:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return i, nil
|
2018-07-19 21:44:18 +00:00
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *FileOp) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
2019-03-06 00:48:39 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *FileOp) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
2018-09-04 23:33:07 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
2019-01-23 21:05:59 +00:00
|
|
|
if len(m.Actions) > 0 {
|
|
|
|
for _, msg := range m.Actions {
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(msg.Size()))
|
|
|
|
n, err := msg.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n
|
|
|
|
}
|
2018-09-04 23:33:07 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return i, nil
|
2018-09-04 23:33:07 +00:00
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *FileAction) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return dAtA[:n], nil
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *FileAction) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
2017-06-06 18:01:18 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Input != 0 {
|
2019-01-23 21:05:59 +00:00
|
|
|
dAtA[i] = 0x8
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.Input))
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if m.SecondaryInput != 0 {
|
|
|
|
dAtA[i] = 0x10
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.SecondaryInput))
|
2019-03-06 00:48:39 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if m.Output != 0 {
|
|
|
|
dAtA[i] = 0x18
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.Output))
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if m.Action != nil {
|
|
|
|
nn17, err := m.Action.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
2017-07-08 23:25:07 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
i += nn17
|
2017-07-08 23:25:07 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return i, nil
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *FileAction_Copy) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
i := 0
|
|
|
|
if m.Copy != nil {
|
|
|
|
dAtA[i] = 0x22
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.Copy.Size()))
|
|
|
|
n18, err := m.Copy.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
2017-07-21 17:58:24 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
i += n18
|
2017-07-21 17:58:24 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
func (m *FileAction_Mkfile) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
i := 0
|
|
|
|
if m.Mkfile != nil {
|
|
|
|
dAtA[i] = 0x2a
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.Mkfile.Size()))
|
|
|
|
n19, err := m.Mkfile.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n19
|
2017-07-21 17:58:24 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
func (m *FileAction_Mkdir) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
i := 0
|
|
|
|
if m.Mkdir != nil {
|
|
|
|
dAtA[i] = 0x32
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.Mkdir.Size()))
|
|
|
|
n20, err := m.Mkdir.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
2017-07-21 17:58:24 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
i += n20
|
2017-07-21 17:58:24 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return i, nil
|
2017-07-21 17:58:24 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *FileAction_Rm) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
i := 0
|
|
|
|
if m.Rm != nil {
|
|
|
|
dAtA[i] = 0x3a
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.Rm.Size()))
|
|
|
|
n21, err := m.Rm.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n21
|
2019-03-06 00:48:39 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
func (m *FileActionCopy) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
2017-07-21 17:58:24 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return dAtA[:n], nil
|
2017-07-21 17:58:24 +00:00
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *FileActionCopy) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
2017-10-02 04:59:34 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
2019-01-23 21:05:59 +00:00
|
|
|
if len(m.Src) > 0 {
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(len(m.Src)))
|
|
|
|
i += copy(dAtA[i:], m.Src)
|
2017-10-02 04:59:34 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if len(m.Dest) > 0 {
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(len(m.Dest)))
|
|
|
|
i += copy(dAtA[i:], m.Dest)
|
|
|
|
}
|
|
|
|
if m.Owner != nil {
|
2019-03-11 17:19:24 +00:00
|
|
|
dAtA[i] = 0x1a
|
2019-01-23 21:05:59 +00:00
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.Owner.Size()))
|
|
|
|
n22, err := m.Owner.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
2017-12-08 00:13:50 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
i += n22
|
2017-12-08 00:13:50 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if m.Mode != 0 {
|
2019-03-11 17:19:24 +00:00
|
|
|
dAtA[i] = 0x20
|
2019-01-23 21:05:59 +00:00
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.Mode))
|
2018-05-07 21:20:25 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if m.FollowSymlink {
|
2019-03-11 17:19:24 +00:00
|
|
|
dAtA[i] = 0x28
|
2019-01-23 21:05:59 +00:00
|
|
|
i++
|
|
|
|
if m.FollowSymlink {
|
|
|
|
dAtA[i] = 1
|
|
|
|
} else {
|
|
|
|
dAtA[i] = 0
|
2018-07-18 22:32:37 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
i++
|
2018-07-18 22:32:37 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if m.DirCopyContents {
|
2019-03-11 17:19:24 +00:00
|
|
|
dAtA[i] = 0x30
|
2019-01-23 21:05:59 +00:00
|
|
|
i++
|
|
|
|
if m.DirCopyContents {
|
|
|
|
dAtA[i] = 1
|
|
|
|
} else {
|
|
|
|
dAtA[i] = 0
|
|
|
|
}
|
|
|
|
i++
|
2019-03-06 00:48:39 +00:00
|
|
|
}
|
2019-02-05 01:36:01 +00:00
|
|
|
if m.AttemptUnpackDockerCompatibility {
|
2019-03-11 17:19:24 +00:00
|
|
|
dAtA[i] = 0x38
|
2019-01-23 21:05:59 +00:00
|
|
|
i++
|
2019-02-05 01:36:01 +00:00
|
|
|
if m.AttemptUnpackDockerCompatibility {
|
2019-01-23 21:05:59 +00:00
|
|
|
dAtA[i] = 1
|
|
|
|
} else {
|
|
|
|
dAtA[i] = 0
|
|
|
|
}
|
|
|
|
i++
|
2018-05-07 21:20:25 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if m.CreateDestPath {
|
2019-03-11 17:19:24 +00:00
|
|
|
dAtA[i] = 0x40
|
2019-01-23 21:05:59 +00:00
|
|
|
i++
|
|
|
|
if m.CreateDestPath {
|
|
|
|
dAtA[i] = 1
|
|
|
|
} else {
|
|
|
|
dAtA[i] = 0
|
|
|
|
}
|
|
|
|
i++
|
|
|
|
}
|
|
|
|
if m.AllowWildcard {
|
2019-03-11 17:19:24 +00:00
|
|
|
dAtA[i] = 0x48
|
2019-01-23 21:05:59 +00:00
|
|
|
i++
|
|
|
|
if m.AllowWildcard {
|
|
|
|
dAtA[i] = 1
|
|
|
|
} else {
|
|
|
|
dAtA[i] = 0
|
|
|
|
}
|
|
|
|
i++
|
|
|
|
}
|
|
|
|
if m.AllowEmptyWildcard {
|
2019-03-11 17:19:24 +00:00
|
|
|
dAtA[i] = 0x50
|
2019-01-23 21:05:59 +00:00
|
|
|
i++
|
|
|
|
if m.AllowEmptyWildcard {
|
|
|
|
dAtA[i] = 1
|
|
|
|
} else {
|
|
|
|
dAtA[i] = 0
|
|
|
|
}
|
|
|
|
i++
|
|
|
|
}
|
2019-02-01 18:52:53 +00:00
|
|
|
if m.Timestamp != 0 {
|
2019-03-11 17:19:24 +00:00
|
|
|
dAtA[i] = 0x58
|
2019-02-01 18:52:53 +00:00
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.Timestamp))
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return i, nil
|
2017-11-21 08:08:36 +00:00
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *FileActionMkFile) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
2019-03-06 00:48:39 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *FileActionMkFile) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
2018-05-20 21:48:35 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
2019-01-23 21:05:59 +00:00
|
|
|
if len(m.Path) > 0 {
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(len(m.Path)))
|
|
|
|
i += copy(dAtA[i:], m.Path)
|
2018-05-20 21:48:35 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if m.Mode != 0 {
|
|
|
|
dAtA[i] = 0x10
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.Mode))
|
2018-05-20 21:48:35 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if len(m.Data) > 0 {
|
|
|
|
dAtA[i] = 0x1a
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(len(m.Data)))
|
|
|
|
i += copy(dAtA[i:], m.Data)
|
2018-05-20 21:48:35 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if m.Owner != nil {
|
|
|
|
dAtA[i] = 0x22
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.Owner.Size()))
|
|
|
|
n23, err := m.Owner.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n23
|
2018-05-20 21:48:35 +00:00
|
|
|
}
|
2019-02-01 18:52:53 +00:00
|
|
|
if m.Timestamp != 0 {
|
|
|
|
dAtA[i] = 0x28
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.Timestamp))
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return i, nil
|
2018-05-20 21:48:35 +00:00
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *FileActionMkDir) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *FileActionMkDir) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Path) > 0 {
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(len(m.Path)))
|
|
|
|
i += copy(dAtA[i:], m.Path)
|
|
|
|
}
|
|
|
|
if m.Mode != 0 {
|
|
|
|
dAtA[i] = 0x10
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.Mode))
|
|
|
|
}
|
|
|
|
if m.MakeParents {
|
|
|
|
dAtA[i] = 0x18
|
|
|
|
i++
|
|
|
|
if m.MakeParents {
|
|
|
|
dAtA[i] = 1
|
|
|
|
} else {
|
|
|
|
dAtA[i] = 0
|
|
|
|
}
|
|
|
|
i++
|
|
|
|
}
|
|
|
|
if m.Owner != nil {
|
|
|
|
dAtA[i] = 0x22
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.Owner.Size()))
|
|
|
|
n24, err := m.Owner.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n24
|
|
|
|
}
|
2019-02-01 18:52:53 +00:00
|
|
|
if m.Timestamp != 0 {
|
|
|
|
dAtA[i] = 0x28
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.Timestamp))
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *FileActionRm) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *FileActionRm) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Path) > 0 {
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(len(m.Path)))
|
|
|
|
i += copy(dAtA[i:], m.Path)
|
|
|
|
}
|
|
|
|
if m.AllowNotFound {
|
|
|
|
dAtA[i] = 0x10
|
|
|
|
i++
|
|
|
|
if m.AllowNotFound {
|
|
|
|
dAtA[i] = 1
|
|
|
|
} else {
|
|
|
|
dAtA[i] = 0
|
|
|
|
}
|
|
|
|
i++
|
|
|
|
}
|
|
|
|
if m.AllowWildcard {
|
|
|
|
dAtA[i] = 0x18
|
|
|
|
i++
|
|
|
|
if m.AllowWildcard {
|
|
|
|
dAtA[i] = 1
|
|
|
|
} else {
|
|
|
|
dAtA[i] = 0
|
|
|
|
}
|
|
|
|
i++
|
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ChownOpt) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ChownOpt) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.User != nil {
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.User.Size()))
|
|
|
|
n25, err := m.User.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n25
|
|
|
|
}
|
|
|
|
if m.Group != nil {
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.Group.Size()))
|
|
|
|
n26, err := m.Group.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n26
|
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *UserOpt) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *UserOpt) MarshalTo(dAtA []byte) (int, error) {
|
2019-02-05 01:36:01 +00:00
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.User != nil {
|
|
|
|
nn27, err := m.User.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += nn27
|
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *UserOpt_ByName) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
i := 0
|
|
|
|
if m.ByName != nil {
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.ByName.Size()))
|
|
|
|
n28, err := m.ByName.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n28
|
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
func (m *UserOpt_ByID) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
i := 0
|
|
|
|
dAtA[i] = 0x10
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.ByID))
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
func (m *NamedUserOpt) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NamedUserOpt) MarshalTo(dAtA []byte) (int, error) {
|
2019-01-23 21:05:59 +00:00
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Name) > 0 {
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(len(m.Name)))
|
|
|
|
i += copy(dAtA[i:], m.Name)
|
|
|
|
}
|
|
|
|
if m.Input != 0 {
|
|
|
|
dAtA[i] = 0x10
|
|
|
|
i++
|
|
|
|
i = encodeVarintOps(dAtA, i, uint64(m.Input))
|
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func encodeVarintOps(dAtA []byte, offset int, v uint64) int {
|
|
|
|
for v >= 1<<7 {
|
|
|
|
dAtA[offset] = uint8(v&0x7f | 0x80)
|
|
|
|
v >>= 7
|
|
|
|
offset++
|
|
|
|
}
|
|
|
|
dAtA[offset] = uint8(v)
|
|
|
|
return offset + 1
|
|
|
|
}
|
|
|
|
func (m *Op) Size() (n int) {
|
2019-03-06 00:48:39 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2017-11-21 08:08:36 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
2019-01-23 21:05:59 +00:00
|
|
|
if len(m.Inputs) > 0 {
|
|
|
|
for _, e := range m.Inputs {
|
|
|
|
l = e.Size()
|
2017-12-19 09:34:34 +00:00
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
2017-11-21 08:08:36 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if m.Op != nil {
|
|
|
|
n += m.Op.Size()
|
|
|
|
}
|
|
|
|
if m.Platform != nil {
|
|
|
|
l = m.Platform.Size()
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
if m.Constraints != nil {
|
|
|
|
l = m.Constraints.Size()
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *Op_Exec) Size() (n int) {
|
2019-03-06 00:48:39 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
2019-01-23 21:05:59 +00:00
|
|
|
if m.Exec != nil {
|
|
|
|
l = m.Exec.Size()
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
2017-10-02 04:59:34 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return n
|
|
|
|
}
|
|
|
|
func (m *Op_Source) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Source != nil {
|
|
|
|
l = m.Source.Size()
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
2017-10-02 04:59:34 +00:00
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *Op_File) Size() (n int) {
|
2019-03-06 00:48:39 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2018-08-01 21:15:43 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
2019-01-23 21:05:59 +00:00
|
|
|
if m.File != nil {
|
|
|
|
l = m.File.Size()
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
func (m *Op_Build) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Build != nil {
|
|
|
|
l = m.Build.Size()
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
func (m *Platform) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Architecture)
|
2018-08-01 21:15:43 +00:00
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
l = len(m.OS)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
l = len(m.Variant)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
l = len(m.OSVersion)
|
2018-08-01 21:15:43 +00:00
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if len(m.OSFeatures) > 0 {
|
|
|
|
for _, s := range m.OSFeatures {
|
|
|
|
l = len(s)
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Input) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Digest)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
if m.Index != 0 {
|
|
|
|
n += 1 + sovOps(uint64(m.Index))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ExecOp) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Meta != nil {
|
|
|
|
l = m.Meta.Size()
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
if len(m.Mounts) > 0 {
|
|
|
|
for _, e := range m.Mounts {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if m.Network != 0 {
|
|
|
|
n += 1 + sovOps(uint64(m.Network))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Meta) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Args) > 0 {
|
|
|
|
for _, s := range m.Args {
|
|
|
|
l = len(s)
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if len(m.Env) > 0 {
|
|
|
|
for _, s := range m.Env {
|
|
|
|
l = len(s)
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
l = len(m.Cwd)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
l = len(m.User)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
if m.ProxyEnv != nil {
|
|
|
|
l = m.ProxyEnv.Size()
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
if len(m.ExtraHosts) > 0 {
|
|
|
|
for _, e := range m.ExtraHosts {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Mount) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Input != 0 {
|
|
|
|
n += 1 + sovOps(uint64(m.Input))
|
|
|
|
}
|
|
|
|
l = len(m.Selector)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
l = len(m.Dest)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
if m.Output != 0 {
|
|
|
|
n += 1 + sovOps(uint64(m.Output))
|
|
|
|
}
|
|
|
|
if m.Readonly {
|
|
|
|
n += 2
|
|
|
|
}
|
|
|
|
if m.MountType != 0 {
|
|
|
|
n += 1 + sovOps(uint64(m.MountType))
|
|
|
|
}
|
|
|
|
if m.CacheOpt != nil {
|
|
|
|
l = m.CacheOpt.Size()
|
|
|
|
n += 2 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
if m.SecretOpt != nil {
|
|
|
|
l = m.SecretOpt.Size()
|
|
|
|
n += 2 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
if m.SSHOpt != nil {
|
|
|
|
l = m.SSHOpt.Size()
|
|
|
|
n += 2 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *CacheOpt) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.ID)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
if m.Sharing != 0 {
|
|
|
|
n += 1 + sovOps(uint64(m.Sharing))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SecretOpt) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.ID)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
if m.Uid != 0 {
|
|
|
|
n += 1 + sovOps(uint64(m.Uid))
|
|
|
|
}
|
|
|
|
if m.Gid != 0 {
|
|
|
|
n += 1 + sovOps(uint64(m.Gid))
|
|
|
|
}
|
|
|
|
if m.Mode != 0 {
|
|
|
|
n += 1 + sovOps(uint64(m.Mode))
|
|
|
|
}
|
|
|
|
if m.Optional {
|
|
|
|
n += 2
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SSHOpt) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.ID)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
if m.Uid != 0 {
|
|
|
|
n += 1 + sovOps(uint64(m.Uid))
|
|
|
|
}
|
|
|
|
if m.Gid != 0 {
|
|
|
|
n += 1 + sovOps(uint64(m.Gid))
|
|
|
|
}
|
|
|
|
if m.Mode != 0 {
|
|
|
|
n += 1 + sovOps(uint64(m.Mode))
|
|
|
|
}
|
|
|
|
if m.Optional {
|
|
|
|
n += 2
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SourceOp) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Identifier)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
if len(m.Attrs) > 0 {
|
|
|
|
for k, v := range m.Attrs {
|
|
|
|
_ = k
|
|
|
|
_ = v
|
|
|
|
mapEntrySize := 1 + len(k) + sovOps(uint64(len(k))) + 1 + len(v) + sovOps(uint64(len(v)))
|
|
|
|
n += mapEntrySize + 1 + sovOps(uint64(mapEntrySize))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *BuildOp) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Builder != 0 {
|
|
|
|
n += 1 + sovOps(uint64(m.Builder))
|
|
|
|
}
|
|
|
|
if len(m.Inputs) > 0 {
|
|
|
|
for k, v := range m.Inputs {
|
|
|
|
_ = k
|
|
|
|
_ = v
|
|
|
|
l = 0
|
|
|
|
if v != nil {
|
|
|
|
l = v.Size()
|
|
|
|
l += 1 + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
mapEntrySize := 1 + len(k) + sovOps(uint64(len(k))) + l
|
|
|
|
n += mapEntrySize + 1 + sovOps(uint64(mapEntrySize))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if m.Def != nil {
|
|
|
|
l = m.Def.Size()
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
if len(m.Attrs) > 0 {
|
|
|
|
for k, v := range m.Attrs {
|
|
|
|
_ = k
|
|
|
|
_ = v
|
|
|
|
mapEntrySize := 1 + len(k) + sovOps(uint64(len(k))) + 1 + len(v) + sovOps(uint64(len(v)))
|
|
|
|
n += mapEntrySize + 1 + sovOps(uint64(mapEntrySize))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *BuildInput) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Input != 0 {
|
|
|
|
n += 1 + sovOps(uint64(m.Input))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *OpMetadata) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.IgnoreCache {
|
|
|
|
n += 2
|
|
|
|
}
|
|
|
|
if len(m.Description) > 0 {
|
|
|
|
for k, v := range m.Description {
|
|
|
|
_ = k
|
|
|
|
_ = v
|
|
|
|
mapEntrySize := 1 + len(k) + sovOps(uint64(len(k))) + 1 + len(v) + sovOps(uint64(len(v)))
|
|
|
|
n += mapEntrySize + 1 + sovOps(uint64(mapEntrySize))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if m.ExportCache != nil {
|
|
|
|
l = m.ExportCache.Size()
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
if len(m.Caps) > 0 {
|
|
|
|
for k, v := range m.Caps {
|
|
|
|
_ = k
|
|
|
|
_ = v
|
|
|
|
mapEntrySize := 1 + len(k) + sovOps(uint64(len(k))) + 1 + 1
|
|
|
|
n += mapEntrySize + 1 + sovOps(uint64(mapEntrySize))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ExportCache) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Value {
|
|
|
|
n += 2
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ProxyEnv) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.HttpProxy)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
l = len(m.HttpsProxy)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
l = len(m.FtpProxy)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
l = len(m.NoProxy)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *WorkerConstraints) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Filter) > 0 {
|
|
|
|
for _, s := range m.Filter {
|
|
|
|
l = len(s)
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Definition) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Def) > 0 {
|
|
|
|
for _, b := range m.Def {
|
|
|
|
l = len(b)
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if len(m.Metadata) > 0 {
|
|
|
|
for k, v := range m.Metadata {
|
|
|
|
_ = k
|
|
|
|
_ = v
|
|
|
|
l = v.Size()
|
|
|
|
mapEntrySize := 1 + len(k) + sovOps(uint64(len(k))) + 1 + l + sovOps(uint64(l))
|
|
|
|
n += mapEntrySize + 1 + sovOps(uint64(mapEntrySize))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *HostIP) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Host)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
l = len(m.IP)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *FileOp) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Actions) > 0 {
|
|
|
|
for _, e := range m.Actions {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *FileAction) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Input != 0 {
|
|
|
|
n += 1 + sovOps(uint64(m.Input))
|
|
|
|
}
|
|
|
|
if m.SecondaryInput != 0 {
|
|
|
|
n += 1 + sovOps(uint64(m.SecondaryInput))
|
|
|
|
}
|
|
|
|
if m.Output != 0 {
|
|
|
|
n += 1 + sovOps(uint64(m.Output))
|
|
|
|
}
|
|
|
|
if m.Action != nil {
|
|
|
|
n += m.Action.Size()
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *FileAction_Copy) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Copy != nil {
|
|
|
|
l = m.Copy.Size()
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
func (m *FileAction_Mkfile) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Mkfile != nil {
|
|
|
|
l = m.Mkfile.Size()
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
func (m *FileAction_Mkdir) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Mkdir != nil {
|
|
|
|
l = m.Mkdir.Size()
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
func (m *FileAction_Rm) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Rm != nil {
|
|
|
|
l = m.Rm.Size()
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
func (m *FileActionCopy) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Src)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
l = len(m.Dest)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
if m.Owner != nil {
|
|
|
|
l = m.Owner.Size()
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
if m.Mode != 0 {
|
|
|
|
n += 1 + sovOps(uint64(m.Mode))
|
|
|
|
}
|
|
|
|
if m.FollowSymlink {
|
|
|
|
n += 2
|
|
|
|
}
|
|
|
|
if m.DirCopyContents {
|
|
|
|
n += 2
|
|
|
|
}
|
2019-02-05 01:36:01 +00:00
|
|
|
if m.AttemptUnpackDockerCompatibility {
|
2019-01-23 21:05:59 +00:00
|
|
|
n += 2
|
|
|
|
}
|
|
|
|
if m.CreateDestPath {
|
|
|
|
n += 2
|
|
|
|
}
|
|
|
|
if m.AllowWildcard {
|
|
|
|
n += 2
|
|
|
|
}
|
|
|
|
if m.AllowEmptyWildcard {
|
|
|
|
n += 2
|
|
|
|
}
|
2019-02-01 18:52:53 +00:00
|
|
|
if m.Timestamp != 0 {
|
|
|
|
n += 1 + sovOps(uint64(m.Timestamp))
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *FileActionMkFile) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Path)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
if m.Mode != 0 {
|
|
|
|
n += 1 + sovOps(uint64(m.Mode))
|
|
|
|
}
|
|
|
|
l = len(m.Data)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
if m.Owner != nil {
|
|
|
|
l = m.Owner.Size()
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
2019-02-01 18:52:53 +00:00
|
|
|
if m.Timestamp != 0 {
|
|
|
|
n += 1 + sovOps(uint64(m.Timestamp))
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *FileActionMkDir) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Path)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
if m.Mode != 0 {
|
|
|
|
n += 1 + sovOps(uint64(m.Mode))
|
|
|
|
}
|
|
|
|
if m.MakeParents {
|
|
|
|
n += 2
|
|
|
|
}
|
|
|
|
if m.Owner != nil {
|
|
|
|
l = m.Owner.Size()
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
2019-02-01 18:52:53 +00:00
|
|
|
if m.Timestamp != 0 {
|
|
|
|
n += 1 + sovOps(uint64(m.Timestamp))
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *FileActionRm) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Path)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
if m.AllowNotFound {
|
|
|
|
n += 2
|
|
|
|
}
|
|
|
|
if m.AllowWildcard {
|
|
|
|
n += 2
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ChownOpt) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.User != nil {
|
|
|
|
l = m.User.Size()
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
if m.Group != nil {
|
|
|
|
l = m.Group.Size()
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *UserOpt) Size() (n int) {
|
2019-02-05 01:36:01 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.User != nil {
|
|
|
|
n += m.User.Size()
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *UserOpt_ByName) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.ByName != nil {
|
|
|
|
l = m.ByName.Size()
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
func (m *UserOpt_ByID) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
n += 1 + sovOps(uint64(m.ByID))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
func (m *NamedUserOpt) Size() (n int) {
|
2019-01-23 21:05:59 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Name)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovOps(uint64(l))
|
|
|
|
}
|
|
|
|
if m.Input != 0 {
|
|
|
|
n += 1 + sovOps(uint64(m.Input))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func sovOps(x uint64) (n int) {
|
|
|
|
for {
|
|
|
|
n++
|
|
|
|
x >>= 7
|
|
|
|
if x == 0 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
func sozOps(x uint64) (n int) {
|
|
|
|
return sovOps(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
|
|
|
}
|
|
|
|
func (m *Op) 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 ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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: Op: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: Op: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Inputs", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Inputs = append(m.Inputs, &Input{})
|
|
|
|
if err := m.Inputs[len(m.Inputs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Exec", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
v := &ExecOp{}
|
|
|
|
if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
m.Op = &Op_Exec{v}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
v := &SourceOp{}
|
|
|
|
if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
m.Op = &Op_Source{v}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 4:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field File", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
v := &FileOp{}
|
|
|
|
if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
m.Op = &Op_File{v}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 5:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Build", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
v := &BuildOp{}
|
|
|
|
if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
m.Op = &Op_Build{v}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 10:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Platform", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.Platform == nil {
|
|
|
|
m.Platform = &Platform{}
|
|
|
|
}
|
|
|
|
if err := m.Platform.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 11:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Constraints", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.Constraints == nil {
|
|
|
|
m.Constraints = &WorkerConstraints{}
|
|
|
|
}
|
|
|
|
if err := m.Constraints.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipOps(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *Platform) 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 ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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: Platform: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: Platform: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Architecture", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Architecture = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field OS", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.OS = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Variant", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Variant = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 4:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field OSVersion", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.OSVersion = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 5:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field OSFeatures", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.OSFeatures = append(m.OSFeatures, string(dAtA[iNdEx:postIndex]))
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipOps(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *Input) 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 ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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: Input: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: Input: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Digest", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Digest = github_com_opencontainers_go_digest.Digest(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType)
|
|
|
|
}
|
|
|
|
m.Index = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
m.Index |= (OutputIndex(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipOps(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *ExecOp) 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 ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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: ExecOp: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: ExecOp: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.Meta == nil {
|
|
|
|
m.Meta = &Meta{}
|
|
|
|
}
|
|
|
|
if err := m.Meta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Mounts", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Mounts = append(m.Mounts, &Mount{})
|
|
|
|
if err := m.Mounts[len(m.Mounts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Network", wireType)
|
|
|
|
}
|
|
|
|
m.Network = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
m.Network |= (NetMode(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipOps(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
2018-08-01 21:15:43 +00:00
|
|
|
|
2019-01-23 21:05:59 +00:00
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
return nil
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *Meta) Unmarshal(dAtA []byte) error {
|
2017-10-02 04:59:34 +00:00
|
|
|
l := len(dAtA)
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: Meta: wiretype end group for non-group")
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: Meta: illegal tag %d (wire type %d)", fieldNum, wire)
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Args", wireType)
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
var stringLen uint64
|
2017-06-06 18:01:18 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx++
|
2019-01-23 21:05:59 +00:00
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
2017-06-06 18:01:18 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
2017-06-06 18:01:18 +00:00
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
postIndex := iNdEx + intStringLen
|
2017-06-06 18:01:18 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.Args = append(m.Args, string(dAtA[iNdEx:postIndex]))
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Env", wireType)
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
var stringLen uint64
|
2017-06-06 18:01:18 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx++
|
2019-01-23 21:05:59 +00:00
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
2017-06-06 18:01:18 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
2017-06-06 18:01:18 +00:00
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
postIndex := iNdEx + intStringLen
|
2017-06-06 18:01:18 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.Env = append(m.Env, string(dAtA[iNdEx:postIndex]))
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Cwd", wireType)
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
var stringLen uint64
|
2017-06-06 18:01:18 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx++
|
2019-01-23 21:05:59 +00:00
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
2017-06-06 18:01:18 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
2017-06-06 18:01:18 +00:00
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
postIndex := iNdEx + intStringLen
|
2017-06-06 18:01:18 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.Cwd = string(dAtA[iNdEx:postIndex])
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx = postIndex
|
|
|
|
case 4:
|
|
|
|
if wireType != 2 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field User", wireType)
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
var stringLen uint64
|
2017-06-06 18:01:18 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx++
|
2019-01-23 21:05:59 +00:00
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
2017-06-06 18:01:18 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
2017-06-06 18:01:18 +00:00
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
postIndex := iNdEx + intStringLen
|
2017-06-06 18:01:18 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.User = string(dAtA[iNdEx:postIndex])
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx = postIndex
|
2017-07-21 17:58:24 +00:00
|
|
|
case 5:
|
|
|
|
if wireType != 2 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ProxyEnv", wireType)
|
2018-06-21 21:09:38 +00:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if m.ProxyEnv == nil {
|
|
|
|
m.ProxyEnv = &ProxyEnv{}
|
2018-06-21 21:09:38 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if err := m.ProxyEnv.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
2018-06-21 21:09:38 +00:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
2019-01-23 21:05:59 +00:00
|
|
|
case 6:
|
2018-06-21 21:09:38 +00:00
|
|
|
if wireType != 2 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ExtraHosts", wireType)
|
2018-06-21 21:09:38 +00:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.ExtraHosts = append(m.ExtraHosts, &HostIP{})
|
|
|
|
if err := m.ExtraHosts[len(m.ExtraHosts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
2018-06-21 21:09:38 +00:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipOps(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *Mount) Unmarshal(dAtA []byte) error {
|
2018-06-21 21:09:38 +00:00
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: Mount: wiretype end group for non-group")
|
2018-06-21 21:09:38 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: Mount: illegal tag %d (wire type %d)", fieldNum, wire)
|
2018-06-21 21:09:38 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
2019-01-23 21:05:59 +00:00
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Input", wireType)
|
|
|
|
}
|
|
|
|
m.Input = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
m.Input |= (InputIndex(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 2:
|
2018-06-21 21:09:38 +00:00
|
|
|
if wireType != 2 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType)
|
2018-06-21 21:09:38 +00:00
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.Selector = string(dAtA[iNdEx:postIndex])
|
2018-06-21 21:09:38 +00:00
|
|
|
iNdEx = postIndex
|
2019-01-23 21:05:59 +00:00
|
|
|
case 3:
|
2018-06-21 21:09:38 +00:00
|
|
|
if wireType != 2 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Dest", wireType)
|
2018-06-21 21:09:38 +00:00
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.Dest = string(dAtA[iNdEx:postIndex])
|
2018-06-21 21:09:38 +00:00
|
|
|
iNdEx = postIndex
|
2019-01-23 21:05:59 +00:00
|
|
|
case 4:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Output", wireType)
|
|
|
|
}
|
|
|
|
m.Output = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
m.Output |= (OutputIndex(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 5:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Readonly", wireType)
|
|
|
|
}
|
|
|
|
var v int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
v |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m.Readonly = bool(v != 0)
|
|
|
|
case 6:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field MountType", wireType)
|
|
|
|
}
|
|
|
|
m.MountType = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
m.MountType |= (MountType(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 20:
|
2018-06-21 21:09:38 +00:00
|
|
|
if wireType != 2 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field CacheOpt", wireType)
|
2018-06-21 21:09:38 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
var msglen int
|
2018-06-21 21:09:38 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-01-23 21:05:59 +00:00
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
2018-06-21 21:09:38 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if msglen < 0 {
|
2018-06-21 21:09:38 +00:00
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
postIndex := iNdEx + msglen
|
2018-06-21 21:09:38 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if m.CacheOpt == nil {
|
|
|
|
m.CacheOpt = &CacheOpt{}
|
|
|
|
}
|
|
|
|
if err := m.CacheOpt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2018-06-21 21:09:38 +00:00
|
|
|
iNdEx = postIndex
|
2019-01-23 21:05:59 +00:00
|
|
|
case 21:
|
2018-06-21 21:09:38 +00:00
|
|
|
if wireType != 2 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field SecretOpt", wireType)
|
2018-06-21 21:09:38 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
var msglen int
|
2018-06-21 21:09:38 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-01-23 21:05:59 +00:00
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
2018-06-21 21:09:38 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if msglen < 0 {
|
2018-06-21 21:09:38 +00:00
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
postIndex := iNdEx + msglen
|
2018-06-21 21:09:38 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if m.SecretOpt == nil {
|
|
|
|
m.SecretOpt = &SecretOpt{}
|
|
|
|
}
|
|
|
|
if err := m.SecretOpt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2018-06-21 21:09:38 +00:00
|
|
|
iNdEx = postIndex
|
2019-01-23 21:05:59 +00:00
|
|
|
case 22:
|
2018-06-21 21:09:38 +00:00
|
|
|
if wireType != 2 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field SSHOpt", wireType)
|
2018-06-21 21:09:38 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
var msglen int
|
2018-06-21 21:09:38 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-01-23 21:05:59 +00:00
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
2018-06-21 21:09:38 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if msglen < 0 {
|
2018-06-21 21:09:38 +00:00
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
postIndex := iNdEx + msglen
|
2018-06-21 21:09:38 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if m.SSHOpt == nil {
|
|
|
|
m.SSHOpt = &SSHOpt{}
|
|
|
|
}
|
|
|
|
if err := m.SSHOpt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2018-06-21 21:09:38 +00:00
|
|
|
iNdEx = postIndex
|
2017-06-06 18:01:18 +00:00
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
2017-10-02 04:59:34 +00:00
|
|
|
skippy, err := skipOps(dAtA[iNdEx:])
|
2017-06-06 18:01:18 +00:00
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *CacheOpt) Unmarshal(dAtA []byte) error {
|
2017-10-02 04:59:34 +00:00
|
|
|
l := len(dAtA)
|
2017-06-09 01:16:19 +00:00
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-06-09 01:16:19 +00:00
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: CacheOpt: wiretype end group for non-group")
|
2017-06-09 01:16:19 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: CacheOpt: illegal tag %d (wire type %d)", fieldNum, wire)
|
2017-06-09 01:16:19 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
|
2017-06-09 01:16:19 +00:00
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-06-09 01:16:19 +00:00
|
|
|
iNdEx++
|
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.ID = string(dAtA[iNdEx:postIndex])
|
2017-06-09 01:16:19 +00:00
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 0 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Sharing", wireType)
|
2017-06-09 01:16:19 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.Sharing = 0
|
2017-06-09 01:16:19 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-06-09 01:16:19 +00:00
|
|
|
iNdEx++
|
2019-01-23 21:05:59 +00:00
|
|
|
m.Sharing |= (CacheSharingOpt(b) & 0x7F) << shift
|
2017-06-09 01:16:19 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
2017-10-02 04:59:34 +00:00
|
|
|
skippy, err := skipOps(dAtA[iNdEx:])
|
2017-06-09 01:16:19 +00:00
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *SecretOpt) Unmarshal(dAtA []byte) error {
|
2017-10-02 04:59:34 +00:00
|
|
|
l := len(dAtA)
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: SecretOpt: wiretype end group for non-group")
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: SecretOpt: illegal tag %d (wire type %d)", fieldNum, wire)
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
var stringLen uint64
|
2017-06-06 18:01:18 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx++
|
2019-01-23 21:05:59 +00:00
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
2017-06-06 18:01:18 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
2017-06-06 18:01:18 +00:00
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
postIndex := iNdEx + intStringLen
|
2017-06-06 18:01:18 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.ID = string(dAtA[iNdEx:postIndex])
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
2019-01-23 21:05:59 +00:00
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.Uid = 0
|
2017-06-06 18:01:18 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx++
|
2019-01-23 21:05:59 +00:00
|
|
|
m.Uid |= (uint32(b) & 0x7F) << shift
|
2017-06-06 18:01:18 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
case 3:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Gid", wireType)
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.Gid = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
m.Gid |= (uint32(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
case 4:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType)
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.Mode = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
m.Mode |= (uint32(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 5:
|
2018-08-04 19:42:01 +00:00
|
|
|
if wireType != 0 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Optional", wireType)
|
2018-08-04 19:42:01 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
var v int
|
2018-08-04 19:42:01 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-01-23 21:05:59 +00:00
|
|
|
v |= (int(b) & 0x7F) << shift
|
2018-08-04 19:42:01 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.Optional = bool(v != 0)
|
2017-06-06 18:01:18 +00:00
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
2017-10-02 04:59:34 +00:00
|
|
|
skippy, err := skipOps(dAtA[iNdEx:])
|
2017-06-06 18:01:18 +00:00
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *SSHOpt) Unmarshal(dAtA []byte) error {
|
2017-10-02 04:59:34 +00:00
|
|
|
l := len(dAtA)
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: SSHOpt: wiretype end group for non-group")
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: SSHOpt: illegal tag %d (wire type %d)", fieldNum, wire)
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx++
|
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.ID = string(dAtA[iNdEx:postIndex])
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
2019-01-23 21:05:59 +00:00
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.Uid = 0
|
2017-06-06 18:01:18 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx++
|
2019-01-23 21:05:59 +00:00
|
|
|
m.Uid |= (uint32(b) & 0x7F) << shift
|
2017-06-06 18:01:18 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
case 3:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Gid", wireType)
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.Gid = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
m.Gid |= (uint32(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
case 4:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType)
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.Mode = 0
|
2017-06-06 18:01:18 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx++
|
2019-01-23 21:05:59 +00:00
|
|
|
m.Mode |= (uint32(b) & 0x7F) << shift
|
2017-06-06 18:01:18 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
case 5:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Optional", wireType)
|
|
|
|
}
|
|
|
|
var v int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
v |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m.Optional = bool(v != 0)
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipOps(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
2017-06-06 18:01:18 +00:00
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *SourceOp) 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 ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
2017-06-06 18:01:18 +00:00
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
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: SourceOp: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: SourceOp: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
2017-12-11 21:17:07 +00:00
|
|
|
if wireType != 2 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Identifier", wireType)
|
2017-12-11 21:17:07 +00:00
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.Identifier = string(dAtA[iNdEx:postIndex])
|
2017-12-11 21:17:07 +00:00
|
|
|
iNdEx = postIndex
|
2019-01-23 21:05:59 +00:00
|
|
|
case 2:
|
2018-05-20 21:48:35 +00:00
|
|
|
if wireType != 2 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Attrs", wireType)
|
2018-05-20 21:48:35 +00:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if m.Attrs == nil {
|
|
|
|
m.Attrs = make(map[string]string)
|
2018-08-01 21:15:43 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
var mapkey string
|
|
|
|
var mapvalue string
|
|
|
|
for iNdEx < postIndex {
|
|
|
|
entryPreIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
2018-08-01 21:15:43 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
if fieldNum == 1 {
|
|
|
|
var stringLenmapkey uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postStringIndexmapkey := iNdEx + intStringLenmapkey
|
|
|
|
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 ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postStringIndexmapvalue := iNdEx + intStringLenmapvalue
|
|
|
|
if postStringIndexmapvalue > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
|
|
|
|
iNdEx = postStringIndexmapvalue
|
|
|
|
} else {
|
|
|
|
iNdEx = entryPreIndex
|
|
|
|
skippy, err := skipOps(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > postIndex {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
2018-08-01 21:15:43 +00:00
|
|
|
}
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.Attrs[mapkey] = mapvalue
|
2018-08-01 21:15:43 +00:00
|
|
|
iNdEx = postIndex
|
2017-06-06 18:01:18 +00:00
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
2017-10-02 04:59:34 +00:00
|
|
|
skippy, err := skipOps(dAtA[iNdEx:])
|
2017-06-06 18:01:18 +00:00
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *BuildOp) Unmarshal(dAtA []byte) error {
|
2017-10-02 04:59:34 +00:00
|
|
|
l := len(dAtA)
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: BuildOp: wiretype end group for non-group")
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: BuildOp: illegal tag %d (wire type %d)", fieldNum, wire)
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 0 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Builder", wireType)
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.Builder = 0
|
2017-06-06 18:01:18 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx++
|
2019-01-23 21:05:59 +00:00
|
|
|
m.Builder |= (InputIndex(b) & 0x7F) << shift
|
2017-06-06 18:01:18 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Inputs", wireType)
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
var msglen int
|
2017-06-06 18:01:18 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx++
|
2019-01-23 21:05:59 +00:00
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
2017-06-06 18:01:18 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if msglen < 0 {
|
2017-06-06 18:01:18 +00:00
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
postIndex := iNdEx + msglen
|
2017-06-06 18:01:18 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if m.Inputs == nil {
|
|
|
|
m.Inputs = make(map[string]*BuildInput)
|
|
|
|
}
|
|
|
|
var mapkey string
|
|
|
|
var mapvalue *BuildInput
|
|
|
|
for iNdEx < postIndex {
|
|
|
|
entryPreIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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 ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postStringIndexmapkey := iNdEx + intStringLenmapkey
|
|
|
|
if postStringIndexmapkey > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
|
|
|
|
iNdEx = postStringIndexmapkey
|
|
|
|
} else if fieldNum == 2 {
|
|
|
|
var mapmsglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
mapmsglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if mapmsglen < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postmsgIndex := iNdEx + mapmsglen
|
|
|
|
if mapmsglen < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
if postmsgIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
mapvalue = &BuildInput{}
|
|
|
|
if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postmsgIndex
|
|
|
|
} else {
|
|
|
|
iNdEx = entryPreIndex
|
|
|
|
skippy, err := skipOps(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > postIndex {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m.Inputs[mapkey] = mapvalue
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Def", wireType)
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
var msglen int
|
2017-06-06 18:01:18 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx++
|
2019-01-23 21:05:59 +00:00
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
2017-06-06 18:01:18 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if msglen < 0 {
|
2017-06-06 18:01:18 +00:00
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
postIndex := iNdEx + msglen
|
2017-06-06 18:01:18 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if m.Def == nil {
|
|
|
|
m.Def = &Definition{}
|
2018-05-15 19:09:09 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if err := m.Def.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
2018-05-15 19:09:09 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
iNdEx = postIndex
|
|
|
|
case 4:
|
2018-05-15 19:09:09 +00:00
|
|
|
if wireType != 2 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Attrs", wireType)
|
2018-05-15 19:09:09 +00:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if m.Attrs == nil {
|
|
|
|
m.Attrs = make(map[string]string)
|
2018-07-19 21:44:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
var mapkey string
|
|
|
|
var mapvalue string
|
|
|
|
for iNdEx < postIndex {
|
|
|
|
entryPreIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
2018-07-19 21:44:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
if fieldNum == 1 {
|
|
|
|
var stringLenmapkey uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postStringIndexmapkey := iNdEx + intStringLenmapkey
|
|
|
|
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 ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postStringIndexmapvalue := iNdEx + intStringLenmapvalue
|
|
|
|
if postStringIndexmapvalue > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
|
|
|
|
iNdEx = postStringIndexmapvalue
|
|
|
|
} else {
|
|
|
|
iNdEx = entryPreIndex
|
|
|
|
skippy, err := skipOps(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > postIndex {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
2018-07-19 21:44:18 +00:00
|
|
|
}
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.Attrs[mapkey] = mapvalue
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipOps(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
2018-07-19 21:44:18 +00:00
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if (iNdEx + skippy) > l {
|
2018-07-19 21:44:18 +00:00
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *BuildInput) 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 ErrIntOverflowOps
|
2018-07-19 21:44:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
2018-07-19 21:44:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
2018-09-04 23:33:07 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: BuildInput: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: BuildInput: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Input", wireType)
|
|
|
|
}
|
|
|
|
m.Input = 0
|
2018-09-04 23:33:07 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-01-23 21:05:59 +00:00
|
|
|
m.Input |= (InputIndex(b) & 0x7F) << shift
|
2018-09-04 23:33:07 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2018-05-15 19:09:09 +00:00
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipOps(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *OpMetadata) Unmarshal(dAtA []byte) error {
|
2018-05-15 19:09:09 +00:00
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: OpMetadata: wiretype end group for non-group")
|
2018-05-15 19:09:09 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: OpMetadata: illegal tag %d (wire type %d)", fieldNum, wire)
|
2018-05-15 19:09:09 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
2019-01-23 21:05:59 +00:00
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field IgnoreCache", wireType)
|
|
|
|
}
|
|
|
|
var v int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
v |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m.IgnoreCache = bool(v != 0)
|
|
|
|
case 2:
|
2018-05-15 19:09:09 +00:00
|
|
|
if wireType != 2 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType)
|
2018-05-15 19:09:09 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
var msglen int
|
2018-05-15 19:09:09 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-01-23 21:05:59 +00:00
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
2018-05-15 19:09:09 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if msglen < 0 {
|
2018-05-15 19:09:09 +00:00
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
postIndex := iNdEx + msglen
|
2018-05-15 19:09:09 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if m.Description == nil {
|
|
|
|
m.Description = 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 ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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 ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postStringIndexmapkey := iNdEx + intStringLenmapkey
|
|
|
|
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 ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postStringIndexmapvalue := iNdEx + intStringLenmapvalue
|
|
|
|
if postStringIndexmapvalue > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
|
|
|
|
iNdEx = postStringIndexmapvalue
|
|
|
|
} else {
|
|
|
|
iNdEx = entryPreIndex
|
|
|
|
skippy, err := skipOps(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > postIndex {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m.Description[mapkey] = mapvalue
|
2018-05-15 19:09:09 +00:00
|
|
|
iNdEx = postIndex
|
2019-01-23 21:05:59 +00:00
|
|
|
case 4:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ExportCache", wireType)
|
2018-06-18 20:57:36 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
var msglen int
|
2018-06-18 20:57:36 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-01-23 21:05:59 +00:00
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.ExportCache == nil {
|
|
|
|
m.ExportCache = &ExportCache{}
|
|
|
|
}
|
|
|
|
if err := m.ExportCache.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 5:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Caps", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
2018-06-18 20:57:36 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.Caps == nil {
|
|
|
|
m.Caps = make(map[github_com_moby_buildkit_util_apicaps.CapID]bool)
|
|
|
|
}
|
|
|
|
var mapkey github_com_moby_buildkit_util_apicaps.CapID
|
|
|
|
var mapvalue bool
|
|
|
|
for iNdEx < postIndex {
|
|
|
|
entryPreIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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 ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postStringIndexmapkey := iNdEx + intStringLenmapkey
|
|
|
|
if postStringIndexmapkey > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
mapkey = github_com_moby_buildkit_util_apicaps.CapID(dAtA[iNdEx:postStringIndexmapkey])
|
|
|
|
iNdEx = postStringIndexmapkey
|
|
|
|
} else if fieldNum == 2 {
|
|
|
|
var mapvaluetemp int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
mapvaluetemp |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
mapvalue = bool(mapvaluetemp != 0)
|
|
|
|
} else {
|
|
|
|
iNdEx = entryPreIndex
|
|
|
|
skippy, err := skipOps(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > postIndex {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m.Caps[github_com_moby_buildkit_util_apicaps.CapID(mapkey)] = mapvalue
|
|
|
|
iNdEx = postIndex
|
2017-06-06 18:01:18 +00:00
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
2017-10-02 04:59:34 +00:00
|
|
|
skippy, err := skipOps(dAtA[iNdEx:])
|
2017-06-06 18:01:18 +00:00
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *ExportCache) Unmarshal(dAtA []byte) error {
|
2018-07-19 21:44:18 +00:00
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: ExportCache: wiretype end group for non-group")
|
2018-07-19 21:44:18 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: ExportCache: illegal tag %d (wire type %d)", fieldNum, wire)
|
2018-07-19 21:44:18 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 0 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
|
2018-07-19 21:44:18 +00:00
|
|
|
}
|
|
|
|
var v int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
v |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.Value = bool(v != 0)
|
2018-07-19 21:44:18 +00:00
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipOps(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *ProxyEnv) Unmarshal(dAtA []byte) error {
|
2018-09-04 23:33:07 +00:00
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: ProxyEnv: wiretype end group for non-group")
|
2018-09-04 23:33:07 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: ProxyEnv: illegal tag %d (wire type %d)", fieldNum, wire)
|
2018-09-04 23:33:07 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field HttpProxy", wireType)
|
2018-09-04 23:33:07 +00:00
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.HttpProxy = string(dAtA[iNdEx:postIndex])
|
2018-09-04 23:33:07 +00:00
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
2019-01-23 21:05:59 +00:00
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field HttpsProxy", wireType)
|
2018-09-04 23:33:07 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
var stringLen uint64
|
2018-09-04 23:33:07 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-01-23 21:05:59 +00:00
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
2018-09-04 23:33:07 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
2018-09-04 23:33:07 +00:00
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
2017-06-06 18:01:18 +00:00
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.HttpsProxy = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
2017-06-06 18:01:18 +00:00
|
|
|
if wireType != 2 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field FtpProxy", wireType)
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
var stringLen uint64
|
2017-06-06 18:01:18 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx++
|
2019-01-23 21:05:59 +00:00
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
2017-06-06 18:01:18 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
2017-06-06 18:01:18 +00:00
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
postIndex := iNdEx + intStringLen
|
2017-06-06 18:01:18 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.FtpProxy = string(dAtA[iNdEx:postIndex])
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx = postIndex
|
2019-01-23 21:05:59 +00:00
|
|
|
case 4:
|
2017-06-06 18:01:18 +00:00
|
|
|
if wireType != 2 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field NoProxy", wireType)
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx++
|
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.NoProxy = string(dAtA[iNdEx:postIndex])
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
2017-10-02 04:59:34 +00:00
|
|
|
skippy, err := skipOps(dAtA[iNdEx:])
|
2017-06-06 18:01:18 +00:00
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *WorkerConstraints) Unmarshal(dAtA []byte) error {
|
2017-10-02 04:59:34 +00:00
|
|
|
l := len(dAtA)
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: WorkerConstraints: wiretype end group for non-group")
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: WorkerConstraints: illegal tag %d (wire type %d)", fieldNum, wire)
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Filter", wireType)
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx++
|
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.Filter = append(m.Filter, string(dAtA[iNdEx:postIndex]))
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
2017-10-02 04:59:34 +00:00
|
|
|
skippy, err := skipOps(dAtA[iNdEx:])
|
2017-06-06 18:01:18 +00:00
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *Definition) Unmarshal(dAtA []byte) error {
|
2017-10-02 04:59:34 +00:00
|
|
|
l := len(dAtA)
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: Definition: wiretype end group for non-group")
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: Definition: illegal tag %d (wire type %d)", fieldNum, wire)
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Def", wireType)
|
2017-06-06 18:01:18 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
var byteLen int
|
2017-06-06 18:01:18 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx++
|
2019-01-23 21:05:59 +00:00
|
|
|
byteLen |= (int(b) & 0x7F) << shift
|
2017-06-06 18:01:18 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if byteLen < 0 {
|
2017-06-06 18:01:18 +00:00
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
postIndex := iNdEx + byteLen
|
2017-06-06 18:01:18 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.Def = append(m.Def, make([]byte, postIndex-iNdEx))
|
|
|
|
copy(m.Def[len(m.Def)-1], dAtA[iNdEx:postIndex])
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx = postIndex
|
2017-07-08 23:25:07 +00:00
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType)
|
2017-07-08 23:25:07 +00:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-07-08 23:25:07 +00:00
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if m.Metadata == nil {
|
|
|
|
m.Metadata = make(map[github_com_opencontainers_go_digest.Digest]OpMetadata)
|
2017-10-02 04:59:34 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
var mapkey github_com_opencontainers_go_digest.Digest
|
|
|
|
mapvalue := &OpMetadata{}
|
2018-04-03 10:36:10 +00:00
|
|
|
for iNdEx < postIndex {
|
|
|
|
entryPreIndex := iNdEx
|
|
|
|
var wire uint64
|
2017-10-02 04:59:34 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2018-04-03 10:36:10 +00:00
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
2017-10-02 04:59:34 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
2017-07-08 23:25:07 +00:00
|
|
|
}
|
2018-04-03 10:36:10 +00:00
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
if fieldNum == 1 {
|
|
|
|
var stringLenmapkey uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
stringLenmapkey |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
}
|
2018-04-03 10:36:10 +00:00
|
|
|
intStringLenmapkey := int(stringLenmapkey)
|
|
|
|
if intStringLenmapkey < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postStringIndexmapkey := iNdEx + intStringLenmapkey
|
|
|
|
if postStringIndexmapkey > l {
|
2017-10-02 04:59:34 +00:00
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
mapkey = github_com_opencontainers_go_digest.Digest(dAtA[iNdEx:postStringIndexmapkey])
|
2018-04-03 10:36:10 +00:00
|
|
|
iNdEx = postStringIndexmapkey
|
|
|
|
} else if fieldNum == 2 {
|
2019-01-23 21:05:59 +00:00
|
|
|
var mapmsglen int
|
2018-04-03 10:36:10 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-01-23 21:05:59 +00:00
|
|
|
mapmsglen |= (int(b) & 0x7F) << shift
|
2018-04-03 10:36:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if mapmsglen < 0 {
|
2018-04-03 10:36:10 +00:00
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
postmsgIndex := iNdEx + mapmsglen
|
|
|
|
if mapmsglen < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
if postmsgIndex > l {
|
2018-04-03 10:36:10 +00:00
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
mapvalue = &OpMetadata{}
|
|
|
|
if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postmsgIndex
|
2018-04-03 10:36:10 +00:00
|
|
|
} else {
|
|
|
|
iNdEx = entryPreIndex
|
|
|
|
skippy, err := skipOps(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > postIndex {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
2017-07-08 23:25:07 +00:00
|
|
|
}
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.Metadata[github_com_opencontainers_go_digest.Digest(mapkey)] = *mapvalue
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipOps(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *HostIP) 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 ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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: HostIP: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: HostIP: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Host = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field IP", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.IP = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipOps(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *FileOp) 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 ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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: FileOp: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: FileOp: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Actions", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Actions = append(m.Actions, &FileAction{})
|
|
|
|
if err := m.Actions[len(m.Actions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2017-07-08 23:25:07 +00:00
|
|
|
iNdEx = postIndex
|
2017-06-06 18:01:18 +00:00
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
2017-10-02 04:59:34 +00:00
|
|
|
skippy, err := skipOps(dAtA[iNdEx:])
|
2017-06-06 18:01:18 +00:00
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-07-21 17:58:24 +00:00
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *FileAction) Unmarshal(dAtA []byte) error {
|
2017-10-02 04:59:34 +00:00
|
|
|
l := len(dAtA)
|
2017-07-21 17:58:24 +00:00
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-07-21 17:58:24 +00:00
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: FileAction: wiretype end group for non-group")
|
2017-07-21 17:58:24 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: FileAction: illegal tag %d (wire type %d)", fieldNum, wire)
|
2017-07-21 17:58:24 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 0 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Input", wireType)
|
2017-07-21 17:58:24 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.Input = 0
|
2017-07-21 17:58:24 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-07-21 17:58:24 +00:00
|
|
|
iNdEx++
|
2019-01-23 21:05:59 +00:00
|
|
|
m.Input |= (InputIndex(b) & 0x7F) << shift
|
2017-07-21 17:58:24 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 2:
|
2019-01-23 21:05:59 +00:00
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field SecondaryInput", wireType)
|
2017-07-21 17:58:24 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.SecondaryInput = 0
|
2017-07-21 17:58:24 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-07-21 17:58:24 +00:00
|
|
|
iNdEx++
|
2019-01-23 21:05:59 +00:00
|
|
|
m.SecondaryInput |= (InputIndex(b) & 0x7F) << shift
|
2017-07-21 17:58:24 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
case 3:
|
2019-01-23 21:05:59 +00:00
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Output", wireType)
|
2017-07-21 17:58:24 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.Output = 0
|
2017-07-21 17:58:24 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-07-21 17:58:24 +00:00
|
|
|
iNdEx++
|
2019-01-23 21:05:59 +00:00
|
|
|
m.Output |= (OutputIndex(b) & 0x7F) << shift
|
2017-07-21 17:58:24 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 4:
|
|
|
|
if wireType != 2 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Copy", wireType)
|
2017-07-21 17:58:24 +00:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-07-21 17:58:24 +00:00
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
v := &FileActionCopy{}
|
|
|
|
if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
2017-10-02 04:59:34 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.Action = &FileAction_Copy{v}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 5:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Mkfile", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
2017-10-02 04:59:34 +00:00
|
|
|
}
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if msglen < 0 {
|
2017-10-02 04:59:34 +00:00
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
2017-10-02 04:59:34 +00:00
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
v := &FileActionMkFile{}
|
|
|
|
if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
2017-10-02 04:59:34 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.Action = &FileAction_Mkfile{v}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 6:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Mkdir", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
2017-10-02 04:59:34 +00:00
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
v := &FileActionMkDir{}
|
|
|
|
if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
2017-10-02 04:59:34 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.Action = &FileAction_Mkdir{v}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 7:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Rm", wireType)
|
2017-10-02 04:59:34 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
var msglen int
|
2017-07-21 17:58:24 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-07-21 17:58:24 +00:00
|
|
|
iNdEx++
|
2019-01-23 21:05:59 +00:00
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
2017-07-21 17:58:24 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
v := &FileActionRm{}
|
|
|
|
if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
m.Action = &FileAction_Rm{v}
|
|
|
|
iNdEx = postIndex
|
2017-10-02 04:59:34 +00:00
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipOps(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *FileActionCopy) Unmarshal(dAtA []byte) error {
|
2017-10-02 04:59:34 +00:00
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: FileActionCopy: wiretype end group for non-group")
|
2017-10-02 04:59:34 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: FileActionCopy: illegal tag %d (wire type %d)", fieldNum, wire)
|
2017-10-02 04:59:34 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
2019-01-23 21:05:59 +00:00
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Src", wireType)
|
2017-10-02 04:59:34 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
var stringLen uint64
|
2017-07-21 17:58:24 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-07-21 17:58:24 +00:00
|
|
|
iNdEx++
|
2019-01-23 21:05:59 +00:00
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
2017-07-21 17:58:24 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Src = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
2017-12-08 00:13:50 +00:00
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Dest", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Dest = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
2019-03-11 17:19:24 +00:00
|
|
|
case 3:
|
2019-01-23 21:05:59 +00:00
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType)
|
2017-12-08 00:13:50 +00:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if m.Owner == nil {
|
|
|
|
m.Owner = &ChownOpt{}
|
2017-12-08 00:13:50 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if err := m.Owner.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
2019-03-11 17:19:24 +00:00
|
|
|
case 4:
|
2019-01-23 21:05:59 +00:00
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType)
|
|
|
|
}
|
|
|
|
m.Mode = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
2017-12-08 00:13:50 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
m.Mode |= (int32(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
2017-12-08 00:13:50 +00:00
|
|
|
}
|
|
|
|
}
|
2019-03-11 17:19:24 +00:00
|
|
|
case 5:
|
2019-01-23 21:05:59 +00:00
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field FollowSymlink", wireType)
|
2018-05-07 21:20:25 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
var v int
|
2018-05-07 21:20:25 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-01-23 21:05:59 +00:00
|
|
|
v |= (int(b) & 0x7F) << shift
|
2018-05-07 21:20:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.FollowSymlink = bool(v != 0)
|
2019-03-11 17:19:24 +00:00
|
|
|
case 6:
|
2019-01-23 21:05:59 +00:00
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field DirCopyContents", wireType)
|
2018-05-07 21:20:25 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
var v int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
v |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
2018-05-07 21:20:25 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.DirCopyContents = bool(v != 0)
|
2019-03-11 17:19:24 +00:00
|
|
|
case 7:
|
2019-01-23 21:05:59 +00:00
|
|
|
if wireType != 0 {
|
2019-02-05 01:36:01 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AttemptUnpackDockerCompatibility", wireType)
|
2018-05-07 21:20:25 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
var v int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
v |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
2018-05-07 21:20:25 +00:00
|
|
|
}
|
2019-02-05 01:36:01 +00:00
|
|
|
m.AttemptUnpackDockerCompatibility = bool(v != 0)
|
2019-03-11 17:19:24 +00:00
|
|
|
case 8:
|
2019-01-23 21:05:59 +00:00
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field CreateDestPath", wireType)
|
2018-07-18 22:32:37 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
var v int
|
2018-07-18 22:32:37 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-01-23 21:05:59 +00:00
|
|
|
v |= (int(b) & 0x7F) << shift
|
2018-07-18 22:32:37 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.CreateDestPath = bool(v != 0)
|
2019-03-11 17:19:24 +00:00
|
|
|
case 9:
|
2019-01-23 21:05:59 +00:00
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AllowWildcard", wireType)
|
2018-07-18 22:32:37 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
var v int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
v |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
2018-07-18 22:32:37 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.AllowWildcard = bool(v != 0)
|
2019-03-11 17:19:24 +00:00
|
|
|
case 10:
|
2019-01-23 21:05:59 +00:00
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AllowEmptyWildcard", wireType)
|
2018-07-18 22:32:37 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
var v int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
2018-07-18 22:32:37 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
v |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
2018-07-18 22:32:37 +00:00
|
|
|
}
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.AllowEmptyWildcard = bool(v != 0)
|
2019-03-11 17:19:24 +00:00
|
|
|
case 11:
|
2019-02-01 18:52:53 +00:00
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType)
|
|
|
|
}
|
|
|
|
m.Timestamp = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
m.Timestamp |= (int64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2018-05-07 21:20:25 +00:00
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipOps(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *FileActionMkFile) Unmarshal(dAtA []byte) error {
|
2018-05-07 21:20:25 +00:00
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: FileActionMkFile: wiretype end group for non-group")
|
2018-05-07 21:20:25 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: FileActionMkFile: illegal tag %d (wire type %d)", fieldNum, wire)
|
2018-05-07 21:20:25 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
2019-01-23 21:05:59 +00:00
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Path = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
2018-05-07 21:20:25 +00:00
|
|
|
if wireType != 0 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType)
|
2018-05-07 21:20:25 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.Mode = 0
|
2018-05-07 21:20:25 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-01-23 21:05:59 +00:00
|
|
|
m.Mode |= (int32(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
|
|
|
|
}
|
|
|
|
var byteLen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
byteLen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if byteLen < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + byteLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
|
|
|
|
if m.Data == nil {
|
|
|
|
m.Data = []byte{}
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 4:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
2018-05-07 21:20:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.Owner == nil {
|
|
|
|
m.Owner = &ChownOpt{}
|
|
|
|
}
|
|
|
|
if err := m.Owner.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
2019-02-01 18:52:53 +00:00
|
|
|
case 5:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType)
|
|
|
|
}
|
|
|
|
m.Timestamp = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
m.Timestamp |= (int64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2017-11-21 08:08:36 +00:00
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipOps(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *FileActionMkDir) Unmarshal(dAtA []byte) error {
|
2018-05-20 21:48:35 +00:00
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: FileActionMkDir: wiretype end group for non-group")
|
2018-05-20 21:48:35 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: FileActionMkDir: illegal tag %d (wire type %d)", fieldNum, wire)
|
2018-05-20 21:48:35 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType)
|
2018-05-20 21:48:35 +00:00
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.Path = string(dAtA[iNdEx:postIndex])
|
2018-05-20 21:48:35 +00:00
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
2019-01-23 21:05:59 +00:00
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType)
|
2018-05-20 21:48:35 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.Mode = 0
|
2018-05-20 21:48:35 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-01-23 21:05:59 +00:00
|
|
|
m.Mode |= (int32(b) & 0x7F) << shift
|
2018-05-20 21:48:35 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 3:
|
2019-01-23 21:05:59 +00:00
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field MakeParents", wireType)
|
2018-05-20 21:48:35 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
var v int
|
2018-05-20 21:48:35 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-01-23 21:05:59 +00:00
|
|
|
v |= (int(b) & 0x7F) << shift
|
2018-05-20 21:48:35 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.MakeParents = bool(v != 0)
|
2018-05-20 21:48:35 +00:00
|
|
|
case 4:
|
|
|
|
if wireType != 2 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType)
|
2018-05-20 21:48:35 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
var msglen int
|
2018-05-20 21:48:35 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-01-23 21:05:59 +00:00
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
2018-05-20 21:48:35 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if msglen < 0 {
|
2018-05-20 21:48:35 +00:00
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
postIndex := iNdEx + msglen
|
2018-05-20 21:48:35 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if m.Owner == nil {
|
|
|
|
m.Owner = &ChownOpt{}
|
|
|
|
}
|
|
|
|
if err := m.Owner.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2018-05-20 21:48:35 +00:00
|
|
|
iNdEx = postIndex
|
2019-02-01 18:52:53 +00:00
|
|
|
case 5:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType)
|
|
|
|
}
|
|
|
|
m.Timestamp = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
m.Timestamp |= (int64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2018-05-20 21:48:35 +00:00
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipOps(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *FileActionRm) Unmarshal(dAtA []byte) error {
|
2017-11-21 08:08:36 +00:00
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: FileActionRm: wiretype end group for non-group")
|
2017-11-21 08:08:36 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: FileActionRm: illegal tag %d (wire type %d)", fieldNum, wire)
|
2017-11-21 08:08:36 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType)
|
2017-11-21 08:08:36 +00:00
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
m.Path = string(dAtA[iNdEx:postIndex])
|
2017-11-21 08:08:36 +00:00
|
|
|
iNdEx = postIndex
|
2019-01-23 21:05:59 +00:00
|
|
|
case 2:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AllowNotFound", wireType)
|
|
|
|
}
|
|
|
|
var v int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
v |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m.AllowNotFound = bool(v != 0)
|
|
|
|
case 3:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AllowWildcard", wireType)
|
|
|
|
}
|
|
|
|
var v int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
v |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m.AllowWildcard = bool(v != 0)
|
2017-07-21 17:58:24 +00:00
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
2017-10-02 04:59:34 +00:00
|
|
|
skippy, err := skipOps(dAtA[iNdEx:])
|
2017-07-21 17:58:24 +00:00
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *ChownOpt) Unmarshal(dAtA []byte) error {
|
2017-10-02 04:59:34 +00:00
|
|
|
l := len(dAtA)
|
2017-07-21 17:58:24 +00:00
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-07-21 17:58:24 +00:00
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: ChownOpt: wiretype end group for non-group")
|
2017-07-21 17:58:24 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: ChownOpt: illegal tag %d (wire type %d)", fieldNum, wire)
|
2017-07-21 17:58:24 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
2017-10-02 04:59:34 +00:00
|
|
|
if wireType != 2 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field User", wireType)
|
2017-07-21 17:58:24 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
var msglen int
|
2017-07-21 17:58:24 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-07-21 17:58:24 +00:00
|
|
|
iNdEx++
|
2019-01-23 21:05:59 +00:00
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
2017-10-02 04:59:34 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if msglen < 0 {
|
2017-10-02 04:59:34 +00:00
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
postIndex := iNdEx + msglen
|
2017-10-02 04:59:34 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if m.User == nil {
|
|
|
|
m.User = &UserOpt{}
|
|
|
|
}
|
|
|
|
if err := m.User.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType)
|
2017-10-02 04:59:34 +00:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if m.Group == nil {
|
|
|
|
m.Group = &UserOpt{}
|
2017-10-02 04:59:34 +00:00
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
if err := m.Group.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
2017-10-02 04:59:34 +00:00
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
2017-07-21 17:58:24 +00:00
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
2017-10-02 04:59:34 +00:00
|
|
|
skippy, err := skipOps(dAtA[iNdEx:])
|
2017-07-21 17:58:24 +00:00
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-06-06 18:01:18 +00:00
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2019-01-23 21:05:59 +00:00
|
|
|
func (m *UserOpt) Unmarshal(dAtA []byte) error {
|
2018-08-01 21:15:43 +00:00
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: UserOpt: wiretype end group for non-group")
|
2018-08-01 21:15:43 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2019-01-23 21:05:59 +00:00
|
|
|
return fmt.Errorf("proto: UserOpt: illegal tag %d (wire type %d)", fieldNum, wire)
|
2018-08-01 21:15:43 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2019-02-05 01:36:01 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ByName", wireType)
|
2018-08-01 21:15:43 +00:00
|
|
|
}
|
2019-02-05 01:36:01 +00:00
|
|
|
var msglen int
|
2018-08-01 21:15:43 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-02-05 01:36:01 +00:00
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
2018-08-01 21:15:43 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2019-02-05 01:36:01 +00:00
|
|
|
if msglen < 0 {
|
2018-08-01 21:15:43 +00:00
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
2019-02-05 01:36:01 +00:00
|
|
|
postIndex := iNdEx + msglen
|
2018-08-01 21:15:43 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-02-05 01:36:01 +00:00
|
|
|
v := &NamedUserOpt{}
|
|
|
|
if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
m.User = &UserOpt_ByName{v}
|
2018-08-01 21:15:43 +00:00
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
2019-01-23 21:05:59 +00:00
|
|
|
if wireType != 0 {
|
2019-02-05 01:36:01 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ByID", wireType)
|
2018-08-01 21:15:43 +00:00
|
|
|
}
|
2019-02-05 01:36:01 +00:00
|
|
|
var v uint32
|
2018-08-01 21:15:43 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-02-05 01:36:01 +00:00
|
|
|
v |= (uint32(b) & 0x7F) << shift
|
2018-08-01 21:15:43 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2019-02-05 01:36:01 +00:00
|
|
|
m.User = &UserOpt_ByID{v}
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipOps(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *NamedUserOpt) 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 ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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: NamedUserOpt: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: NamedUserOpt: 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 ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Name = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
2019-01-23 21:05:59 +00:00
|
|
|
if wireType != 0 {
|
2019-02-05 01:36:01 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Input", wireType)
|
2018-08-01 21:15:43 +00:00
|
|
|
}
|
2019-02-05 01:36:01 +00:00
|
|
|
m.Input = 0
|
2019-01-23 21:05:59 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-02-05 01:36:01 +00:00
|
|
|
m.Input |= (InputIndex(b) & 0x7F) << shift
|
2019-01-23 21:05:59 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
2018-08-01 21:15:43 +00:00
|
|
|
}
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipOps(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
func skipOps(dAtA []byte) (n int, err error) {
|
|
|
|
l := len(dAtA)
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return 0, ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-06-06 18:01:18 +00:00
|
|
|
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, ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx++
|
2017-10-02 04:59:34 +00:00
|
|
|
if dAtA[iNdEx-1] < 0x80 {
|
2017-06-06 18:01:18 +00:00
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return iNdEx, nil
|
|
|
|
case 1:
|
|
|
|
iNdEx += 8
|
|
|
|
return iNdEx, nil
|
|
|
|
case 2:
|
|
|
|
var length int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return 0, ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx++
|
|
|
|
length |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
iNdEx += length
|
|
|
|
if length < 0 {
|
|
|
|
return 0, ErrInvalidLengthOps
|
|
|
|
}
|
|
|
|
return iNdEx, nil
|
|
|
|
case 3:
|
|
|
|
for {
|
|
|
|
var innerWire uint64
|
|
|
|
var start int = iNdEx
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return 0, ErrIntOverflowOps
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-06-06 18:01:18 +00:00
|
|
|
iNdEx++
|
|
|
|
innerWire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
innerWireType := int(innerWire & 0x7)
|
|
|
|
if innerWireType == 4 {
|
|
|
|
break
|
|
|
|
}
|
2017-10-02 04:59:34 +00:00
|
|
|
next, err := skipOps(dAtA[start:])
|
2017-06-06 18:01:18 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
iNdEx = start + next
|
|
|
|
}
|
|
|
|
return iNdEx, nil
|
|
|
|
case 4:
|
|
|
|
return iNdEx, nil
|
|
|
|
case 5:
|
|
|
|
iNdEx += 4
|
|
|
|
return iNdEx, nil
|
|
|
|
default:
|
|
|
|
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
panic("unreachable")
|
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
|
|
|
ErrInvalidLengthOps = fmt.Errorf("proto: negative length found during unmarshaling")
|
|
|
|
ErrIntOverflowOps = fmt.Errorf("proto: integer overflow")
|
|
|
|
)
|
2017-10-02 04:59:34 +00:00
|
|
|
|
2019-03-11 17:19:24 +00:00
|
|
|
func init() { proto.RegisterFile("ops.proto", fileDescriptor_ops_8d64813b9835ab08) }
|
|
|
|
|
|
|
|
var fileDescriptor_ops_8d64813b9835ab08 = []byte{
|
|
|
|
// 1924 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0x5f, 0x6f, 0x1b, 0xc7,
|
|
|
|
0x11, 0x17, 0x8f, 0x7f, 0x6f, 0x28, 0xc9, 0xec, 0xc6, 0x49, 0x59, 0xd5, 0x95, 0x94, 0x4b, 0x1a,
|
|
|
|
0x30, 0xb2, 0x4d, 0x01, 0x0a, 0x90, 0x04, 0x79, 0x28, 0x2a, 0xfe, 0x31, 0xc4, 0x24, 0x16, 0x85,
|
|
|
|
0xa5, 0xed, 0x3c, 0x1a, 0xc7, 0xbb, 0x25, 0x75, 0x20, 0xef, 0xf6, 0xb0, 0xb7, 0xb4, 0xc4, 0x97,
|
|
|
|
0x3e, 0xf8, 0x13, 0x04, 0x28, 0xd0, 0xb7, 0x3e, 0xf4, 0xa5, 0x40, 0x3f, 0x44, 0xdf, 0xf3, 0x18,
|
|
|
|
0x14, 0x7d, 0x48, 0xfb, 0x90, 0x16, 0xf6, 0x17, 0x29, 0x66, 0x77, 0x8f, 0x77, 0xa4, 0x15, 0xd8,
|
|
|
|
0x46, 0x8b, 0x3e, 0x71, 0x76, 0xe6, 0xb7, 0xb3, 0xb3, 0x33, 0xb3, 0x33, 0x73, 0x04, 0x9b, 0xc7,
|
|
|
|
0x49, 0x3b, 0x16, 0x5c, 0x72, 0x62, 0xc5, 0xe3, 0xbd, 0xfb, 0xd3, 0x40, 0x5e, 0x2e, 0xc6, 0x6d,
|
|
|
|
0x8f, 0x87, 0xc7, 0x53, 0x3e, 0xe5, 0xc7, 0x4a, 0x34, 0x5e, 0x4c, 0xd4, 0x4a, 0x2d, 0x14, 0xa5,
|
|
|
|
0xb7, 0x38, 0x7f, 0xb2, 0xc0, 0x1a, 0xc6, 0xe4, 0x7d, 0xa8, 0x04, 0x51, 0xbc, 0x90, 0x49, 0xb3,
|
|
|
|
0x70, 0x58, 0x6c, 0xd5, 0x4f, 0xec, 0x76, 0x3c, 0x6e, 0x0f, 0x90, 0x43, 0x8d, 0x80, 0x1c, 0x42,
|
|
|
|
0x89, 0x5d, 0x33, 0xaf, 0x69, 0x1d, 0x16, 0x5a, 0xf5, 0x13, 0x40, 0x40, 0xff, 0x9a, 0x79, 0xc3,
|
|
|
|
0xf8, 0x6c, 0x8b, 0x2a, 0x09, 0xf9, 0x08, 0x2a, 0x09, 0x5f, 0x08, 0x8f, 0x35, 0x8b, 0x0a, 0xb3,
|
|
|
|
0x8d, 0x98, 0x91, 0xe2, 0x28, 0x94, 0x91, 0xa2, 0xa6, 0x49, 0x30, 0x67, 0xcd, 0x52, 0xa6, 0xe9,
|
|
|
|
0x41, 0x30, 0xd7, 0x18, 0x25, 0x21, 0x1f, 0x40, 0x79, 0xbc, 0x08, 0xe6, 0x7e, 0xb3, 0xac, 0x20,
|
|
|
|
0x75, 0x84, 0x74, 0x90, 0xa1, 0x30, 0x5a, 0x46, 0x5a, 0x50, 0x8b, 0xe7, 0xae, 0x9c, 0x70, 0x11,
|
|
|
|
0x36, 0x21, 0x3b, 0xf0, 0xc2, 0xf0, 0xe8, 0x4a, 0x4a, 0x3e, 0x83, 0xba, 0xc7, 0xa3, 0x44, 0x0a,
|
|
|
|
0x37, 0x88, 0x64, 0xd2, 0xac, 0x2b, 0xf0, 0xbb, 0x08, 0xfe, 0x86, 0x8b, 0x19, 0x13, 0xdd, 0x4c,
|
|
|
|
0x48, 0xf3, 0xc8, 0x4e, 0x09, 0x2c, 0x1e, 0x3b, 0x7f, 0x28, 0x40, 0x2d, 0xd5, 0x4a, 0x1c, 0xd8,
|
|
|
|
0x3e, 0x15, 0xde, 0x65, 0x20, 0x99, 0x27, 0x17, 0x82, 0x35, 0x0b, 0x87, 0x85, 0x96, 0x4d, 0xd7,
|
|
|
|
0x78, 0x64, 0x17, 0xac, 0xe1, 0x48, 0x39, 0xca, 0xa6, 0xd6, 0x70, 0x44, 0x9a, 0x50, 0x7d, 0xe2,
|
|
|
|
0x8a, 0xc0, 0x8d, 0xa4, 0xf2, 0x8c, 0x4d, 0xd3, 0x25, 0xb9, 0x03, 0xf6, 0x70, 0xf4, 0x84, 0x89,
|
|
|
|
0x24, 0xe0, 0x91, 0xf2, 0x87, 0x4d, 0x33, 0x06, 0xd9, 0x07, 0x18, 0x8e, 0x1e, 0x30, 0x17, 0x95,
|
|
|
|
0x26, 0xcd, 0xf2, 0x61, 0xb1, 0x65, 0xd3, 0x1c, 0xc7, 0xf9, 0x1d, 0x94, 0x55, 0x8c, 0xc8, 0x97,
|
|
|
|
0x50, 0xf1, 0x83, 0x29, 0x4b, 0xa4, 0x36, 0xa7, 0x73, 0xf2, 0xdd, 0x8f, 0x07, 0x5b, 0xff, 0xfc,
|
|
|
|
0xf1, 0xe0, 0x28, 0x97, 0x0c, 0x3c, 0x66, 0x91, 0xc7, 0x23, 0xe9, 0x06, 0x11, 0x13, 0xc9, 0xf1,
|
|
|
|
0x94, 0xdf, 0xd7, 0x5b, 0xda, 0x3d, 0xf5, 0x43, 0x8d, 0x06, 0xf2, 0x31, 0x94, 0x83, 0xc8, 0x67,
|
|
|
|
0xd7, 0xca, 0xfe, 0x62, 0xe7, 0x1d, 0xa3, 0xaa, 0x3e, 0x5c, 0xc8, 0x78, 0x21, 0x07, 0x28, 0xa2,
|
|
|
|
0x1a, 0xe1, 0xc4, 0x50, 0xd1, 0x29, 0x40, 0xee, 0x40, 0x29, 0x64, 0xd2, 0x55, 0xc7, 0xd7, 0x4f,
|
|
|
|
0x6a, 0xe8, 0xda, 0x87, 0x4c, 0xba, 0x54, 0x71, 0x31, 0xbb, 0x42, 0xbe, 0x40, 0xd7, 0x5b, 0x59,
|
|
|
|
0x76, 0x3d, 0x44, 0x0e, 0x35, 0x02, 0xf2, 0x6b, 0xa8, 0x46, 0x4c, 0x5e, 0x71, 0x31, 0x53, 0x2e,
|
|
|
|
0xda, 0xd5, 0x31, 0x3f, 0x67, 0xf2, 0x21, 0xf7, 0x19, 0x4d, 0x65, 0xce, 0x5f, 0x0a, 0x50, 0x42,
|
|
|
|
0xc5, 0x84, 0x40, 0xc9, 0x15, 0x53, 0x9d, 0xae, 0x36, 0x55, 0x34, 0x69, 0x40, 0x91, 0x45, 0xcf,
|
|
|
|
0xd4, 0x19, 0x36, 0x45, 0x12, 0x39, 0xde, 0x95, 0x6f, 0x9c, 0x8e, 0x24, 0xee, 0x5b, 0x24, 0x4c,
|
|
|
|
0x18, 0x5f, 0x2b, 0x9a, 0x7c, 0x0c, 0x76, 0x2c, 0xf8, 0xf5, 0xf2, 0x29, 0xee, 0x2e, 0xe7, 0x32,
|
|
|
|
0x09, 0x99, 0xfd, 0xe8, 0x19, 0xad, 0xc5, 0x86, 0x22, 0x47, 0x00, 0xec, 0x5a, 0x0a, 0xf7, 0x8c,
|
|
|
|
0x27, 0x32, 0x69, 0x56, 0xd4, 0x6d, 0x54, 0x02, 0x23, 0x63, 0x70, 0x41, 0x73, 0x52, 0xe7, 0x6f,
|
|
|
|
0x16, 0x94, 0xd5, 0x25, 0x49, 0x0b, 0x5d, 0x1a, 0x2f, 0x74, 0x74, 0x8a, 0x1d, 0x62, 0x5c, 0x0a,
|
|
|
|
0x2a, 0x78, 0x2b, 0x8f, 0x62, 0x20, 0xf7, 0xa0, 0x96, 0xb0, 0x39, 0xf3, 0x24, 0x17, 0x26, 0x7f,
|
|
|
|
0x56, 0x6b, 0x34, 0xdd, 0xc7, 0x10, 0xeb, 0xdb, 0x28, 0x9a, 0xdc, 0x85, 0x0a, 0x57, 0x71, 0x51,
|
|
|
|
0x17, 0xfa, 0x89, 0x68, 0x19, 0x08, 0x2a, 0x17, 0xcc, 0xf5, 0x79, 0x34, 0x5f, 0xaa, 0x6b, 0xd6,
|
|
|
|
0xe8, 0x6a, 0x4d, 0xee, 0x82, 0xad, 0x22, 0xf1, 0x68, 0x19, 0xb3, 0x66, 0x45, 0x45, 0x60, 0x67,
|
|
|
|
0x15, 0x25, 0x64, 0xd2, 0x4c, 0x8e, 0x2f, 0xcf, 0x73, 0xbd, 0x4b, 0x36, 0x8c, 0x65, 0xf3, 0x76,
|
|
|
|
0xe6, 0xaf, 0xae, 0xe1, 0xd1, 0x95, 0x14, 0xd5, 0x26, 0xcc, 0x13, 0x4c, 0x22, 0xf4, 0x5d, 0x05,
|
|
|
|
0x55, 0x6a, 0x47, 0x29, 0x93, 0x66, 0x72, 0xe2, 0x40, 0x65, 0x34, 0x3a, 0x43, 0xe4, 0x7b, 0x59,
|
|
|
|
0x65, 0xd0, 0x1c, 0x6a, 0x24, 0xce, 0x00, 0x6a, 0xe9, 0x31, 0xf8, 0xcc, 0x06, 0x3d, 0xf3, 0x00,
|
|
|
|
0xad, 0x41, 0x8f, 0xdc, 0x87, 0x6a, 0x72, 0xe9, 0x8a, 0x20, 0x9a, 0x2a, 0xdf, 0xed, 0x9e, 0xbc,
|
|
|
|
0xb3, 0xb2, 0x6a, 0xa4, 0xf9, 0xa8, 0x29, 0xc5, 0x38, 0x1c, 0xec, 0x95, 0x19, 0xaf, 0xe8, 0x6a,
|
|
|
|
0x40, 0x71, 0x11, 0xf8, 0x4a, 0xcf, 0x0e, 0x45, 0x12, 0x39, 0xd3, 0x40, 0xe7, 0xd2, 0x0e, 0x45,
|
|
|
|
0x12, 0x03, 0x12, 0x72, 0x5f, 0xd7, 0xb1, 0x1d, 0xaa, 0x68, 0xf4, 0x31, 0x8f, 0x65, 0xc0, 0x23,
|
|
|
|
0x77, 0x9e, 0xfa, 0x38, 0x5d, 0x3b, 0xf3, 0xf4, 0x7e, 0xff, 0x97, 0xd3, 0x7e, 0x5f, 0x80, 0x5a,
|
|
|
|
0x5a, 0x7c, 0xb1, 0x92, 0x04, 0x3e, 0x8b, 0x64, 0x30, 0x09, 0x98, 0x30, 0x07, 0xe7, 0x38, 0xe4,
|
|
|
|
0x3e, 0x94, 0x5d, 0x29, 0x45, 0xfa, 0x40, 0x7f, 0x9e, 0xaf, 0xdc, 0xed, 0x53, 0x94, 0xf4, 0x23,
|
|
|
|
0x29, 0x96, 0x54, 0xa3, 0xf6, 0x3e, 0x07, 0xc8, 0x98, 0x68, 0xeb, 0x8c, 0x2d, 0x8d, 0x56, 0x24,
|
|
|
|
0xc9, 0x6d, 0x28, 0x3f, 0x73, 0xe7, 0x0b, 0x66, 0x72, 0x58, 0x2f, 0xbe, 0xb0, 0x3e, 0x2f, 0x38,
|
|
|
|
0x7f, 0xb5, 0xa0, 0x6a, 0x2a, 0x39, 0xb9, 0x07, 0x55, 0x55, 0xc9, 0x8d, 0x45, 0x37, 0x3f, 0x8c,
|
|
|
|
0x14, 0x42, 0x8e, 0x57, 0x2d, 0x2a, 0x67, 0xa3, 0x51, 0xa5, 0x5b, 0x95, 0xb1, 0x31, 0x6b, 0x58,
|
|
|
|
0x45, 0x9f, 0x4d, 0x4c, 0x2f, 0xda, 0x45, 0x74, 0x8f, 0x4d, 0x82, 0x28, 0x40, 0xff, 0x50, 0x14,
|
|
|
|
0x91, 0x7b, 0xe9, 0xad, 0x4b, 0x4a, 0xe3, 0x7b, 0x79, 0x8d, 0xaf, 0x5e, 0x7a, 0x00, 0xf5, 0xdc,
|
|
|
|
0x31, 0x37, 0xdc, 0xfa, 0xc3, 0xfc, 0xad, 0xcd, 0x91, 0x4a, 0x9d, 0x6e, 0xa4, 0x99, 0x17, 0xfe,
|
|
|
|
0x0b, 0xff, 0x7d, 0x0a, 0x90, 0xa9, 0x7c, 0xf3, 0xc2, 0xe2, 0x3c, 0x2f, 0x02, 0x0c, 0x63, 0x2c,
|
|
|
|
0x9d, 0xbe, 0xab, 0x2a, 0xf2, 0x76, 0x30, 0x8d, 0xb8, 0x60, 0x4f, 0xd5, 0x53, 0x55, 0xfb, 0x6b,
|
|
|
|
0xb4, 0xae, 0x79, 0xea, 0xc5, 0x90, 0x53, 0xa8, 0xfb, 0x2c, 0xf1, 0x44, 0xa0, 0x12, 0xca, 0x38,
|
|
|
|
0xfd, 0x00, 0xef, 0x94, 0xe9, 0x69, 0xf7, 0x32, 0x84, 0xf6, 0x55, 0x7e, 0x0f, 0x39, 0x81, 0x6d,
|
|
|
|
0x76, 0x1d, 0x73, 0x21, 0xcd, 0x29, 0xba, 0xe1, 0xdf, 0xd2, 0xa3, 0x03, 0xf2, 0xd5, 0x49, 0xb4,
|
|
|
|
0xce, 0xb2, 0x05, 0x71, 0xa1, 0xe4, 0xb9, 0xb1, 0xee, 0x76, 0xf5, 0x93, 0xe6, 0xc6, 0x79, 0x5d,
|
|
|
|
0x37, 0xd6, 0x4e, 0xeb, 0x7c, 0x82, 0x77, 0x7d, 0xfe, 0xaf, 0x83, 0xbb, 0xb9, 0x16, 0x17, 0xf2,
|
|
|
|
0xf1, 0xf2, 0x58, 0xe5, 0xcb, 0x2c, 0x90, 0xc7, 0x0b, 0x19, 0xcc, 0x8f, 0xdd, 0x38, 0x40, 0x75,
|
|
|
|
0xb8, 0x71, 0xd0, 0xa3, 0x4a, 0xf5, 0xde, 0x6f, 0xa0, 0xb1, 0x69, 0xf7, 0xdb, 0xc4, 0x60, 0xef,
|
|
|
|
0x33, 0xb0, 0x57, 0x76, 0xbc, 0x6e, 0x63, 0x2d, 0x1f, 0xbc, 0x0f, 0xa0, 0x9e, 0xbb, 0x37, 0x02,
|
|
|
|
0x9f, 0x28, 0xa0, 0xf6, 0xbe, 0x5e, 0x38, 0xcf, 0x71, 0xda, 0x48, 0xfb, 0xcd, 0xaf, 0x00, 0x2e,
|
|
|
|
0xa5, 0x8c, 0x9f, 0xaa, 0x06, 0x64, 0x0e, 0xb1, 0x91, 0xa3, 0x10, 0xe4, 0x00, 0xea, 0xb8, 0x48,
|
|
|
|
0x8c, 0x5c, 0x5b, 0xaa, 0x76, 0x24, 0x1a, 0xf0, 0x4b, 0xb0, 0x27, 0xab, 0xed, 0xba, 0x71, 0xd4,
|
|
|
|
0x26, 0xe9, 0xee, 0x5f, 0x40, 0x2d, 0xe2, 0x46, 0xa6, 0xfb, 0x61, 0x35, 0xe2, 0x4a, 0xe4, 0xdc,
|
|
|
|
0x85, 0x9f, 0xbd, 0x32, 0x1a, 0x91, 0xf7, 0xa0, 0x32, 0x09, 0xe6, 0x52, 0x3d, 0x57, 0x6c, 0xb1,
|
|
|
|
0x66, 0xe5, 0xfc, 0xa3, 0x00, 0x90, 0x3d, 0x2d, 0xf4, 0x08, 0xbe, 0x3b, 0xc4, 0x6c, 0xeb, 0x77,
|
|
|
|
0x36, 0x87, 0x5a, 0x68, 0x22, 0x68, 0xf2, 0xe8, 0xce, 0xfa, 0x73, 0x6c, 0xa7, 0x01, 0xd6, 0xb1,
|
|
|
|
0x3d, 0x31, 0xb1, 0x7d, 0x9b, 0xf1, 0x65, 0x75, 0xc2, 0xde, 0x57, 0xb0, 0xb3, 0xa6, 0xee, 0x0d,
|
|
|
|
0x5f, 0x6a, 0x96, 0x65, 0xf9, 0x90, 0xdd, 0x83, 0x8a, 0x6e, 0xed, 0x58, 0x7f, 0x91, 0x32, 0x6a,
|
|
|
|
0x14, 0xad, 0xea, 0xf8, 0x45, 0x3a, 0xe8, 0x0d, 0x2e, 0x9c, 0x13, 0xa8, 0xe8, 0x49, 0x96, 0xb4,
|
|
|
|
0xa0, 0xea, 0x7a, 0x78, 0xb5, 0xb4, 0x5c, 0xed, 0xa6, 0x63, 0xee, 0xa9, 0x62, 0xd3, 0x54, 0xec,
|
|
|
|
0xfc, 0xdd, 0x02, 0xc8, 0xf8, 0x6f, 0x31, 0x2b, 0x7c, 0x01, 0xbb, 0x09, 0xf3, 0x78, 0xe4, 0xbb,
|
|
|
|
0x62, 0xa9, 0xa4, 0x66, 0x62, 0xbb, 0x69, 0xcb, 0x06, 0x32, 0x37, 0x37, 0x14, 0x5f, 0x3f, 0x37,
|
|
|
|
0xb4, 0xa0, 0xe4, 0xf1, 0x78, 0x69, 0x9e, 0x2f, 0x59, 0xbf, 0x48, 0x97, 0xc7, 0x4b, 0x9c, 0xdb,
|
|
|
|
0x11, 0x41, 0xda, 0x50, 0x09, 0x67, 0x6a, 0xb6, 0xd7, 0x63, 0xd4, 0xed, 0x75, 0xec, 0xc3, 0x19,
|
|
|
|
0xd2, 0xf8, 0x25, 0xa0, 0x51, 0xe4, 0x2e, 0x94, 0xc3, 0x99, 0x1f, 0x08, 0x35, 0x71, 0xd4, 0x75,
|
|
|
|
0xbf, 0xce, 0xc3, 0x7b, 0x81, 0xc0, 0x79, 0x5f, 0x61, 0x88, 0x03, 0x96, 0x08, 0x9b, 0x55, 0x85,
|
|
|
|
0x6c, 0x6c, 0x78, 0x33, 0x3c, 0xdb, 0xa2, 0x96, 0x08, 0x3b, 0x35, 0xa8, 0x68, 0xbf, 0x3a, 0x7f,
|
|
|
|
0x2e, 0xc2, 0xee, 0xba, 0x95, 0x98, 0x07, 0x89, 0xf0, 0xd2, 0x3c, 0x48, 0x84, 0xb7, 0x1a, 0xa9,
|
|
|
|
0xac, 0xdc, 0x48, 0xe5, 0x40, 0x99, 0x5f, 0x45, 0x4c, 0xe4, 0x3f, 0x62, 0xba, 0x97, 0xfc, 0x2a,
|
|
|
|
0xc2, 0xe1, 0x41, 0x8b, 0xd6, 0x7a, 0x71, 0xd9, 0xf4, 0xe2, 0x0f, 0x61, 0x67, 0xc2, 0xe7, 0x73,
|
|
|
|
0x7e, 0x35, 0x5a, 0x86, 0xf3, 0x20, 0x9a, 0x99, 0x86, 0xbc, 0xce, 0x24, 0x2d, 0xb8, 0xe5, 0x07,
|
|
|
|
0x02, 0xcd, 0xe9, 0xf2, 0x48, 0xb2, 0x48, 0x4d, 0x91, 0x88, 0xdb, 0x64, 0x93, 0x2f, 0xe1, 0xd0,
|
|
|
|
0x95, 0x92, 0x85, 0xb1, 0x7c, 0x1c, 0xc5, 0xae, 0x37, 0xeb, 0x71, 0x4f, 0xbd, 0xc7, 0x30, 0x76,
|
|
|
|
0x65, 0x30, 0x0e, 0xe6, 0x81, 0x5c, 0x2a, 0x67, 0xd4, 0xe8, 0x6b, 0x71, 0xe4, 0x23, 0xd8, 0xf5,
|
|
|
|
0x04, 0x73, 0x25, 0xeb, 0xb1, 0x44, 0x5e, 0xb8, 0xf2, 0xb2, 0x59, 0x53, 0x3b, 0x37, 0xb8, 0x78,
|
|
|
|
0x07, 0x17, 0xad, 0xfd, 0x26, 0x98, 0xfb, 0x9e, 0x2b, 0xfc, 0xa6, 0xad, 0xef, 0xb0, 0xc6, 0x24,
|
|
|
|
0x6d, 0x20, 0x8a, 0xd1, 0x0f, 0x63, 0xb9, 0x5c, 0x41, 0x41, 0x41, 0x6f, 0x90, 0xe0, 0x47, 0x8e,
|
|
|
|
0x0c, 0x42, 0x96, 0x48, 0x37, 0x8c, 0xd5, 0xc7, 0x57, 0x91, 0x66, 0x0c, 0xe7, 0xdb, 0x02, 0x34,
|
|
|
|
0x36, 0x53, 0x04, 0x1d, 0x1c, 0xa3, 0x99, 0xe6, 0xb1, 0x21, 0xbd, 0x72, 0xba, 0x95, 0x73, 0x3a,
|
|
|
|
0x06, 0x10, 0xab, 0x0a, 0xc6, 0x6a, 0x9b, 0x2a, 0x3a, 0x0b, 0x60, 0xe9, 0xa7, 0x03, 0xb8, 0x66,
|
|
|
|
0x52, 0x79, 0xd3, 0xa4, 0x3f, 0x16, 0xe0, 0xd6, 0x46, 0x1a, 0xbe, 0xb1, 0x45, 0x87, 0x50, 0x0f,
|
|
|
|
0xdd, 0x19, 0xbb, 0x70, 0x85, 0x0a, 0x6e, 0x51, 0x37, 0xd6, 0x1c, 0xeb, 0x7f, 0x60, 0x5f, 0x04,
|
|
|
|
0xdb, 0xf9, 0xdc, 0xbf, 0xd1, 0xb6, 0x34, 0x94, 0xe7, 0x5c, 0x3e, 0xe0, 0x8b, 0xc8, 0x37, 0xdd,
|
|
|
|
0x68, 0x9d, 0xf9, 0x6a, 0xc0, 0x8b, 0x37, 0x04, 0xdc, 0x39, 0x87, 0x5a, 0x6a, 0x20, 0x39, 0x30,
|
|
|
|
0x1f, 0x50, 0x85, 0xec, 0xcb, 0xfc, 0x71, 0xc2, 0x04, 0xda, 0xae, 0xbf, 0xa6, 0xde, 0x87, 0xf2,
|
|
|
|
0x54, 0xf0, 0x45, 0x6c, 0x6a, 0xeb, 0x1a, 0x42, 0x4b, 0x9c, 0x11, 0x54, 0x0d, 0x87, 0x1c, 0x41,
|
|
|
|
0x65, 0xbc, 0x3c, 0x77, 0x43, 0x66, 0x14, 0xaa, 0x87, 0x8d, 0x6b, 0xdf, 0x20, 0xb0, 0x5a, 0x68,
|
|
|
|
0x04, 0xb9, 0x0d, 0xa5, 0xf1, 0x72, 0xd0, 0xd3, 0x63, 0x32, 0xd6, 0x1c, 0x5c, 0x75, 0x2a, 0xda,
|
|
|
|
0x20, 0xe7, 0x6b, 0xd8, 0xce, 0xef, 0x43, 0xa7, 0x44, 0xa9, 0x5e, 0x9b, 0x2a, 0x3a, 0x2b, 0xae,
|
|
|
|
0xd6, 0x6b, 0x8a, 0xeb, 0x51, 0x0b, 0xaa, 0xe6, 0xe3, 0x93, 0xd8, 0x50, 0x7e, 0x7c, 0x3e, 0xea,
|
|
|
|
0x3f, 0x6a, 0x6c, 0x91, 0x1a, 0x94, 0xce, 0x86, 0xa3, 0x47, 0x8d, 0x02, 0x52, 0xe7, 0xc3, 0xf3,
|
|
|
|
0x7e, 0xc3, 0x3a, 0xfa, 0x2d, 0xd8, 0xab, 0x8f, 0x24, 0x64, 0x77, 0x06, 0xe7, 0xbd, 0xc6, 0x16,
|
|
|
|
0x01, 0xa8, 0x8c, 0xfa, 0x5d, 0xda, 0x47, 0x70, 0x15, 0x8a, 0xa3, 0xd1, 0x59, 0xc3, 0x42, 0x55,
|
|
|
|
0xdd, 0xd3, 0xee, 0x59, 0xbf, 0x51, 0x44, 0xf2, 0xd1, 0xc3, 0x8b, 0x07, 0xa3, 0x46, 0xe9, 0xe8,
|
|
|
|
0x53, 0xb8, 0xb5, 0xf1, 0x91, 0xa2, 0x76, 0x9f, 0x9d, 0xd2, 0x3e, 0x6a, 0xaa, 0x43, 0xf5, 0x82,
|
|
|
|
0x0e, 0x9e, 0x9c, 0x3e, 0xea, 0x37, 0x0a, 0x28, 0xf8, 0x7a, 0xd8, 0xfd, 0xaa, 0xdf, 0x6b, 0x58,
|
|
|
|
0x9d, 0x3b, 0xdf, 0xbd, 0xd8, 0x2f, 0x7c, 0xff, 0x62, 0xbf, 0xf0, 0xc3, 0x8b, 0xfd, 0xc2, 0xbf,
|
|
|
|
0x5f, 0xec, 0x17, 0xbe, 0x7d, 0xb9, 0xbf, 0xf5, 0xfd, 0xcb, 0xfd, 0xad, 0x1f, 0x5e, 0xee, 0x6f,
|
|
|
|
0x8d, 0x2b, 0xea, 0x0f, 0x9e, 0x4f, 0xfe, 0x13, 0x00, 0x00, 0xff, 0xff, 0x9b, 0x24, 0xd0, 0xaa,
|
|
|
|
0x20, 0x12, 0x00, 0x00,
|
2017-10-02 04:59:34 +00:00
|
|
|
}
|