2016-06-07 14:28:28 -07:00
|
|
|
// Code generated by protoc-gen-gogo.
|
|
|
|
// source: specs.proto
|
|
|
|
// DO NOT EDIT!
|
|
|
|
|
|
|
|
package api
|
|
|
|
|
|
|
|
import proto "github.com/gogo/protobuf/proto"
|
|
|
|
import fmt "fmt"
|
|
|
|
import math "math"
|
|
|
|
import _ "github.com/gogo/protobuf/gogoproto"
|
|
|
|
import docker_swarmkit_v11 "github.com/docker/swarmkit/api/duration"
|
|
|
|
|
|
|
|
import strings "strings"
|
|
|
|
import github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto"
|
|
|
|
import sort "sort"
|
|
|
|
import strconv "strconv"
|
|
|
|
import reflect "reflect"
|
|
|
|
import github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
|
|
|
|
|
|
|
|
import io "io"
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ = proto.Marshal
|
|
|
|
var _ = fmt.Errorf
|
|
|
|
var _ = math.Inf
|
|
|
|
|
|
|
|
type NodeSpec_Membership int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
NodeMembershipPending NodeSpec_Membership = 0
|
|
|
|
NodeMembershipAccepted NodeSpec_Membership = 1
|
|
|
|
)
|
|
|
|
|
|
|
|
var NodeSpec_Membership_name = map[int32]string{
|
|
|
|
0: "PENDING",
|
|
|
|
1: "ACCEPTED",
|
|
|
|
}
|
|
|
|
var NodeSpec_Membership_value = map[string]int32{
|
|
|
|
"PENDING": 0,
|
|
|
|
"ACCEPTED": 1,
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x NodeSpec_Membership) String() string {
|
|
|
|
return proto.EnumName(NodeSpec_Membership_name, int32(x))
|
|
|
|
}
|
|
|
|
func (NodeSpec_Membership) EnumDescriptor() ([]byte, []int) { return fileDescriptorSpecs, []int{0, 0} }
|
|
|
|
|
|
|
|
type NodeSpec_Availability int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
// Active nodes.
|
|
|
|
NodeAvailabilityActive NodeSpec_Availability = 0
|
|
|
|
// Paused nodes won't be considered by the scheduler, preventing any
|
|
|
|
// further task to run on them.
|
|
|
|
NodeAvailabilityPause NodeSpec_Availability = 1
|
|
|
|
// Drained nodes are paused and any task already running on them will
|
|
|
|
// be evicted.
|
|
|
|
NodeAvailabilityDrain NodeSpec_Availability = 2
|
|
|
|
)
|
|
|
|
|
|
|
|
var NodeSpec_Availability_name = map[int32]string{
|
|
|
|
0: "ACTIVE",
|
|
|
|
1: "PAUSE",
|
|
|
|
2: "DRAIN",
|
|
|
|
}
|
|
|
|
var NodeSpec_Availability_value = map[string]int32{
|
|
|
|
"ACTIVE": 0,
|
|
|
|
"PAUSE": 1,
|
|
|
|
"DRAIN": 2,
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x NodeSpec_Availability) String() string {
|
|
|
|
return proto.EnumName(NodeSpec_Availability_name, int32(x))
|
|
|
|
}
|
|
|
|
func (NodeSpec_Availability) EnumDescriptor() ([]byte, []int) { return fileDescriptorSpecs, []int{0, 1} }
|
|
|
|
|
|
|
|
// ResolutionMode specifies the mode of resolution to use for
|
|
|
|
// internal loadbalancing between tasks which are all within
|
|
|
|
// the cluster. This is sometimes calles east-west data path.
|
|
|
|
type EndpointSpec_ResolutionMode int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
// VIP resolution mode specifies that the
|
|
|
|
// service resolves to a logical IP and the requests
|
|
|
|
// are sent to that logical IP. Packets hitting that
|
|
|
|
// logical IP are load balanced to a chosen backend.
|
|
|
|
ResolutionModeVirtualIP EndpointSpec_ResolutionMode = 0
|
|
|
|
// DNSRR resolution mode specifies that the
|
|
|
|
// service directly gets resolved to one of the
|
|
|
|
// backend IP and the client directly initiates a
|
|
|
|
// request towards the actual backend. This requires
|
|
|
|
// that the client does not cache the DNS responses
|
|
|
|
// when the DNS response TTL is 0.
|
|
|
|
ResolutionModeDNSRoundRobin EndpointSpec_ResolutionMode = 1
|
|
|
|
)
|
|
|
|
|
|
|
|
var EndpointSpec_ResolutionMode_name = map[int32]string{
|
|
|
|
0: "VIP",
|
|
|
|
1: "DNSRR",
|
|
|
|
}
|
|
|
|
var EndpointSpec_ResolutionMode_value = map[string]int32{
|
|
|
|
"VIP": 0,
|
|
|
|
"DNSRR": 1,
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x EndpointSpec_ResolutionMode) String() string {
|
|
|
|
return proto.EnumName(EndpointSpec_ResolutionMode_name, int32(x))
|
|
|
|
}
|
|
|
|
func (EndpointSpec_ResolutionMode) EnumDescriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptorSpecs, []int{6, 0}
|
|
|
|
}
|
|
|
|
|
|
|
|
type NodeSpec struct {
|
|
|
|
Annotations Annotations `protobuf:"bytes,1,opt,name=annotations" json:"annotations"`
|
|
|
|
// Role defines the role the node should have.
|
|
|
|
Role NodeRole `protobuf:"varint,2,opt,name=role,proto3,enum=docker.swarmkit.v1.NodeRole" json:"role,omitempty"`
|
|
|
|
// Membership controls the admission of the node into the cluster.
|
|
|
|
Membership NodeSpec_Membership `protobuf:"varint,3,opt,name=membership,proto3,enum=docker.swarmkit.v1.NodeSpec_Membership" json:"membership,omitempty"`
|
|
|
|
// Availability allows a user to control the current scheduling status of a
|
|
|
|
// node.
|
|
|
|
Availability NodeSpec_Availability `protobuf:"varint,4,opt,name=availability,proto3,enum=docker.swarmkit.v1.NodeSpec_Availability" json:"availability,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NodeSpec) Reset() { *m = NodeSpec{} }
|
|
|
|
func (*NodeSpec) ProtoMessage() {}
|
|
|
|
func (*NodeSpec) Descriptor() ([]byte, []int) { return fileDescriptorSpecs, []int{0} }
|
|
|
|
|
|
|
|
// ServiceSpec defines the properties of a service.
|
|
|
|
//
|
|
|
|
// A service instructs the cluster in orchestrating repeated instances of a
|
|
|
|
// template, implemented as tasks. Based on the number of instances, scheduling
|
|
|
|
// strategy and restart policy, a number of application-level behaviors can be
|
|
|
|
// defined.
|
|
|
|
type ServiceSpec struct {
|
|
|
|
Annotations Annotations `protobuf:"bytes,1,opt,name=annotations" json:"annotations"`
|
|
|
|
// Task defines the task template this service will spawn.
|
|
|
|
Task TaskSpec `protobuf:"bytes,2,opt,name=task" json:"task"`
|
|
|
|
// Types that are valid to be assigned to Mode:
|
|
|
|
// *ServiceSpec_Replicated
|
|
|
|
// *ServiceSpec_Global
|
|
|
|
Mode isServiceSpec_Mode `protobuf_oneof:"mode"`
|
|
|
|
// UpdateConfig controls the rate and policy of updates.
|
|
|
|
Update *UpdateConfig `protobuf:"bytes,6,opt,name=update" json:"update,omitempty"`
|
|
|
|
Networks []*ServiceSpec_NetworkAttachmentConfig `protobuf:"bytes,7,rep,name=networks" json:"networks,omitempty"`
|
|
|
|
// Service endpoint specifies the user provided configuration
|
|
|
|
// to properly discover and load balance a service.
|
|
|
|
Endpoint *EndpointSpec `protobuf:"bytes,8,opt,name=endpoint" json:"endpoint,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ServiceSpec) Reset() { *m = ServiceSpec{} }
|
|
|
|
func (*ServiceSpec) ProtoMessage() {}
|
|
|
|
func (*ServiceSpec) Descriptor() ([]byte, []int) { return fileDescriptorSpecs, []int{1} }
|
|
|
|
|
|
|
|
type isServiceSpec_Mode interface {
|
|
|
|
isServiceSpec_Mode()
|
|
|
|
MarshalTo([]byte) (int, error)
|
|
|
|
Size() int
|
|
|
|
}
|
|
|
|
|
|
|
|
type ServiceSpec_Replicated struct {
|
|
|
|
Replicated *ReplicatedService `protobuf:"bytes,3,opt,name=replicated,oneof"`
|
|
|
|
}
|
|
|
|
type ServiceSpec_Global struct {
|
|
|
|
Global *GlobalService `protobuf:"bytes,4,opt,name=global,oneof"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*ServiceSpec_Replicated) isServiceSpec_Mode() {}
|
|
|
|
func (*ServiceSpec_Global) isServiceSpec_Mode() {}
|
|
|
|
|
|
|
|
func (m *ServiceSpec) GetMode() isServiceSpec_Mode {
|
|
|
|
if m != nil {
|
|
|
|
return m.Mode
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ServiceSpec) GetReplicated() *ReplicatedService {
|
|
|
|
if x, ok := m.GetMode().(*ServiceSpec_Replicated); ok {
|
|
|
|
return x.Replicated
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ServiceSpec) GetGlobal() *GlobalService {
|
|
|
|
if x, ok := m.GetMode().(*ServiceSpec_Global); ok {
|
|
|
|
return x.Global
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// XXX_OneofFuncs is for the internal use of the proto package.
|
|
|
|
func (*ServiceSpec) 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 _ServiceSpec_OneofMarshaler, _ServiceSpec_OneofUnmarshaler, _ServiceSpec_OneofSizer, []interface{}{
|
|
|
|
(*ServiceSpec_Replicated)(nil),
|
|
|
|
(*ServiceSpec_Global)(nil),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func _ServiceSpec_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
|
|
|
m := msg.(*ServiceSpec)
|
|
|
|
// mode
|
|
|
|
switch x := m.Mode.(type) {
|
|
|
|
case *ServiceSpec_Replicated:
|
|
|
|
_ = b.EncodeVarint(3<<3 | proto.WireBytes)
|
|
|
|
if err := b.EncodeMessage(x.Replicated); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
case *ServiceSpec_Global:
|
|
|
|
_ = b.EncodeVarint(4<<3 | proto.WireBytes)
|
|
|
|
if err := b.EncodeMessage(x.Global); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
case nil:
|
|
|
|
default:
|
|
|
|
return fmt.Errorf("ServiceSpec.Mode has unexpected type %T", x)
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func _ServiceSpec_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
|
|
|
|
m := msg.(*ServiceSpec)
|
|
|
|
switch tag {
|
|
|
|
case 3: // mode.replicated
|
|
|
|
if wire != proto.WireBytes {
|
|
|
|
return true, proto.ErrInternalBadWireType
|
|
|
|
}
|
|
|
|
msg := new(ReplicatedService)
|
|
|
|
err := b.DecodeMessage(msg)
|
|
|
|
m.Mode = &ServiceSpec_Replicated{msg}
|
|
|
|
return true, err
|
|
|
|
case 4: // mode.global
|
|
|
|
if wire != proto.WireBytes {
|
|
|
|
return true, proto.ErrInternalBadWireType
|
|
|
|
}
|
|
|
|
msg := new(GlobalService)
|
|
|
|
err := b.DecodeMessage(msg)
|
|
|
|
m.Mode = &ServiceSpec_Global{msg}
|
|
|
|
return true, err
|
|
|
|
default:
|
|
|
|
return false, nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func _ServiceSpec_OneofSizer(msg proto.Message) (n int) {
|
|
|
|
m := msg.(*ServiceSpec)
|
|
|
|
// mode
|
|
|
|
switch x := m.Mode.(type) {
|
|
|
|
case *ServiceSpec_Replicated:
|
|
|
|
s := proto.Size(x.Replicated)
|
|
|
|
n += proto.SizeVarint(3<<3 | proto.WireBytes)
|
|
|
|
n += proto.SizeVarint(uint64(s))
|
|
|
|
n += s
|
|
|
|
case *ServiceSpec_Global:
|
|
|
|
s := proto.Size(x.Global)
|
|
|
|
n += proto.SizeVarint(4<<3 | proto.WireBytes)
|
|
|
|
n += proto.SizeVarint(uint64(s))
|
|
|
|
n += s
|
|
|
|
case nil:
|
|
|
|
default:
|
|
|
|
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
// NetworkAttachmentConfig specifies how a service should be attached to a particular network.
|
|
|
|
//
|
|
|
|
// For now, this is a simple struct, but this can include future information
|
|
|
|
// instructing Swarm on how this service should work on the particular
|
|
|
|
// network.
|
|
|
|
type ServiceSpec_NetworkAttachmentConfig struct {
|
2016-06-30 13:34:48 -07:00
|
|
|
// Target specifies the target network for attachment. This value may be a
|
2016-06-07 14:28:28 -07:00
|
|
|
// network name or identifier. Only identifiers are supported at this time.
|
|
|
|
Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
|
|
|
|
// Aliases specifies a list of discoverable alternate names for the service on this Target.
|
|
|
|
Aliases []string `protobuf:"bytes,2,rep,name=aliases" json:"aliases,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ServiceSpec_NetworkAttachmentConfig) Reset() { *m = ServiceSpec_NetworkAttachmentConfig{} }
|
|
|
|
func (*ServiceSpec_NetworkAttachmentConfig) ProtoMessage() {}
|
|
|
|
func (*ServiceSpec_NetworkAttachmentConfig) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptorSpecs, []int{1, 0}
|
|
|
|
}
|
|
|
|
|
2016-06-30 13:34:48 -07:00
|
|
|
// ReplicatedService sets the reconciliation target to certain number of replicas.
|
2016-06-07 14:28:28 -07:00
|
|
|
type ReplicatedService struct {
|
|
|
|
Replicas uint64 `protobuf:"varint,1,opt,name=replicas,proto3" json:"replicas,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ReplicatedService) Reset() { *m = ReplicatedService{} }
|
|
|
|
func (*ReplicatedService) ProtoMessage() {}
|
|
|
|
func (*ReplicatedService) Descriptor() ([]byte, []int) { return fileDescriptorSpecs, []int{2} }
|
|
|
|
|
2016-06-30 13:34:48 -07:00
|
|
|
// GlobalService represents global service.
|
2016-06-07 14:28:28 -07:00
|
|
|
type GlobalService struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *GlobalService) Reset() { *m = GlobalService{} }
|
|
|
|
func (*GlobalService) ProtoMessage() {}
|
|
|
|
func (*GlobalService) Descriptor() ([]byte, []int) { return fileDescriptorSpecs, []int{3} }
|
|
|
|
|
|
|
|
type TaskSpec struct {
|
|
|
|
// Types that are valid to be assigned to Runtime:
|
|
|
|
// *TaskSpec_Container
|
|
|
|
Runtime isTaskSpec_Runtime `protobuf_oneof:"runtime"`
|
|
|
|
// Resource requirements for the container.
|
|
|
|
Resources *ResourceRequirements `protobuf:"bytes,2,opt,name=resources" json:"resources,omitempty"`
|
|
|
|
// RestartPolicy specifies what to do when a task fails or finishes.
|
|
|
|
Restart *RestartPolicy `protobuf:"bytes,4,opt,name=restart" json:"restart,omitempty"`
|
|
|
|
// Placement specifies node selection constraints
|
|
|
|
Placement *Placement `protobuf:"bytes,5,opt,name=placement" json:"placement,omitempty"`
|
2016-07-08 11:41:07 -07:00
|
|
|
// LogDriver specifies the log driver to use for the task. Any runtime will
|
|
|
|
// direct logs into the specified driver for the duration of the task.
|
|
|
|
LogDriver *Driver `protobuf:"bytes,6,opt,name=log_driver,json=logDriver" json:"log_driver,omitempty"`
|
2016-06-07 14:28:28 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *TaskSpec) Reset() { *m = TaskSpec{} }
|
|
|
|
func (*TaskSpec) ProtoMessage() {}
|
|
|
|
func (*TaskSpec) Descriptor() ([]byte, []int) { return fileDescriptorSpecs, []int{4} }
|
|
|
|
|
|
|
|
type isTaskSpec_Runtime interface {
|
|
|
|
isTaskSpec_Runtime()
|
|
|
|
MarshalTo([]byte) (int, error)
|
|
|
|
Size() int
|
|
|
|
}
|
|
|
|
|
|
|
|
type TaskSpec_Container struct {
|
|
|
|
Container *ContainerSpec `protobuf:"bytes,1,opt,name=container,oneof"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*TaskSpec_Container) isTaskSpec_Runtime() {}
|
|
|
|
|
|
|
|
func (m *TaskSpec) GetRuntime() isTaskSpec_Runtime {
|
|
|
|
if m != nil {
|
|
|
|
return m.Runtime
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *TaskSpec) GetContainer() *ContainerSpec {
|
|
|
|
if x, ok := m.GetRuntime().(*TaskSpec_Container); ok {
|
|
|
|
return x.Container
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// XXX_OneofFuncs is for the internal use of the proto package.
|
|
|
|
func (*TaskSpec) 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 _TaskSpec_OneofMarshaler, _TaskSpec_OneofUnmarshaler, _TaskSpec_OneofSizer, []interface{}{
|
|
|
|
(*TaskSpec_Container)(nil),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func _TaskSpec_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
|
|
|
m := msg.(*TaskSpec)
|
|
|
|
// runtime
|
|
|
|
switch x := m.Runtime.(type) {
|
|
|
|
case *TaskSpec_Container:
|
|
|
|
_ = b.EncodeVarint(1<<3 | proto.WireBytes)
|
|
|
|
if err := b.EncodeMessage(x.Container); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
case nil:
|
|
|
|
default:
|
|
|
|
return fmt.Errorf("TaskSpec.Runtime has unexpected type %T", x)
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func _TaskSpec_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
|
|
|
|
m := msg.(*TaskSpec)
|
|
|
|
switch tag {
|
|
|
|
case 1: // runtime.container
|
|
|
|
if wire != proto.WireBytes {
|
|
|
|
return true, proto.ErrInternalBadWireType
|
|
|
|
}
|
|
|
|
msg := new(ContainerSpec)
|
|
|
|
err := b.DecodeMessage(msg)
|
|
|
|
m.Runtime = &TaskSpec_Container{msg}
|
|
|
|
return true, err
|
|
|
|
default:
|
|
|
|
return false, nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func _TaskSpec_OneofSizer(msg proto.Message) (n int) {
|
|
|
|
m := msg.(*TaskSpec)
|
|
|
|
// runtime
|
|
|
|
switch x := m.Runtime.(type) {
|
|
|
|
case *TaskSpec_Container:
|
|
|
|
s := proto.Size(x.Container)
|
|
|
|
n += proto.SizeVarint(1<<3 | proto.WireBytes)
|
|
|
|
n += proto.SizeVarint(uint64(s))
|
|
|
|
n += s
|
|
|
|
case nil:
|
|
|
|
default:
|
|
|
|
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
// Container specifies runtime parameters for a container.
|
|
|
|
type ContainerSpec struct {
|
|
|
|
// image defines the image reference, as specified in the
|
|
|
|
// distribution/reference package. This may include a registry host, name,
|
|
|
|
// tag or digest.
|
|
|
|
//
|
|
|
|
// The field will be directly passed to the engine pulling. Well-behaved
|
|
|
|
// service definitions will used immutable references, either through tags
|
|
|
|
// that don't change or verifiable digests.
|
|
|
|
Image string `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
|
|
|
|
// Labels defines labels to be added to the container at creation time. If
|
|
|
|
// collisions with system labels occur, these labels will be overridden.
|
|
|
|
//
|
|
|
|
// This field *must* remain compatible with the Labels field of
|
|
|
|
// Annotations.
|
|
|
|
Labels map[string]string `protobuf:"bytes,2,rep,name=labels" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
|
|
// Command to run the the container. The first element is a path to the
|
|
|
|
// executable and the following elements are treated as arguments.
|
|
|
|
//
|
|
|
|
// If command is empty, execution will fall back to the image's entrypoint.
|
2016-06-30 13:34:48 -07:00
|
|
|
//
|
|
|
|
// Command should only be used when overriding entrypoint.
|
2016-06-07 14:28:28 -07:00
|
|
|
Command []string `protobuf:"bytes,3,rep,name=command" json:"command,omitempty"`
|
|
|
|
// Args specifies arguments provided to the image's entrypoint.
|
2016-06-30 13:34:48 -07:00
|
|
|
//
|
|
|
|
// If Command and Args are provided, Args will be appended to Command.
|
2016-06-07 14:28:28 -07:00
|
|
|
Args []string `protobuf:"bytes,4,rep,name=args" json:"args,omitempty"`
|
|
|
|
// Env specifies the environment variables for the container in NAME=VALUE
|
|
|
|
// format. These must be compliant with [IEEE Std
|
|
|
|
// 1003.1-2001](http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap08.html).
|
|
|
|
Env []string `protobuf:"bytes,5,rep,name=env" json:"env,omitempty"`
|
|
|
|
// Dir defines the working directory to set for the container process.
|
|
|
|
Dir string `protobuf:"bytes,6,opt,name=dir,proto3" json:"dir,omitempty"`
|
|
|
|
// User specifies the user that should be employed to run the container.
|
2016-08-09 11:49:39 -07:00
|
|
|
//
|
|
|
|
// Note that the primary group may be specified by appending the group name
|
|
|
|
// or id to the user name, separated by a `:`. This syntax is
|
|
|
|
// `<user>:<group>`.
|
|
|
|
User string `protobuf:"bytes,7,opt,name=user,proto3" json:"user,omitempty"`
|
|
|
|
// Groups specifies supplementary groups available to the user.
|
|
|
|
Groups []string `protobuf:"bytes,11,rep,name=groups" json:"groups,omitempty"`
|
|
|
|
Mounts []Mount `protobuf:"bytes,8,rep,name=mounts" json:"mounts"`
|
2016-06-07 14:28:28 -07:00
|
|
|
// StopGracePeriod the grace period for stopping the container before
|
|
|
|
// forcefully killing the container.
|
|
|
|
StopGracePeriod *docker_swarmkit_v11.Duration `protobuf:"bytes,9,opt,name=stop_grace_period,json=stopGracePeriod" json:"stop_grace_period,omitempty"`
|
2016-06-17 19:01:18 -07:00
|
|
|
// PullOptions parameterize the behavior of image pulls.
|
|
|
|
PullOptions *ContainerSpec_PullOptions `protobuf:"bytes,10,opt,name=pull_options,json=pullOptions" json:"pull_options,omitempty"`
|
2016-06-07 14:28:28 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ContainerSpec) Reset() { *m = ContainerSpec{} }
|
|
|
|
func (*ContainerSpec) ProtoMessage() {}
|
|
|
|
func (*ContainerSpec) Descriptor() ([]byte, []int) { return fileDescriptorSpecs, []int{5} }
|
|
|
|
|
2016-06-17 19:01:18 -07:00
|
|
|
// PullOptions allows one to parameterize an image pull.
|
|
|
|
type ContainerSpec_PullOptions struct {
|
|
|
|
// RegistryAuth is the registry auth token obtained from the client, required
|
|
|
|
// to pull private images. This is the unmodified JSON used as part of
|
|
|
|
// the `X-Registry-Auth` header.
|
|
|
|
// TODO(nishanttotla): This field will later be deprecated
|
|
|
|
RegistryAuth string `protobuf:"bytes,64,opt,name=registry_auth,json=registryAuth,proto3" json:"registry_auth,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ContainerSpec_PullOptions) Reset() { *m = ContainerSpec_PullOptions{} }
|
|
|
|
func (*ContainerSpec_PullOptions) ProtoMessage() {}
|
|
|
|
func (*ContainerSpec_PullOptions) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptorSpecs, []int{5, 1}
|
|
|
|
}
|
|
|
|
|
2016-06-07 14:28:28 -07:00
|
|
|
// EndpointSpec defines the properties that can be configured to
|
|
|
|
// access and loadbalance the service.
|
|
|
|
type EndpointSpec struct {
|
|
|
|
Mode EndpointSpec_ResolutionMode `protobuf:"varint,1,opt,name=mode,proto3,enum=docker.swarmkit.v1.EndpointSpec_ResolutionMode" json:"mode,omitempty"`
|
|
|
|
// List of exposed ports that this service is accessible from
|
|
|
|
// external to the cluster.
|
|
|
|
Ports []*PortConfig `protobuf:"bytes,2,rep,name=ports" json:"ports,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *EndpointSpec) Reset() { *m = EndpointSpec{} }
|
|
|
|
func (*EndpointSpec) ProtoMessage() {}
|
|
|
|
func (*EndpointSpec) Descriptor() ([]byte, []int) { return fileDescriptorSpecs, []int{6} }
|
|
|
|
|
|
|
|
// NetworkSpec specifies user defined network parameters.
|
|
|
|
type NetworkSpec struct {
|
|
|
|
Annotations Annotations `protobuf:"bytes,1,opt,name=annotations" json:"annotations"`
|
|
|
|
// DriverConfig specific configuration consumed by the network driver.
|
|
|
|
DriverConfig *Driver `protobuf:"bytes,2,opt,name=driver_config,json=driverConfig" json:"driver_config,omitempty"`
|
|
|
|
// IPv6Enabled enables support for IPv6 on the network.
|
|
|
|
Ipv6Enabled bool `protobuf:"varint,3,opt,name=ipv6_enabled,json=ipv6Enabled,proto3" json:"ipv6_enabled,omitempty"`
|
|
|
|
// internal restricts external access to the network. This may be
|
|
|
|
// accomplished by disabling the default gateway or through other means.
|
|
|
|
Internal bool `protobuf:"varint,4,opt,name=internal,proto3" json:"internal,omitempty"`
|
|
|
|
IPAM *IPAMOptions `protobuf:"bytes,5,opt,name=ipam" json:"ipam,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NetworkSpec) Reset() { *m = NetworkSpec{} }
|
|
|
|
func (*NetworkSpec) ProtoMessage() {}
|
|
|
|
func (*NetworkSpec) Descriptor() ([]byte, []int) { return fileDescriptorSpecs, []int{7} }
|
|
|
|
|
|
|
|
// ClusterSpec specifies global cluster settings.
|
|
|
|
type ClusterSpec struct {
|
|
|
|
Annotations Annotations `protobuf:"bytes,1,opt,name=annotations" json:"annotations"`
|
2016-07-20 17:34:33 -07:00
|
|
|
// DEPRECATED: AcceptancePolicy defines the certificate issuance policy.
|
|
|
|
// Acceptance policy is no longer customizable, and secrets have been
|
|
|
|
// replaced with join tokens.
|
2016-06-07 14:28:28 -07:00
|
|
|
AcceptancePolicy AcceptancePolicy `protobuf:"bytes,2,opt,name=acceptance_policy,json=acceptancePolicy" json:"acceptance_policy"`
|
|
|
|
// Orchestration defines cluster-level orchestration settings.
|
|
|
|
Orchestration OrchestrationConfig `protobuf:"bytes,3,opt,name=orchestration" json:"orchestration"`
|
|
|
|
// Raft defines the cluster's raft settings.
|
|
|
|
Raft RaftConfig `protobuf:"bytes,4,opt,name=raft" json:"raft"`
|
|
|
|
// Dispatcher defines cluster-level dispatcher settings.
|
|
|
|
Dispatcher DispatcherConfig `protobuf:"bytes,5,opt,name=dispatcher" json:"dispatcher"`
|
|
|
|
// CAConfig defines cluster-level certificate authority settings.
|
|
|
|
CAConfig CAConfig `protobuf:"bytes,6,opt,name=ca_config,json=caConfig" json:"ca_config"`
|
2016-07-20 17:34:33 -07:00
|
|
|
// TaskDefaults specifies the default values to use for task creation.
|
|
|
|
TaskDefaults TaskDefaults `protobuf:"bytes,7,opt,name=task_defaults,json=taskDefaults" json:"task_defaults"`
|
2016-06-07 14:28:28 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ClusterSpec) Reset() { *m = ClusterSpec{} }
|
|
|
|
func (*ClusterSpec) ProtoMessage() {}
|
|
|
|
func (*ClusterSpec) Descriptor() ([]byte, []int) { return fileDescriptorSpecs, []int{8} }
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
proto.RegisterType((*NodeSpec)(nil), "docker.swarmkit.v1.NodeSpec")
|
|
|
|
proto.RegisterType((*ServiceSpec)(nil), "docker.swarmkit.v1.ServiceSpec")
|
|
|
|
proto.RegisterType((*ServiceSpec_NetworkAttachmentConfig)(nil), "docker.swarmkit.v1.ServiceSpec.NetworkAttachmentConfig")
|
|
|
|
proto.RegisterType((*ReplicatedService)(nil), "docker.swarmkit.v1.ReplicatedService")
|
|
|
|
proto.RegisterType((*GlobalService)(nil), "docker.swarmkit.v1.GlobalService")
|
|
|
|
proto.RegisterType((*TaskSpec)(nil), "docker.swarmkit.v1.TaskSpec")
|
|
|
|
proto.RegisterType((*ContainerSpec)(nil), "docker.swarmkit.v1.ContainerSpec")
|
2016-06-17 19:01:18 -07:00
|
|
|
proto.RegisterType((*ContainerSpec_PullOptions)(nil), "docker.swarmkit.v1.ContainerSpec.PullOptions")
|
2016-06-07 14:28:28 -07:00
|
|
|
proto.RegisterType((*EndpointSpec)(nil), "docker.swarmkit.v1.EndpointSpec")
|
|
|
|
proto.RegisterType((*NetworkSpec)(nil), "docker.swarmkit.v1.NetworkSpec")
|
|
|
|
proto.RegisterType((*ClusterSpec)(nil), "docker.swarmkit.v1.ClusterSpec")
|
|
|
|
proto.RegisterEnum("docker.swarmkit.v1.NodeSpec_Membership", NodeSpec_Membership_name, NodeSpec_Membership_value)
|
|
|
|
proto.RegisterEnum("docker.swarmkit.v1.NodeSpec_Availability", NodeSpec_Availability_name, NodeSpec_Availability_value)
|
|
|
|
proto.RegisterEnum("docker.swarmkit.v1.EndpointSpec_ResolutionMode", EndpointSpec_ResolutionMode_name, EndpointSpec_ResolutionMode_value)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NodeSpec) Copy() *NodeSpec {
|
|
|
|
if m == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
o := &NodeSpec{
|
|
|
|
Annotations: *m.Annotations.Copy(),
|
|
|
|
Role: m.Role,
|
|
|
|
Membership: m.Membership,
|
|
|
|
Availability: m.Availability,
|
|
|
|
}
|
|
|
|
|
|
|
|
return o
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ServiceSpec) Copy() *ServiceSpec {
|
|
|
|
if m == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
o := &ServiceSpec{
|
|
|
|
Annotations: *m.Annotations.Copy(),
|
|
|
|
Task: *m.Task.Copy(),
|
|
|
|
Update: m.Update.Copy(),
|
|
|
|
Endpoint: m.Endpoint.Copy(),
|
|
|
|
}
|
|
|
|
|
|
|
|
if m.Networks != nil {
|
|
|
|
o.Networks = make([]*ServiceSpec_NetworkAttachmentConfig, 0, len(m.Networks))
|
|
|
|
for _, v := range m.Networks {
|
|
|
|
o.Networks = append(o.Networks, v.Copy())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
switch m.Mode.(type) {
|
|
|
|
case *ServiceSpec_Replicated:
|
|
|
|
i := &ServiceSpec_Replicated{
|
|
|
|
Replicated: m.GetReplicated().Copy(),
|
|
|
|
}
|
|
|
|
|
|
|
|
o.Mode = i
|
|
|
|
case *ServiceSpec_Global:
|
|
|
|
i := &ServiceSpec_Global{
|
|
|
|
Global: m.GetGlobal().Copy(),
|
|
|
|
}
|
|
|
|
|
|
|
|
o.Mode = i
|
|
|
|
}
|
|
|
|
|
|
|
|
return o
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ServiceSpec_NetworkAttachmentConfig) Copy() *ServiceSpec_NetworkAttachmentConfig {
|
|
|
|
if m == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
o := &ServiceSpec_NetworkAttachmentConfig{
|
|
|
|
Target: m.Target,
|
|
|
|
}
|
|
|
|
|
|
|
|
if m.Aliases != nil {
|
|
|
|
o.Aliases = make([]string, 0, len(m.Aliases))
|
|
|
|
for _, v := range m.Aliases {
|
|
|
|
o.Aliases = append(o.Aliases, v)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return o
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ReplicatedService) Copy() *ReplicatedService {
|
|
|
|
if m == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
o := &ReplicatedService{
|
|
|
|
Replicas: m.Replicas,
|
|
|
|
}
|
|
|
|
|
|
|
|
return o
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *GlobalService) Copy() *GlobalService {
|
|
|
|
if m == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
o := &GlobalService{}
|
|
|
|
|
|
|
|
return o
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *TaskSpec) Copy() *TaskSpec {
|
|
|
|
if m == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
o := &TaskSpec{
|
|
|
|
Resources: m.Resources.Copy(),
|
|
|
|
Restart: m.Restart.Copy(),
|
|
|
|
Placement: m.Placement.Copy(),
|
2016-07-08 11:41:07 -07:00
|
|
|
LogDriver: m.LogDriver.Copy(),
|
2016-06-07 14:28:28 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
switch m.Runtime.(type) {
|
|
|
|
case *TaskSpec_Container:
|
|
|
|
i := &TaskSpec_Container{
|
|
|
|
Container: m.GetContainer().Copy(),
|
|
|
|
}
|
|
|
|
|
|
|
|
o.Runtime = i
|
|
|
|
}
|
|
|
|
|
|
|
|
return o
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ContainerSpec) Copy() *ContainerSpec {
|
|
|
|
if m == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
o := &ContainerSpec{
|
|
|
|
Image: m.Image,
|
|
|
|
Dir: m.Dir,
|
|
|
|
User: m.User,
|
|
|
|
StopGracePeriod: m.StopGracePeriod.Copy(),
|
2016-06-17 19:01:18 -07:00
|
|
|
PullOptions: m.PullOptions.Copy(),
|
2016-06-07 14:28:28 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
if m.Labels != nil {
|
|
|
|
o.Labels = make(map[string]string)
|
|
|
|
for k, v := range m.Labels {
|
|
|
|
o.Labels[k] = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if m.Command != nil {
|
|
|
|
o.Command = make([]string, 0, len(m.Command))
|
|
|
|
for _, v := range m.Command {
|
|
|
|
o.Command = append(o.Command, v)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if m.Args != nil {
|
|
|
|
o.Args = make([]string, 0, len(m.Args))
|
|
|
|
for _, v := range m.Args {
|
|
|
|
o.Args = append(o.Args, v)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if m.Env != nil {
|
|
|
|
o.Env = make([]string, 0, len(m.Env))
|
|
|
|
for _, v := range m.Env {
|
|
|
|
o.Env = append(o.Env, v)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-08-09 11:49:39 -07:00
|
|
|
if m.Groups != nil {
|
|
|
|
o.Groups = make([]string, 0, len(m.Groups))
|
|
|
|
for _, v := range m.Groups {
|
|
|
|
o.Groups = append(o.Groups, v)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-06-07 14:28:28 -07:00
|
|
|
if m.Mounts != nil {
|
|
|
|
o.Mounts = make([]Mount, 0, len(m.Mounts))
|
|
|
|
for _, v := range m.Mounts {
|
|
|
|
o.Mounts = append(o.Mounts, *v.Copy())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return o
|
|
|
|
}
|
|
|
|
|
2016-06-17 19:01:18 -07:00
|
|
|
func (m *ContainerSpec_PullOptions) Copy() *ContainerSpec_PullOptions {
|
|
|
|
if m == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
o := &ContainerSpec_PullOptions{
|
|
|
|
RegistryAuth: m.RegistryAuth,
|
|
|
|
}
|
|
|
|
|
|
|
|
return o
|
|
|
|
}
|
|
|
|
|
2016-06-07 14:28:28 -07:00
|
|
|
func (m *EndpointSpec) Copy() *EndpointSpec {
|
|
|
|
if m == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
o := &EndpointSpec{
|
|
|
|
Mode: m.Mode,
|
|
|
|
}
|
|
|
|
|
|
|
|
if m.Ports != nil {
|
|
|
|
o.Ports = make([]*PortConfig, 0, len(m.Ports))
|
|
|
|
for _, v := range m.Ports {
|
|
|
|
o.Ports = append(o.Ports, v.Copy())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return o
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NetworkSpec) Copy() *NetworkSpec {
|
|
|
|
if m == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
o := &NetworkSpec{
|
|
|
|
Annotations: *m.Annotations.Copy(),
|
|
|
|
DriverConfig: m.DriverConfig.Copy(),
|
|
|
|
Ipv6Enabled: m.Ipv6Enabled,
|
|
|
|
Internal: m.Internal,
|
|
|
|
IPAM: m.IPAM.Copy(),
|
|
|
|
}
|
|
|
|
|
|
|
|
return o
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ClusterSpec) Copy() *ClusterSpec {
|
|
|
|
if m == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
o := &ClusterSpec{
|
|
|
|
Annotations: *m.Annotations.Copy(),
|
|
|
|
AcceptancePolicy: *m.AcceptancePolicy.Copy(),
|
|
|
|
Orchestration: *m.Orchestration.Copy(),
|
|
|
|
Raft: *m.Raft.Copy(),
|
|
|
|
Dispatcher: *m.Dispatcher.Copy(),
|
|
|
|
CAConfig: *m.CAConfig.Copy(),
|
2016-07-20 17:34:33 -07:00
|
|
|
TaskDefaults: *m.TaskDefaults.Copy(),
|
2016-06-07 14:28:28 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
return o
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *NodeSpec) GoString() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := make([]string, 0, 8)
|
|
|
|
s = append(s, "&api.NodeSpec{")
|
|
|
|
s = append(s, "Annotations: "+strings.Replace(this.Annotations.GoString(), `&`, ``, 1)+",\n")
|
|
|
|
s = append(s, "Role: "+fmt.Sprintf("%#v", this.Role)+",\n")
|
|
|
|
s = append(s, "Membership: "+fmt.Sprintf("%#v", this.Membership)+",\n")
|
|
|
|
s = append(s, "Availability: "+fmt.Sprintf("%#v", this.Availability)+",\n")
|
|
|
|
s = append(s, "}")
|
|
|
|
return strings.Join(s, "")
|
|
|
|
}
|
|
|
|
func (this *ServiceSpec) GoString() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := make([]string, 0, 11)
|
|
|
|
s = append(s, "&api.ServiceSpec{")
|
|
|
|
s = append(s, "Annotations: "+strings.Replace(this.Annotations.GoString(), `&`, ``, 1)+",\n")
|
|
|
|
s = append(s, "Task: "+strings.Replace(this.Task.GoString(), `&`, ``, 1)+",\n")
|
|
|
|
if this.Mode != nil {
|
|
|
|
s = append(s, "Mode: "+fmt.Sprintf("%#v", this.Mode)+",\n")
|
|
|
|
}
|
|
|
|
if this.Update != nil {
|
|
|
|
s = append(s, "Update: "+fmt.Sprintf("%#v", this.Update)+",\n")
|
|
|
|
}
|
|
|
|
if this.Networks != nil {
|
|
|
|
s = append(s, "Networks: "+fmt.Sprintf("%#v", this.Networks)+",\n")
|
|
|
|
}
|
|
|
|
if this.Endpoint != nil {
|
|
|
|
s = append(s, "Endpoint: "+fmt.Sprintf("%#v", this.Endpoint)+",\n")
|
|
|
|
}
|
|
|
|
s = append(s, "}")
|
|
|
|
return strings.Join(s, "")
|
|
|
|
}
|
|
|
|
func (this *ServiceSpec_Replicated) GoString() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&api.ServiceSpec_Replicated{` +
|
|
|
|
`Replicated:` + fmt.Sprintf("%#v", this.Replicated) + `}`}, ", ")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *ServiceSpec_Global) GoString() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&api.ServiceSpec_Global{` +
|
|
|
|
`Global:` + fmt.Sprintf("%#v", this.Global) + `}`}, ", ")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *ServiceSpec_NetworkAttachmentConfig) GoString() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := make([]string, 0, 6)
|
|
|
|
s = append(s, "&api.ServiceSpec_NetworkAttachmentConfig{")
|
|
|
|
s = append(s, "Target: "+fmt.Sprintf("%#v", this.Target)+",\n")
|
|
|
|
s = append(s, "Aliases: "+fmt.Sprintf("%#v", this.Aliases)+",\n")
|
|
|
|
s = append(s, "}")
|
|
|
|
return strings.Join(s, "")
|
|
|
|
}
|
|
|
|
func (this *ReplicatedService) GoString() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := make([]string, 0, 5)
|
|
|
|
s = append(s, "&api.ReplicatedService{")
|
|
|
|
s = append(s, "Replicas: "+fmt.Sprintf("%#v", this.Replicas)+",\n")
|
|
|
|
s = append(s, "}")
|
|
|
|
return strings.Join(s, "")
|
|
|
|
}
|
|
|
|
func (this *GlobalService) GoString() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := make([]string, 0, 4)
|
|
|
|
s = append(s, "&api.GlobalService{")
|
|
|
|
s = append(s, "}")
|
|
|
|
return strings.Join(s, "")
|
|
|
|
}
|
|
|
|
func (this *TaskSpec) GoString() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2016-07-08 11:41:07 -07:00
|
|
|
s := make([]string, 0, 9)
|
2016-06-07 14:28:28 -07:00
|
|
|
s = append(s, "&api.TaskSpec{")
|
|
|
|
if this.Runtime != nil {
|
|
|
|
s = append(s, "Runtime: "+fmt.Sprintf("%#v", this.Runtime)+",\n")
|
|
|
|
}
|
|
|
|
if this.Resources != nil {
|
|
|
|
s = append(s, "Resources: "+fmt.Sprintf("%#v", this.Resources)+",\n")
|
|
|
|
}
|
|
|
|
if this.Restart != nil {
|
|
|
|
s = append(s, "Restart: "+fmt.Sprintf("%#v", this.Restart)+",\n")
|
|
|
|
}
|
|
|
|
if this.Placement != nil {
|
|
|
|
s = append(s, "Placement: "+fmt.Sprintf("%#v", this.Placement)+",\n")
|
|
|
|
}
|
2016-07-08 11:41:07 -07:00
|
|
|
if this.LogDriver != nil {
|
|
|
|
s = append(s, "LogDriver: "+fmt.Sprintf("%#v", this.LogDriver)+",\n")
|
|
|
|
}
|
2016-06-07 14:28:28 -07:00
|
|
|
s = append(s, "}")
|
|
|
|
return strings.Join(s, "")
|
|
|
|
}
|
|
|
|
func (this *TaskSpec_Container) GoString() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&api.TaskSpec_Container{` +
|
|
|
|
`Container:` + fmt.Sprintf("%#v", this.Container) + `}`}, ", ")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *ContainerSpec) GoString() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2016-08-09 11:49:39 -07:00
|
|
|
s := make([]string, 0, 15)
|
2016-06-07 14:28:28 -07:00
|
|
|
s = append(s, "&api.ContainerSpec{")
|
|
|
|
s = append(s, "Image: "+fmt.Sprintf("%#v", this.Image)+",\n")
|
|
|
|
keysForLabels := make([]string, 0, len(this.Labels))
|
|
|
|
for k, _ := range this.Labels {
|
|
|
|
keysForLabels = append(keysForLabels, k)
|
|
|
|
}
|
|
|
|
github_com_gogo_protobuf_sortkeys.Strings(keysForLabels)
|
|
|
|
mapStringForLabels := "map[string]string{"
|
|
|
|
for _, k := range keysForLabels {
|
|
|
|
mapStringForLabels += fmt.Sprintf("%#v: %#v,", k, this.Labels[k])
|
|
|
|
}
|
|
|
|
mapStringForLabels += "}"
|
|
|
|
if this.Labels != nil {
|
|
|
|
s = append(s, "Labels: "+mapStringForLabels+",\n")
|
|
|
|
}
|
|
|
|
s = append(s, "Command: "+fmt.Sprintf("%#v", this.Command)+",\n")
|
|
|
|
s = append(s, "Args: "+fmt.Sprintf("%#v", this.Args)+",\n")
|
|
|
|
s = append(s, "Env: "+fmt.Sprintf("%#v", this.Env)+",\n")
|
|
|
|
s = append(s, "Dir: "+fmt.Sprintf("%#v", this.Dir)+",\n")
|
|
|
|
s = append(s, "User: "+fmt.Sprintf("%#v", this.User)+",\n")
|
2016-08-09 11:49:39 -07:00
|
|
|
s = append(s, "Groups: "+fmt.Sprintf("%#v", this.Groups)+",\n")
|
2016-06-07 14:28:28 -07:00
|
|
|
if this.Mounts != nil {
|
|
|
|
s = append(s, "Mounts: "+fmt.Sprintf("%#v", this.Mounts)+",\n")
|
|
|
|
}
|
|
|
|
if this.StopGracePeriod != nil {
|
|
|
|
s = append(s, "StopGracePeriod: "+fmt.Sprintf("%#v", this.StopGracePeriod)+",\n")
|
|
|
|
}
|
2016-06-17 19:01:18 -07:00
|
|
|
if this.PullOptions != nil {
|
|
|
|
s = append(s, "PullOptions: "+fmt.Sprintf("%#v", this.PullOptions)+",\n")
|
|
|
|
}
|
|
|
|
s = append(s, "}")
|
|
|
|
return strings.Join(s, "")
|
|
|
|
}
|
|
|
|
func (this *ContainerSpec_PullOptions) GoString() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := make([]string, 0, 5)
|
|
|
|
s = append(s, "&api.ContainerSpec_PullOptions{")
|
|
|
|
s = append(s, "RegistryAuth: "+fmt.Sprintf("%#v", this.RegistryAuth)+",\n")
|
2016-06-07 14:28:28 -07:00
|
|
|
s = append(s, "}")
|
|
|
|
return strings.Join(s, "")
|
|
|
|
}
|
|
|
|
func (this *EndpointSpec) GoString() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := make([]string, 0, 6)
|
|
|
|
s = append(s, "&api.EndpointSpec{")
|
|
|
|
s = append(s, "Mode: "+fmt.Sprintf("%#v", this.Mode)+",\n")
|
|
|
|
if this.Ports != nil {
|
|
|
|
s = append(s, "Ports: "+fmt.Sprintf("%#v", this.Ports)+",\n")
|
|
|
|
}
|
|
|
|
s = append(s, "}")
|
|
|
|
return strings.Join(s, "")
|
|
|
|
}
|
|
|
|
func (this *NetworkSpec) GoString() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := make([]string, 0, 9)
|
|
|
|
s = append(s, "&api.NetworkSpec{")
|
|
|
|
s = append(s, "Annotations: "+strings.Replace(this.Annotations.GoString(), `&`, ``, 1)+",\n")
|
|
|
|
if this.DriverConfig != nil {
|
|
|
|
s = append(s, "DriverConfig: "+fmt.Sprintf("%#v", this.DriverConfig)+",\n")
|
|
|
|
}
|
|
|
|
s = append(s, "Ipv6Enabled: "+fmt.Sprintf("%#v", this.Ipv6Enabled)+",\n")
|
|
|
|
s = append(s, "Internal: "+fmt.Sprintf("%#v", this.Internal)+",\n")
|
|
|
|
if this.IPAM != nil {
|
|
|
|
s = append(s, "IPAM: "+fmt.Sprintf("%#v", this.IPAM)+",\n")
|
|
|
|
}
|
|
|
|
s = append(s, "}")
|
|
|
|
return strings.Join(s, "")
|
|
|
|
}
|
|
|
|
func (this *ClusterSpec) GoString() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2016-07-08 11:41:07 -07:00
|
|
|
s := make([]string, 0, 11)
|
2016-06-07 14:28:28 -07:00
|
|
|
s = append(s, "&api.ClusterSpec{")
|
|
|
|
s = append(s, "Annotations: "+strings.Replace(this.Annotations.GoString(), `&`, ``, 1)+",\n")
|
|
|
|
s = append(s, "AcceptancePolicy: "+strings.Replace(this.AcceptancePolicy.GoString(), `&`, ``, 1)+",\n")
|
|
|
|
s = append(s, "Orchestration: "+strings.Replace(this.Orchestration.GoString(), `&`, ``, 1)+",\n")
|
|
|
|
s = append(s, "Raft: "+strings.Replace(this.Raft.GoString(), `&`, ``, 1)+",\n")
|
|
|
|
s = append(s, "Dispatcher: "+strings.Replace(this.Dispatcher.GoString(), `&`, ``, 1)+",\n")
|
|
|
|
s = append(s, "CAConfig: "+strings.Replace(this.CAConfig.GoString(), `&`, ``, 1)+",\n")
|
2016-07-20 17:34:33 -07:00
|
|
|
s = append(s, "TaskDefaults: "+strings.Replace(this.TaskDefaults.GoString(), `&`, ``, 1)+",\n")
|
2016-06-07 14:28:28 -07:00
|
|
|
s = append(s, "}")
|
|
|
|
return strings.Join(s, "")
|
|
|
|
}
|
|
|
|
func valueToGoStringSpecs(v interface{}, typ string) string {
|
|
|
|
rv := reflect.ValueOf(v)
|
|
|
|
if rv.IsNil() {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
pv := reflect.Indirect(rv).Interface()
|
|
|
|
return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv)
|
|
|
|
}
|
|
|
|
func extensionToGoStringSpecs(e map[int32]github_com_gogo_protobuf_proto.Extension) string {
|
|
|
|
if e == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := "map[int32]proto.Extension{"
|
|
|
|
keys := make([]int, 0, len(e))
|
|
|
|
for k := range e {
|
|
|
|
keys = append(keys, int(k))
|
|
|
|
}
|
|
|
|
sort.Ints(keys)
|
|
|
|
ss := []string{}
|
|
|
|
for _, k := range keys {
|
|
|
|
ss = append(ss, strconv.Itoa(k)+": "+e[int32(k)].GoString())
|
|
|
|
}
|
|
|
|
s += strings.Join(ss, ",") + "}"
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (m *NodeSpec) 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 *NodeSpec) MarshalTo(data []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
data[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintSpecs(data, i, uint64(m.Annotations.Size()))
|
|
|
|
n1, err := m.Annotations.MarshalTo(data[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n1
|
|
|
|
if m.Role != 0 {
|
|
|
|
data[i] = 0x10
|
|
|
|
i++
|
|
|
|
i = encodeVarintSpecs(data, i, uint64(m.Role))
|
|
|
|
}
|
|
|
|
if m.Membership != 0 {
|
|
|
|
data[i] = 0x18
|
|
|
|
i++
|
|
|
|
i = encodeVarintSpecs(data, i, uint64(m.Membership))
|
|
|
|
}
|
|
|
|
if m.Availability != 0 {
|
|
|
|
data[i] = 0x20
|
|
|
|
i++
|
|
|
|
i = encodeVarintSpecs(data, i, uint64(m.Availability))
|
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ServiceSpec) 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 *ServiceSpec) MarshalTo(data []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
data[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintSpecs(data, i, uint64(m.Annotations.Size()))
|
|
|
|
n2, err := m.Annotations.MarshalTo(data[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n2
|
|
|
|
data[i] = 0x12
|
|
|
|
i++
|
|
|
|
i = encodeVarintSpecs(data, i, uint64(m.Task.Size()))
|
|
|
|
n3, err := m.Task.MarshalTo(data[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n3
|
|
|
|
if m.Mode != nil {
|
|
|
|
nn4, err := m.Mode.MarshalTo(data[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += nn4
|
|
|
|
}
|
|
|
|
if m.Update != nil {
|
|
|
|
data[i] = 0x32
|
|
|
|
i++
|
|
|
|
i = encodeVarintSpecs(data, i, uint64(m.Update.Size()))
|
|
|
|
n5, err := m.Update.MarshalTo(data[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n5
|
|
|
|
}
|
|
|
|
if len(m.Networks) > 0 {
|
|
|
|
for _, msg := range m.Networks {
|
|
|
|
data[i] = 0x3a
|
|
|
|
i++
|
|
|
|
i = encodeVarintSpecs(data, i, uint64(msg.Size()))
|
|
|
|
n, err := msg.MarshalTo(data[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if m.Endpoint != nil {
|
|
|
|
data[i] = 0x42
|
|
|
|
i++
|
|
|
|
i = encodeVarintSpecs(data, i, uint64(m.Endpoint.Size()))
|
|
|
|
n6, err := m.Endpoint.MarshalTo(data[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n6
|
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ServiceSpec_Replicated) MarshalTo(data []byte) (int, error) {
|
|
|
|
i := 0
|
|
|
|
if m.Replicated != nil {
|
|
|
|
data[i] = 0x1a
|
|
|
|
i++
|
|
|
|
i = encodeVarintSpecs(data, i, uint64(m.Replicated.Size()))
|
|
|
|
n7, err := m.Replicated.MarshalTo(data[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n7
|
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
func (m *ServiceSpec_Global) MarshalTo(data []byte) (int, error) {
|
|
|
|
i := 0
|
|
|
|
if m.Global != nil {
|
|
|
|
data[i] = 0x22
|
|
|
|
i++
|
|
|
|
i = encodeVarintSpecs(data, i, uint64(m.Global.Size()))
|
|
|
|
n8, err := m.Global.MarshalTo(data[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n8
|
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
func (m *ServiceSpec_NetworkAttachmentConfig) 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 *ServiceSpec_NetworkAttachmentConfig) MarshalTo(data []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Target) > 0 {
|
|
|
|
data[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintSpecs(data, i, uint64(len(m.Target)))
|
|
|
|
i += copy(data[i:], m.Target)
|
|
|
|
}
|
|
|
|
if len(m.Aliases) > 0 {
|
|
|
|
for _, s := range m.Aliases {
|
|
|
|
data[i] = 0x12
|
|
|
|
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)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ReplicatedService) 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 *ReplicatedService) MarshalTo(data []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Replicas != 0 {
|
|
|
|
data[i] = 0x8
|
|
|
|
i++
|
|
|
|
i = encodeVarintSpecs(data, i, uint64(m.Replicas))
|
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *GlobalService) 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 *GlobalService) MarshalTo(data []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *TaskSpec) 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 *TaskSpec) MarshalTo(data []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Runtime != nil {
|
|
|
|
nn9, err := m.Runtime.MarshalTo(data[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += nn9
|
|
|
|
}
|
|
|
|
if m.Resources != nil {
|
|
|
|
data[i] = 0x12
|
|
|
|
i++
|
|
|
|
i = encodeVarintSpecs(data, i, uint64(m.Resources.Size()))
|
|
|
|
n10, err := m.Resources.MarshalTo(data[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n10
|
|
|
|
}
|
|
|
|
if m.Restart != nil {
|
|
|
|
data[i] = 0x22
|
|
|
|
i++
|
|
|
|
i = encodeVarintSpecs(data, i, uint64(m.Restart.Size()))
|
|
|
|
n11, err := m.Restart.MarshalTo(data[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n11
|
|
|
|
}
|
|
|
|
if m.Placement != nil {
|
|
|
|
data[i] = 0x2a
|
|
|
|
i++
|
|
|
|
i = encodeVarintSpecs(data, i, uint64(m.Placement.Size()))
|
|
|
|
n12, err := m.Placement.MarshalTo(data[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n12
|
|
|
|
}
|
2016-07-08 11:41:07 -07:00
|
|
|
if m.LogDriver != nil {
|
|
|
|
data[i] = 0x32
|
|
|
|
i++
|
|
|
|
i = encodeVarintSpecs(data, i, uint64(m.LogDriver.Size()))
|
|
|
|
n13, err := m.LogDriver.MarshalTo(data[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n13
|
|
|
|
}
|
2016-06-07 14:28:28 -07:00
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *TaskSpec_Container) MarshalTo(data []byte) (int, error) {
|
|
|
|
i := 0
|
|
|
|
if m.Container != nil {
|
|
|
|
data[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintSpecs(data, i, uint64(m.Container.Size()))
|
2016-07-08 11:41:07 -07:00
|
|
|
n14, err := m.Container.MarshalTo(data[i:])
|
2016-06-07 14:28:28 -07:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2016-07-08 11:41:07 -07:00
|
|
|
i += n14
|
2016-06-07 14:28:28 -07:00
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
func (m *ContainerSpec) 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 *ContainerSpec) MarshalTo(data []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Image) > 0 {
|
|
|
|
data[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintSpecs(data, i, uint64(len(m.Image)))
|
|
|
|
i += copy(data[i:], m.Image)
|
|
|
|
}
|
|
|
|
if len(m.Labels) > 0 {
|
|
|
|
for k, _ := range m.Labels {
|
|
|
|
data[i] = 0x12
|
|
|
|
i++
|
|
|
|
v := m.Labels[k]
|
|
|
|
mapSize := 1 + len(k) + sovSpecs(uint64(len(k))) + 1 + len(v) + sovSpecs(uint64(len(v)))
|
|
|
|
i = encodeVarintSpecs(data, i, uint64(mapSize))
|
|
|
|
data[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintSpecs(data, i, uint64(len(k)))
|
|
|
|
i += copy(data[i:], k)
|
|
|
|
data[i] = 0x12
|
|
|
|
i++
|
|
|
|
i = encodeVarintSpecs(data, i, uint64(len(v)))
|
|
|
|
i += copy(data[i:], v)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if len(m.Command) > 0 {
|
|
|
|
for _, s := range m.Command {
|
|
|
|
data[i] = 0x1a
|
|
|
|
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)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if len(m.Args) > 0 {
|
|
|
|
for _, s := range m.Args {
|
|
|
|
data[i] = 0x22
|
|
|
|
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)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if len(m.Env) > 0 {
|
|
|
|
for _, s := range m.Env {
|
|
|
|
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)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if len(m.Dir) > 0 {
|
|
|
|
data[i] = 0x32
|
|
|
|
i++
|
|
|
|
i = encodeVarintSpecs(data, i, uint64(len(m.Dir)))
|
|
|
|
i += copy(data[i:], m.Dir)
|
|
|
|
}
|
|
|
|
if len(m.User) > 0 {
|
|
|
|
data[i] = 0x3a
|
|
|
|
i++
|
|
|
|
i = encodeVarintSpecs(data, i, uint64(len(m.User)))
|
|
|
|
i += copy(data[i:], m.User)
|
|
|
|
}
|
|
|
|
if len(m.Mounts) > 0 {
|
|
|
|
for _, msg := range m.Mounts {
|
|
|
|
data[i] = 0x42
|
|
|
|
i++
|
|
|
|
i = encodeVarintSpecs(data, i, uint64(msg.Size()))
|
|
|
|
n, err := msg.MarshalTo(data[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if m.StopGracePeriod != nil {
|
|
|
|
data[i] = 0x4a
|
|
|
|
i++
|
|
|
|
i = encodeVarintSpecs(data, i, uint64(m.StopGracePeriod.Size()))
|
2016-07-08 11:41:07 -07:00
|
|
|
n15, err := m.StopGracePeriod.MarshalTo(data[i:])
|
2016-06-07 14:28:28 -07:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2016-07-08 11:41:07 -07:00
|
|
|
i += n15
|
2016-06-07 14:28:28 -07:00
|
|
|
}
|
2016-06-17 19:01:18 -07:00
|
|
|
if m.PullOptions != nil {
|
|
|
|
data[i] = 0x52
|
|
|
|
i++
|
|
|
|
i = encodeVarintSpecs(data, i, uint64(m.PullOptions.Size()))
|
2016-07-08 11:41:07 -07:00
|
|
|
n16, err := m.PullOptions.MarshalTo(data[i:])
|
2016-06-17 19:01:18 -07:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2016-07-08 11:41:07 -07:00
|
|
|
i += n16
|
2016-06-17 19:01:18 -07:00
|
|
|
}
|
2016-08-09 11:49:39 -07:00
|
|
|
if len(m.Groups) > 0 {
|
|
|
|
for _, s := range m.Groups {
|
|
|
|
data[i] = 0x5a
|
|
|
|
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)
|
|
|
|
}
|
|
|
|
}
|
2016-06-17 19:01:18 -07:00
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ContainerSpec_PullOptions) 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 *ContainerSpec_PullOptions) MarshalTo(data []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2016-06-14 17:07:14 -07:00
|
|
|
if len(m.RegistryAuth) > 0 {
|
|
|
|
data[i] = 0x82
|
|
|
|
i++
|
|
|
|
data[i] = 0x4
|
|
|
|
i++
|
|
|
|
i = encodeVarintSpecs(data, i, uint64(len(m.RegistryAuth)))
|
|
|
|
i += copy(data[i:], m.RegistryAuth)
|
|
|
|
}
|
2016-06-07 14:28:28 -07:00
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *EndpointSpec) 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 *EndpointSpec) MarshalTo(data []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Mode != 0 {
|
|
|
|
data[i] = 0x8
|
|
|
|
i++
|
|
|
|
i = encodeVarintSpecs(data, i, uint64(m.Mode))
|
|
|
|
}
|
|
|
|
if len(m.Ports) > 0 {
|
|
|
|
for _, msg := range m.Ports {
|
|
|
|
data[i] = 0x12
|
|
|
|
i++
|
|
|
|
i = encodeVarintSpecs(data, i, uint64(msg.Size()))
|
|
|
|
n, err := msg.MarshalTo(data[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NetworkSpec) 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 *NetworkSpec) MarshalTo(data []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
data[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintSpecs(data, i, uint64(m.Annotations.Size()))
|
2016-07-08 11:41:07 -07:00
|
|
|
n17, err := m.Annotations.MarshalTo(data[i:])
|
2016-06-07 14:28:28 -07:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2016-07-08 11:41:07 -07:00
|
|
|
i += n17
|
2016-06-07 14:28:28 -07:00
|
|
|
if m.DriverConfig != nil {
|
|
|
|
data[i] = 0x12
|
|
|
|
i++
|
|
|
|
i = encodeVarintSpecs(data, i, uint64(m.DriverConfig.Size()))
|
2016-07-08 11:41:07 -07:00
|
|
|
n18, err := m.DriverConfig.MarshalTo(data[i:])
|
2016-06-07 14:28:28 -07:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2016-07-08 11:41:07 -07:00
|
|
|
i += n18
|
2016-06-07 14:28:28 -07:00
|
|
|
}
|
|
|
|
if m.Ipv6Enabled {
|
|
|
|
data[i] = 0x18
|
|
|
|
i++
|
|
|
|
if m.Ipv6Enabled {
|
|
|
|
data[i] = 1
|
|
|
|
} else {
|
|
|
|
data[i] = 0
|
|
|
|
}
|
|
|
|
i++
|
|
|
|
}
|
|
|
|
if m.Internal {
|
|
|
|
data[i] = 0x20
|
|
|
|
i++
|
|
|
|
if m.Internal {
|
|
|
|
data[i] = 1
|
|
|
|
} else {
|
|
|
|
data[i] = 0
|
|
|
|
}
|
|
|
|
i++
|
|
|
|
}
|
|
|
|
if m.IPAM != nil {
|
|
|
|
data[i] = 0x2a
|
|
|
|
i++
|
|
|
|
i = encodeVarintSpecs(data, i, uint64(m.IPAM.Size()))
|
2016-07-08 11:41:07 -07:00
|
|
|
n19, err := m.IPAM.MarshalTo(data[i:])
|
2016-06-07 14:28:28 -07:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2016-07-08 11:41:07 -07:00
|
|
|
i += n19
|
2016-06-07 14:28:28 -07:00
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ClusterSpec) 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 *ClusterSpec) MarshalTo(data []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
data[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintSpecs(data, i, uint64(m.Annotations.Size()))
|
2016-07-08 11:41:07 -07:00
|
|
|
n20, err := m.Annotations.MarshalTo(data[i:])
|
2016-06-07 14:28:28 -07:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2016-07-08 11:41:07 -07:00
|
|
|
i += n20
|
2016-06-07 14:28:28 -07:00
|
|
|
data[i] = 0x12
|
|
|
|
i++
|
|
|
|
i = encodeVarintSpecs(data, i, uint64(m.AcceptancePolicy.Size()))
|
2016-07-08 11:41:07 -07:00
|
|
|
n21, err := m.AcceptancePolicy.MarshalTo(data[i:])
|
2016-06-07 14:28:28 -07:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2016-07-08 11:41:07 -07:00
|
|
|
i += n21
|
2016-06-07 14:28:28 -07:00
|
|
|
data[i] = 0x1a
|
|
|
|
i++
|
|
|
|
i = encodeVarintSpecs(data, i, uint64(m.Orchestration.Size()))
|
2016-07-08 11:41:07 -07:00
|
|
|
n22, err := m.Orchestration.MarshalTo(data[i:])
|
2016-06-07 14:28:28 -07:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2016-07-08 11:41:07 -07:00
|
|
|
i += n22
|
2016-06-07 14:28:28 -07:00
|
|
|
data[i] = 0x22
|
|
|
|
i++
|
|
|
|
i = encodeVarintSpecs(data, i, uint64(m.Raft.Size()))
|
2016-07-08 11:41:07 -07:00
|
|
|
n23, err := m.Raft.MarshalTo(data[i:])
|
2016-06-07 14:28:28 -07:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2016-07-08 11:41:07 -07:00
|
|
|
i += n23
|
2016-06-07 14:28:28 -07:00
|
|
|
data[i] = 0x2a
|
|
|
|
i++
|
|
|
|
i = encodeVarintSpecs(data, i, uint64(m.Dispatcher.Size()))
|
2016-07-08 11:41:07 -07:00
|
|
|
n24, err := m.Dispatcher.MarshalTo(data[i:])
|
2016-06-07 14:28:28 -07:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2016-07-08 11:41:07 -07:00
|
|
|
i += n24
|
2016-06-07 14:28:28 -07:00
|
|
|
data[i] = 0x32
|
|
|
|
i++
|
|
|
|
i = encodeVarintSpecs(data, i, uint64(m.CAConfig.Size()))
|
2016-07-08 11:41:07 -07:00
|
|
|
n25, err := m.CAConfig.MarshalTo(data[i:])
|
2016-06-07 14:28:28 -07:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2016-07-08 11:41:07 -07:00
|
|
|
i += n25
|
2016-07-20 17:34:33 -07:00
|
|
|
data[i] = 0x3a
|
|
|
|
i++
|
|
|
|
i = encodeVarintSpecs(data, i, uint64(m.TaskDefaults.Size()))
|
|
|
|
n26, err := m.TaskDefaults.MarshalTo(data[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
2016-07-08 11:41:07 -07:00
|
|
|
}
|
2016-07-20 17:34:33 -07:00
|
|
|
i += n26
|
2016-06-07 14:28:28 -07:00
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func encodeFixed64Specs(data []byte, offset int, v uint64) int {
|
|
|
|
data[offset] = uint8(v)
|
|
|
|
data[offset+1] = uint8(v >> 8)
|
|
|
|
data[offset+2] = uint8(v >> 16)
|
|
|
|
data[offset+3] = uint8(v >> 24)
|
|
|
|
data[offset+4] = uint8(v >> 32)
|
|
|
|
data[offset+5] = uint8(v >> 40)
|
|
|
|
data[offset+6] = uint8(v >> 48)
|
|
|
|
data[offset+7] = uint8(v >> 56)
|
|
|
|
return offset + 8
|
|
|
|
}
|
|
|
|
func encodeFixed32Specs(data []byte, offset int, v uint32) int {
|
|
|
|
data[offset] = uint8(v)
|
|
|
|
data[offset+1] = uint8(v >> 8)
|
|
|
|
data[offset+2] = uint8(v >> 16)
|
|
|
|
data[offset+3] = uint8(v >> 24)
|
|
|
|
return offset + 4
|
|
|
|
}
|
|
|
|
func encodeVarintSpecs(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 *NodeSpec) Size() (n int) {
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = m.Annotations.Size()
|
|
|
|
n += 1 + l + sovSpecs(uint64(l))
|
|
|
|
if m.Role != 0 {
|
|
|
|
n += 1 + sovSpecs(uint64(m.Role))
|
|
|
|
}
|
|
|
|
if m.Membership != 0 {
|
|
|
|
n += 1 + sovSpecs(uint64(m.Membership))
|
|
|
|
}
|
|
|
|
if m.Availability != 0 {
|
|
|
|
n += 1 + sovSpecs(uint64(m.Availability))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ServiceSpec) Size() (n int) {
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = m.Annotations.Size()
|
|
|
|
n += 1 + l + sovSpecs(uint64(l))
|
|
|
|
l = m.Task.Size()
|
|
|
|
n += 1 + l + sovSpecs(uint64(l))
|
|
|
|
if m.Mode != nil {
|
|
|
|
n += m.Mode.Size()
|
|
|
|
}
|
|
|
|
if m.Update != nil {
|
|
|
|
l = m.Update.Size()
|
|
|
|
n += 1 + l + sovSpecs(uint64(l))
|
|
|
|
}
|
|
|
|
if len(m.Networks) > 0 {
|
|
|
|
for _, e := range m.Networks {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovSpecs(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if m.Endpoint != nil {
|
|
|
|
l = m.Endpoint.Size()
|
|
|
|
n += 1 + l + sovSpecs(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ServiceSpec_Replicated) Size() (n int) {
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Replicated != nil {
|
|
|
|
l = m.Replicated.Size()
|
|
|
|
n += 1 + l + sovSpecs(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
func (m *ServiceSpec_Global) Size() (n int) {
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Global != nil {
|
|
|
|
l = m.Global.Size()
|
|
|
|
n += 1 + l + sovSpecs(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
func (m *ServiceSpec_NetworkAttachmentConfig) Size() (n int) {
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Target)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovSpecs(uint64(l))
|
|
|
|
}
|
|
|
|
if len(m.Aliases) > 0 {
|
|
|
|
for _, s := range m.Aliases {
|
|
|
|
l = len(s)
|
|
|
|
n += 1 + l + sovSpecs(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ReplicatedService) Size() (n int) {
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Replicas != 0 {
|
|
|
|
n += 1 + sovSpecs(uint64(m.Replicas))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *GlobalService) Size() (n int) {
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *TaskSpec) Size() (n int) {
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Runtime != nil {
|
|
|
|
n += m.Runtime.Size()
|
|
|
|
}
|
|
|
|
if m.Resources != nil {
|
|
|
|
l = m.Resources.Size()
|
|
|
|
n += 1 + l + sovSpecs(uint64(l))
|
|
|
|
}
|
|
|
|
if m.Restart != nil {
|
|
|
|
l = m.Restart.Size()
|
|
|
|
n += 1 + l + sovSpecs(uint64(l))
|
|
|
|
}
|
|
|
|
if m.Placement != nil {
|
|
|
|
l = m.Placement.Size()
|
|
|
|
n += 1 + l + sovSpecs(uint64(l))
|
|
|
|
}
|
2016-07-08 11:41:07 -07:00
|
|
|
if m.LogDriver != nil {
|
|
|
|
l = m.LogDriver.Size()
|
|
|
|
n += 1 + l + sovSpecs(uint64(l))
|
|
|
|
}
|
2016-06-07 14:28:28 -07:00
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *TaskSpec_Container) Size() (n int) {
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Container != nil {
|
|
|
|
l = m.Container.Size()
|
|
|
|
n += 1 + l + sovSpecs(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
func (m *ContainerSpec) Size() (n int) {
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Image)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovSpecs(uint64(l))
|
|
|
|
}
|
|
|
|
if len(m.Labels) > 0 {
|
|
|
|
for k, v := range m.Labels {
|
|
|
|
_ = k
|
|
|
|
_ = v
|
|
|
|
mapEntrySize := 1 + len(k) + sovSpecs(uint64(len(k))) + 1 + len(v) + sovSpecs(uint64(len(v)))
|
|
|
|
n += mapEntrySize + 1 + sovSpecs(uint64(mapEntrySize))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if len(m.Command) > 0 {
|
|
|
|
for _, s := range m.Command {
|
|
|
|
l = len(s)
|
|
|
|
n += 1 + l + sovSpecs(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if len(m.Args) > 0 {
|
|
|
|
for _, s := range m.Args {
|
|
|
|
l = len(s)
|
|
|
|
n += 1 + l + sovSpecs(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if len(m.Env) > 0 {
|
|
|
|
for _, s := range m.Env {
|
|
|
|
l = len(s)
|
|
|
|
n += 1 + l + sovSpecs(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
l = len(m.Dir)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovSpecs(uint64(l))
|
|
|
|
}
|
|
|
|
l = len(m.User)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovSpecs(uint64(l))
|
|
|
|
}
|
|
|
|
if len(m.Mounts) > 0 {
|
|
|
|
for _, e := range m.Mounts {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovSpecs(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if m.StopGracePeriod != nil {
|
|
|
|
l = m.StopGracePeriod.Size()
|
|
|
|
n += 1 + l + sovSpecs(uint64(l))
|
|
|
|
}
|
2016-06-17 19:01:18 -07:00
|
|
|
if m.PullOptions != nil {
|
|
|
|
l = m.PullOptions.Size()
|
|
|
|
n += 1 + l + sovSpecs(uint64(l))
|
|
|
|
}
|
2016-08-09 11:49:39 -07:00
|
|
|
if len(m.Groups) > 0 {
|
|
|
|
for _, s := range m.Groups {
|
|
|
|
l = len(s)
|
|
|
|
n += 1 + l + sovSpecs(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
2016-06-17 19:01:18 -07:00
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ContainerSpec_PullOptions) Size() (n int) {
|
|
|
|
var l int
|
|
|
|
_ = l
|
2016-06-14 17:07:14 -07:00
|
|
|
l = len(m.RegistryAuth)
|
|
|
|
if l > 0 {
|
|
|
|
n += 2 + l + sovSpecs(uint64(l))
|
|
|
|
}
|
2016-06-07 14:28:28 -07:00
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *EndpointSpec) Size() (n int) {
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Mode != 0 {
|
|
|
|
n += 1 + sovSpecs(uint64(m.Mode))
|
|
|
|
}
|
|
|
|
if len(m.Ports) > 0 {
|
|
|
|
for _, e := range m.Ports {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovSpecs(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NetworkSpec) Size() (n int) {
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = m.Annotations.Size()
|
|
|
|
n += 1 + l + sovSpecs(uint64(l))
|
|
|
|
if m.DriverConfig != nil {
|
|
|
|
l = m.DriverConfig.Size()
|
|
|
|
n += 1 + l + sovSpecs(uint64(l))
|
|
|
|
}
|
|
|
|
if m.Ipv6Enabled {
|
|
|
|
n += 2
|
|
|
|
}
|
|
|
|
if m.Internal {
|
|
|
|
n += 2
|
|
|
|
}
|
|
|
|
if m.IPAM != nil {
|
|
|
|
l = m.IPAM.Size()
|
|
|
|
n += 1 + l + sovSpecs(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ClusterSpec) Size() (n int) {
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = m.Annotations.Size()
|
|
|
|
n += 1 + l + sovSpecs(uint64(l))
|
|
|
|
l = m.AcceptancePolicy.Size()
|
|
|
|
n += 1 + l + sovSpecs(uint64(l))
|
|
|
|
l = m.Orchestration.Size()
|
|
|
|
n += 1 + l + sovSpecs(uint64(l))
|
|
|
|
l = m.Raft.Size()
|
|
|
|
n += 1 + l + sovSpecs(uint64(l))
|
|
|
|
l = m.Dispatcher.Size()
|
|
|
|
n += 1 + l + sovSpecs(uint64(l))
|
|
|
|
l = m.CAConfig.Size()
|
|
|
|
n += 1 + l + sovSpecs(uint64(l))
|
2016-07-20 17:34:33 -07:00
|
|
|
l = m.TaskDefaults.Size()
|
|
|
|
n += 1 + l + sovSpecs(uint64(l))
|
2016-06-07 14:28:28 -07:00
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func sovSpecs(x uint64) (n int) {
|
|
|
|
for {
|
|
|
|
n++
|
|
|
|
x >>= 7
|
|
|
|
if x == 0 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
func sozSpecs(x uint64) (n int) {
|
|
|
|
return sovSpecs(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
|
|
|
}
|
|
|
|
func (this *NodeSpec) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&NodeSpec{`,
|
|
|
|
`Annotations:` + strings.Replace(strings.Replace(this.Annotations.String(), "Annotations", "Annotations", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Role:` + fmt.Sprintf("%v", this.Role) + `,`,
|
|
|
|
`Membership:` + fmt.Sprintf("%v", this.Membership) + `,`,
|
|
|
|
`Availability:` + fmt.Sprintf("%v", this.Availability) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *ServiceSpec) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&ServiceSpec{`,
|
|
|
|
`Annotations:` + strings.Replace(strings.Replace(this.Annotations.String(), "Annotations", "Annotations", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Task:` + strings.Replace(strings.Replace(this.Task.String(), "TaskSpec", "TaskSpec", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Mode:` + fmt.Sprintf("%v", this.Mode) + `,`,
|
|
|
|
`Update:` + strings.Replace(fmt.Sprintf("%v", this.Update), "UpdateConfig", "UpdateConfig", 1) + `,`,
|
|
|
|
`Networks:` + strings.Replace(fmt.Sprintf("%v", this.Networks), "ServiceSpec_NetworkAttachmentConfig", "ServiceSpec_NetworkAttachmentConfig", 1) + `,`,
|
|
|
|
`Endpoint:` + strings.Replace(fmt.Sprintf("%v", this.Endpoint), "EndpointSpec", "EndpointSpec", 1) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *ServiceSpec_Replicated) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&ServiceSpec_Replicated{`,
|
|
|
|
`Replicated:` + strings.Replace(fmt.Sprintf("%v", this.Replicated), "ReplicatedService", "ReplicatedService", 1) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *ServiceSpec_Global) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&ServiceSpec_Global{`,
|
|
|
|
`Global:` + strings.Replace(fmt.Sprintf("%v", this.Global), "GlobalService", "GlobalService", 1) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *ServiceSpec_NetworkAttachmentConfig) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&ServiceSpec_NetworkAttachmentConfig{`,
|
|
|
|
`Target:` + fmt.Sprintf("%v", this.Target) + `,`,
|
|
|
|
`Aliases:` + fmt.Sprintf("%v", this.Aliases) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *ReplicatedService) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&ReplicatedService{`,
|
|
|
|
`Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *GlobalService) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&GlobalService{`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *TaskSpec) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&TaskSpec{`,
|
|
|
|
`Runtime:` + fmt.Sprintf("%v", this.Runtime) + `,`,
|
|
|
|
`Resources:` + strings.Replace(fmt.Sprintf("%v", this.Resources), "ResourceRequirements", "ResourceRequirements", 1) + `,`,
|
|
|
|
`Restart:` + strings.Replace(fmt.Sprintf("%v", this.Restart), "RestartPolicy", "RestartPolicy", 1) + `,`,
|
|
|
|
`Placement:` + strings.Replace(fmt.Sprintf("%v", this.Placement), "Placement", "Placement", 1) + `,`,
|
2016-07-08 11:41:07 -07:00
|
|
|
`LogDriver:` + strings.Replace(fmt.Sprintf("%v", this.LogDriver), "Driver", "Driver", 1) + `,`,
|
2016-06-07 14:28:28 -07:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *TaskSpec_Container) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&TaskSpec_Container{`,
|
|
|
|
`Container:` + strings.Replace(fmt.Sprintf("%v", this.Container), "ContainerSpec", "ContainerSpec", 1) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *ContainerSpec) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
keysForLabels := make([]string, 0, len(this.Labels))
|
|
|
|
for k, _ := range this.Labels {
|
|
|
|
keysForLabels = append(keysForLabels, k)
|
|
|
|
}
|
|
|
|
github_com_gogo_protobuf_sortkeys.Strings(keysForLabels)
|
|
|
|
mapStringForLabels := "map[string]string{"
|
|
|
|
for _, k := range keysForLabels {
|
|
|
|
mapStringForLabels += fmt.Sprintf("%v: %v,", k, this.Labels[k])
|
|
|
|
}
|
|
|
|
mapStringForLabels += "}"
|
|
|
|
s := strings.Join([]string{`&ContainerSpec{`,
|
|
|
|
`Image:` + fmt.Sprintf("%v", this.Image) + `,`,
|
|
|
|
`Labels:` + mapStringForLabels + `,`,
|
|
|
|
`Command:` + fmt.Sprintf("%v", this.Command) + `,`,
|
|
|
|
`Args:` + fmt.Sprintf("%v", this.Args) + `,`,
|
|
|
|
`Env:` + fmt.Sprintf("%v", this.Env) + `,`,
|
|
|
|
`Dir:` + fmt.Sprintf("%v", this.Dir) + `,`,
|
|
|
|
`User:` + fmt.Sprintf("%v", this.User) + `,`,
|
|
|
|
`Mounts:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Mounts), "Mount", "Mount", 1), `&`, ``, 1) + `,`,
|
|
|
|
`StopGracePeriod:` + strings.Replace(fmt.Sprintf("%v", this.StopGracePeriod), "Duration", "docker_swarmkit_v11.Duration", 1) + `,`,
|
2016-06-17 19:01:18 -07:00
|
|
|
`PullOptions:` + strings.Replace(fmt.Sprintf("%v", this.PullOptions), "ContainerSpec_PullOptions", "ContainerSpec_PullOptions", 1) + `,`,
|
2016-08-09 11:49:39 -07:00
|
|
|
`Groups:` + fmt.Sprintf("%v", this.Groups) + `,`,
|
2016-06-17 19:01:18 -07:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *ContainerSpec_PullOptions) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&ContainerSpec_PullOptions{`,
|
2016-06-14 17:07:14 -07:00
|
|
|
`RegistryAuth:` + fmt.Sprintf("%v", this.RegistryAuth) + `,`,
|
2016-06-07 14:28:28 -07:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *EndpointSpec) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&EndpointSpec{`,
|
|
|
|
`Mode:` + fmt.Sprintf("%v", this.Mode) + `,`,
|
|
|
|
`Ports:` + strings.Replace(fmt.Sprintf("%v", this.Ports), "PortConfig", "PortConfig", 1) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *NetworkSpec) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&NetworkSpec{`,
|
|
|
|
`Annotations:` + strings.Replace(strings.Replace(this.Annotations.String(), "Annotations", "Annotations", 1), `&`, ``, 1) + `,`,
|
|
|
|
`DriverConfig:` + strings.Replace(fmt.Sprintf("%v", this.DriverConfig), "Driver", "Driver", 1) + `,`,
|
|
|
|
`Ipv6Enabled:` + fmt.Sprintf("%v", this.Ipv6Enabled) + `,`,
|
|
|
|
`Internal:` + fmt.Sprintf("%v", this.Internal) + `,`,
|
|
|
|
`IPAM:` + strings.Replace(fmt.Sprintf("%v", this.IPAM), "IPAMOptions", "IPAMOptions", 1) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *ClusterSpec) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&ClusterSpec{`,
|
|
|
|
`Annotations:` + strings.Replace(strings.Replace(this.Annotations.String(), "Annotations", "Annotations", 1), `&`, ``, 1) + `,`,
|
|
|
|
`AcceptancePolicy:` + strings.Replace(strings.Replace(this.AcceptancePolicy.String(), "AcceptancePolicy", "AcceptancePolicy", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Orchestration:` + strings.Replace(strings.Replace(this.Orchestration.String(), "OrchestrationConfig", "OrchestrationConfig", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Raft:` + strings.Replace(strings.Replace(this.Raft.String(), "RaftConfig", "RaftConfig", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Dispatcher:` + strings.Replace(strings.Replace(this.Dispatcher.String(), "DispatcherConfig", "DispatcherConfig", 1), `&`, ``, 1) + `,`,
|
|
|
|
`CAConfig:` + strings.Replace(strings.Replace(this.CAConfig.String(), "CAConfig", "CAConfig", 1), `&`, ``, 1) + `,`,
|
2016-07-20 17:34:33 -07:00
|
|
|
`TaskDefaults:` + strings.Replace(strings.Replace(this.TaskDefaults.String(), "TaskDefaults", "TaskDefaults", 1), `&`, ``, 1) + `,`,
|
2016-06-07 14:28:28 -07:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func valueToStringSpecs(v interface{}) string {
|
|
|
|
rv := reflect.ValueOf(v)
|
|
|
|
if rv.IsNil() {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
pv := reflect.Indirect(rv).Interface()
|
|
|
|
return fmt.Sprintf("*%v", pv)
|
|
|
|
}
|
|
|
|
func (m *NodeSpec) 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 ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
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: NodeSpec: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: NodeSpec: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.Annotations.Unmarshal(data[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType)
|
|
|
|
}
|
|
|
|
m.Role = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
m.Role |= (NodeRole(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 3:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Membership", wireType)
|
|
|
|
}
|
|
|
|
m.Membership = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
m.Membership |= (NodeSpec_Membership(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 4:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Availability", wireType)
|
|
|
|
}
|
|
|
|
m.Availability = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
m.Availability |= (NodeSpec_Availability(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipSpecs(data[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *ServiceSpec) 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 ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
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: ServiceSpec: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: ServiceSpec: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.Annotations.Unmarshal(data[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Task", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.Task.Unmarshal(data[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Replicated", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
v := &ReplicatedService{}
|
|
|
|
if err := v.Unmarshal(data[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
m.Mode = &ServiceSpec_Replicated{v}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 4:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Global", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
v := &GlobalService{}
|
|
|
|
if err := v.Unmarshal(data[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
m.Mode = &ServiceSpec_Global{v}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 6:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Update", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.Update == nil {
|
|
|
|
m.Update = &UpdateConfig{}
|
|
|
|
}
|
|
|
|
if err := m.Update.Unmarshal(data[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 7:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Networks", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Networks = append(m.Networks, &ServiceSpec_NetworkAttachmentConfig{})
|
|
|
|
if err := m.Networks[len(m.Networks)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 8:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Endpoint", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.Endpoint == nil {
|
|
|
|
m.Endpoint = &EndpointSpec{}
|
|
|
|
}
|
|
|
|
if err := m.Endpoint.Unmarshal(data[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipSpecs(data[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *ServiceSpec_NetworkAttachmentConfig) 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 ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
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: NetworkAttachmentConfig: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: NetworkAttachmentConfig: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Target = string(data[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Aliases", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Aliases = append(m.Aliases, string(data[iNdEx:postIndex]))
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipSpecs(data[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *ReplicatedService) 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 ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
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: ReplicatedService: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: ReplicatedService: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType)
|
|
|
|
}
|
|
|
|
m.Replicas = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
m.Replicas |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipSpecs(data[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *GlobalService) 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 ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
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: GlobalService: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: GlobalService: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipSpecs(data[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *TaskSpec) 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 ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
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: TaskSpec: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: TaskSpec: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Container", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
v := &ContainerSpec{}
|
|
|
|
if err := v.Unmarshal(data[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
m.Runtime = &TaskSpec_Container{v}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.Resources == nil {
|
|
|
|
m.Resources = &ResourceRequirements{}
|
|
|
|
}
|
|
|
|
if err := m.Resources.Unmarshal(data[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 4:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Restart", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.Restart == nil {
|
|
|
|
m.Restart = &RestartPolicy{}
|
|
|
|
}
|
|
|
|
if err := m.Restart.Unmarshal(data[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 5:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Placement", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.Placement == nil {
|
|
|
|
m.Placement = &Placement{}
|
|
|
|
}
|
|
|
|
if err := m.Placement.Unmarshal(data[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
2016-07-08 11:41:07 -07:00
|
|
|
case 6:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field LogDriver", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.LogDriver == nil {
|
|
|
|
m.LogDriver = &Driver{}
|
|
|
|
}
|
|
|
|
if err := m.LogDriver.Unmarshal(data[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
2016-06-07 14:28:28 -07:00
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipSpecs(data[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *ContainerSpec) 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 ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
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: ContainerSpec: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: ContainerSpec: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Image = string(data[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
var keykey uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
keykey |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var stringLenmapkey uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
postStringIndexmapkey := iNdEx + intStringLenmapkey
|
|
|
|
if postStringIndexmapkey > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
mapkey := string(data[iNdEx:postStringIndexmapkey])
|
|
|
|
iNdEx = postStringIndexmapkey
|
|
|
|
var valuekey uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
valuekey |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var stringLenmapvalue uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
postStringIndexmapvalue := iNdEx + intStringLenmapvalue
|
|
|
|
if postStringIndexmapvalue > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
mapvalue := string(data[iNdEx:postStringIndexmapvalue])
|
|
|
|
iNdEx = postStringIndexmapvalue
|
|
|
|
if m.Labels == nil {
|
|
|
|
m.Labels = make(map[string]string)
|
|
|
|
}
|
|
|
|
m.Labels[mapkey] = mapvalue
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Command", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Command = append(m.Command, string(data[iNdEx:postIndex]))
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 4:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Args", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Args = append(m.Args, string(data[iNdEx:postIndex]))
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 5:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Env", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Env = append(m.Env, string(data[iNdEx:postIndex]))
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 6:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Dir", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Dir = string(data[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 7:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field User", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.User = string(data[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 8:
|
|
|
|
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 ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
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 9:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field StopGracePeriod", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.StopGracePeriod == nil {
|
|
|
|
m.StopGracePeriod = &docker_swarmkit_v11.Duration{}
|
|
|
|
}
|
|
|
|
if err := m.StopGracePeriod.Unmarshal(data[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
2016-06-17 19:01:18 -07:00
|
|
|
case 10:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field PullOptions", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.PullOptions == nil {
|
|
|
|
m.PullOptions = &ContainerSpec_PullOptions{}
|
|
|
|
}
|
|
|
|
if err := m.PullOptions.Unmarshal(data[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
2016-08-09 11:49:39 -07:00
|
|
|
case 11:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Groups = append(m.Groups, string(data[iNdEx:postIndex]))
|
|
|
|
iNdEx = postIndex
|
2016-06-17 19:01:18 -07:00
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipSpecs(data[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *ContainerSpec_PullOptions) 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 ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
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: PullOptions: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: PullOptions: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
2016-06-14 17:07:14 -07:00
|
|
|
case 64:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field RegistryAuth", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.RegistryAuth = string(data[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
2016-06-07 14:28:28 -07:00
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipSpecs(data[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *EndpointSpec) 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 ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
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: EndpointSpec: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: EndpointSpec: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
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 ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
m.Mode |= (EndpointSpec_ResolutionMode(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Ports", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Ports = append(m.Ports, &PortConfig{})
|
|
|
|
if err := m.Ports[len(m.Ports)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipSpecs(data[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *NetworkSpec) 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 ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
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: NetworkSpec: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: NetworkSpec: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.Annotations.Unmarshal(data[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field DriverConfig", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.DriverConfig == nil {
|
|
|
|
m.DriverConfig = &Driver{}
|
|
|
|
}
|
|
|
|
if err := m.DriverConfig.Unmarshal(data[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Ipv6Enabled", wireType)
|
|
|
|
}
|
|
|
|
var v int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
v |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m.Ipv6Enabled = bool(v != 0)
|
|
|
|
case 4:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Internal", wireType)
|
|
|
|
}
|
|
|
|
var v int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
v |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m.Internal = bool(v != 0)
|
|
|
|
case 5:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field IPAM", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.IPAM == nil {
|
|
|
|
m.IPAM = &IPAMOptions{}
|
|
|
|
}
|
|
|
|
if err := m.IPAM.Unmarshal(data[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipSpecs(data[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *ClusterSpec) 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 ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
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: ClusterSpec: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: ClusterSpec: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.Annotations.Unmarshal(data[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AcceptancePolicy", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.AcceptancePolicy.Unmarshal(data[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Orchestration", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.Orchestration.Unmarshal(data[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 4:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Raft", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.Raft.Unmarshal(data[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 5:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Dispatcher", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.Dispatcher.Unmarshal(data[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 6:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field CAConfig", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.CAConfig.Unmarshal(data[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
2016-07-08 11:41:07 -07:00
|
|
|
case 7:
|
|
|
|
if wireType != 2 {
|
2016-07-20 17:34:33 -07:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field TaskDefaults", wireType)
|
2016-07-08 11:41:07 -07:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2016-07-20 17:34:33 -07:00
|
|
|
if err := m.TaskDefaults.Unmarshal(data[iNdEx:postIndex]); err != nil {
|
2016-07-08 11:41:07 -07:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
2016-06-07 14:28:28 -07:00
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipSpecs(data[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func skipSpecs(data []byte) (n int, err error) {
|
|
|
|
l := len(data)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return 0, ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
switch wireType {
|
|
|
|
case 0:
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return 0, ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx++
|
|
|
|
if data[iNdEx-1] < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return iNdEx, nil
|
|
|
|
case 1:
|
|
|
|
iNdEx += 8
|
|
|
|
return iNdEx, nil
|
|
|
|
case 2:
|
|
|
|
var length int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return 0, ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
length |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
iNdEx += length
|
|
|
|
if length < 0 {
|
|
|
|
return 0, ErrInvalidLengthSpecs
|
|
|
|
}
|
|
|
|
return iNdEx, nil
|
|
|
|
case 3:
|
|
|
|
for {
|
|
|
|
var innerWire uint64
|
|
|
|
var start int = iNdEx
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return 0, ErrIntOverflowSpecs
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
innerWire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
innerWireType := int(innerWire & 0x7)
|
|
|
|
if innerWireType == 4 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
next, err := skipSpecs(data[start:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
iNdEx = start + next
|
|
|
|
}
|
|
|
|
return iNdEx, nil
|
|
|
|
case 4:
|
|
|
|
return iNdEx, nil
|
|
|
|
case 5:
|
|
|
|
iNdEx += 4
|
|
|
|
return iNdEx, nil
|
|
|
|
default:
|
|
|
|
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
panic("unreachable")
|
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
|
|
|
ErrInvalidLengthSpecs = fmt.Errorf("proto: negative length found during unmarshaling")
|
|
|
|
ErrIntOverflowSpecs = fmt.Errorf("proto: integer overflow")
|
|
|
|
)
|
|
|
|
|
|
|
|
var fileDescriptorSpecs = []byte{
|
2016-08-17 22:43:33 -07:00
|
|
|
// 1361 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xac, 0x57, 0x4d, 0x6f, 0x1b, 0xb7,
|
|
|
|
0x16, 0xd5, 0xd8, 0x63, 0x59, 0xba, 0x23, 0x27, 0x0a, 0x91, 0x97, 0x4c, 0x94, 0x3c, 0x59, 0xd1,
|
|
|
|
0xcb, 0x4b, 0xdd, 0x02, 0x95, 0x5b, 0xb5, 0xc8, 0x47, 0xd3, 0xa2, 0x95, 0x25, 0xd5, 0x71, 0x53,
|
|
|
|
0x3b, 0x02, 0x9d, 0x04, 0xe8, 0x4a, 0xa0, 0x67, 0x68, 0x99, 0xf0, 0x68, 0x38, 0xe5, 0x70, 0x14,
|
|
|
|
0x78, 0xd7, 0x65, 0xe0, 0x45, 0x77, 0x5d, 0x7a, 0x55, 0xa0, 0xcb, 0x2e, 0xfb, 0x1b, 0xb2, 0xec,
|
|
|
|
0xa6, 0x40, 0x57, 0x41, 0xe3, 0x5f, 0x50, 0xa0, 0x7f, 0xa0, 0x20, 0x87, 0xfa, 0x6a, 0xc6, 0x49,
|
|
|
|
0x17, 0xd9, 0x91, 0x57, 0xe7, 0x1c, 0xde, 0xb9, 0x3c, 0xbc, 0xa4, 0xc0, 0x89, 0x23, 0xea, 0xc5,
|
|
|
|
0x8d, 0x48, 0x70, 0xc9, 0x11, 0xf2, 0xb9, 0x77, 0x48, 0x45, 0x23, 0x7e, 0x4a, 0xc4, 0xf0, 0x90,
|
|
|
|
0xc9, 0xc6, 0xe8, 0xc3, 0x8a, 0x23, 0x8f, 0x22, 0x6a, 0x00, 0x95, 0x8b, 0x03, 0x3e, 0xe0, 0x7a,
|
|
|
|
0xb8, 0xae, 0x46, 0x26, 0x7a, 0xd9, 0x4f, 0x04, 0x91, 0x8c, 0x87, 0xeb, 0xe3, 0x41, 0xfa, 0x43,
|
|
|
|
0xfd, 0x7b, 0x1b, 0x0a, 0x3b, 0xdc, 0xa7, 0xbb, 0x11, 0xf5, 0xd0, 0x26, 0x38, 0x24, 0x0c, 0xb9,
|
|
|
|
0xd4, 0x80, 0xd8, 0xb5, 0x6a, 0xd6, 0x9a, 0xd3, 0x5c, 0x6d, 0xbc, 0xba, 0x64, 0xa3, 0x35, 0x85,
|
|
|
|
0x6d, 0xd8, 0xcf, 0x5f, 0xac, 0xe6, 0xf0, 0x2c, 0x13, 0x7d, 0x00, 0xb6, 0xe0, 0x01, 0x75, 0x17,
|
|
|
|
0x6a, 0xd6, 0xda, 0xb9, 0xe6, 0xb5, 0x2c, 0x05, 0xb5, 0x28, 0xe6, 0x01, 0xc5, 0x1a, 0x89, 0x36,
|
|
|
|
0x01, 0x86, 0x74, 0xb8, 0x47, 0x45, 0x7c, 0xc0, 0x22, 0x77, 0x51, 0xf3, 0xde, 0x39, 0x8b, 0xa7,
|
|
|
|
0x92, 0x6d, 0x6c, 0x4f, 0xe0, 0x78, 0x86, 0x8a, 0xb6, 0xa1, 0x44, 0x46, 0x84, 0x05, 0x64, 0x8f,
|
|
|
|
0x05, 0x4c, 0x1e, 0xb9, 0xb6, 0x96, 0x7a, 0xf7, 0xb5, 0x52, 0xad, 0x19, 0x02, 0x9e, 0xa3, 0xd7,
|
|
|
|
0x7d, 0x80, 0xe9, 0x42, 0xe8, 0x26, 0x2c, 0xf7, 0xba, 0x3b, 0x9d, 0xad, 0x9d, 0xcd, 0x72, 0xae,
|
|
|
|
0x72, 0xe5, 0xf8, 0xa4, 0xf6, 0x1f, 0xa5, 0x31, 0x05, 0xf4, 0x68, 0xe8, 0xb3, 0x70, 0x80, 0xd6,
|
|
|
|
0xa0, 0xd0, 0x6a, 0xb7, 0xbb, 0xbd, 0x47, 0xdd, 0x4e, 0xd9, 0xaa, 0x54, 0x8e, 0x4f, 0x6a, 0x97,
|
|
|
|
0xe6, 0x81, 0x2d, 0xcf, 0xa3, 0x91, 0xa4, 0x7e, 0xc5, 0x7e, 0xf6, 0x63, 0x35, 0x57, 0x7f, 0x66,
|
|
|
|
0x41, 0x69, 0x36, 0x09, 0x74, 0x13, 0xf2, 0xad, 0xf6, 0xa3, 0xad, 0x27, 0xdd, 0x72, 0x6e, 0x4a,
|
|
|
|
0x9f, 0x45, 0xb4, 0x3c, 0xc9, 0x46, 0x14, 0xdd, 0x80, 0xa5, 0x5e, 0xeb, 0xf1, 0x6e, 0xb7, 0x6c,
|
|
|
|
0x4d, 0xd3, 0x99, 0x85, 0xf5, 0x48, 0x12, 0x6b, 0x54, 0x07, 0xb7, 0xb6, 0x76, 0xca, 0x0b, 0xd9,
|
|
|
|
0xa8, 0x8e, 0x20, 0x2c, 0x34, 0xa9, 0xfc, 0x62, 0x83, 0xb3, 0x4b, 0xc5, 0x88, 0x79, 0x6f, 0xd9,
|
|
|
|
0x13, 0xb7, 0xc0, 0x96, 0x24, 0x3e, 0xd4, 0x9e, 0x70, 0xb2, 0x3d, 0xf1, 0x88, 0xc4, 0x87, 0x6a,
|
|
|
|
0x51, 0x43, 0xd7, 0x78, 0xe5, 0x0c, 0x41, 0xa3, 0x80, 0x79, 0x44, 0x52, 0x5f, 0x3b, 0xc3, 0x69,
|
|
|
|
0xfe, 0x3f, 0x8b, 0x8d, 0x27, 0x28, 0x93, 0xff, 0xfd, 0x1c, 0x9e, 0xa1, 0xa2, 0x7b, 0x90, 0x1f,
|
|
|
|
0x04, 0x7c, 0x8f, 0x04, 0xda, 0x13, 0x4e, 0xf3, 0x7a, 0x96, 0xc8, 0xa6, 0x46, 0x4c, 0x05, 0x0c,
|
|
|
|
0x05, 0xdd, 0x81, 0x7c, 0x12, 0xf9, 0x44, 0x52, 0x37, 0xaf, 0xc9, 0xb5, 0x2c, 0xf2, 0x63, 0x8d,
|
|
|
|
0x68, 0xf3, 0x70, 0x9f, 0x0d, 0xb0, 0xc1, 0xa3, 0x5d, 0x28, 0x84, 0x54, 0x3e, 0xe5, 0xe2, 0x30,
|
|
|
|
0x76, 0x97, 0x6b, 0x8b, 0x6b, 0x4e, 0xf3, 0x76, 0x16, 0x77, 0xa6, 0xe6, 0x8d, 0x9d, 0x14, 0xdf,
|
|
|
|
0x92, 0x92, 0x78, 0x07, 0x43, 0x1a, 0x4a, 0x23, 0x39, 0x11, 0x42, 0x9f, 0x42, 0x81, 0x86, 0x7e,
|
|
|
|
0xc4, 0x59, 0x28, 0xdd, 0xc2, 0xd9, 0x09, 0x75, 0x0d, 0x46, 0xa9, 0xe2, 0x09, 0xa3, 0xf2, 0x00,
|
|
|
|
0x2e, 0x9f, 0xb1, 0x04, 0xba, 0x04, 0x79, 0x49, 0xc4, 0x80, 0x4a, 0xbd, 0xd3, 0x45, 0x6c, 0x66,
|
|
|
|
0xc8, 0x85, 0x65, 0x12, 0x30, 0x12, 0xd3, 0xd8, 0x5d, 0xa8, 0x2d, 0xae, 0x15, 0xf1, 0x78, 0xba,
|
|
|
|
0x91, 0x07, 0x7b, 0xc8, 0x7d, 0x5a, 0x5f, 0x87, 0x0b, 0xaf, 0xec, 0x00, 0xaa, 0x40, 0xc1, 0xec,
|
|
|
|
0x40, 0x6a, 0x1d, 0x1b, 0x4f, 0xe6, 0xf5, 0xf3, 0xb0, 0x32, 0x57, 0xed, 0xfa, 0x6f, 0x0b, 0x50,
|
|
|
|
0x18, 0x5b, 0x00, 0xb5, 0xa0, 0xe8, 0xf1, 0x50, 0x12, 0x16, 0x52, 0x61, 0x5c, 0x97, 0xb9, 0x61,
|
|
|
|
0xed, 0x31, 0x48, 0xb1, 0xee, 0xe7, 0xf0, 0x94, 0x85, 0xbe, 0x84, 0xa2, 0xa0, 0x31, 0x4f, 0x84,
|
|
|
|
0xa7, 0xb3, 0x56, 0x12, 0x6b, 0xd9, 0xc6, 0x49, 0x41, 0x98, 0x7e, 0x9b, 0x30, 0x41, 0x55, 0x35,
|
|
|
|
0x62, 0x3c, 0xa5, 0xa2, 0x7b, 0xb0, 0x2c, 0x68, 0x2c, 0x89, 0x90, 0xaf, 0x73, 0x0e, 0x4e, 0x21,
|
|
|
|
0x3d, 0x1e, 0x30, 0xef, 0x08, 0x8f, 0x19, 0xe8, 0x1e, 0x14, 0xa3, 0x80, 0x78, 0x5a, 0xd5, 0x5d,
|
|
|
|
0xd2, 0xf4, 0xff, 0x66, 0xd1, 0x7b, 0x63, 0x10, 0x9e, 0xe2, 0xd1, 0x5d, 0x80, 0x80, 0x0f, 0xfa,
|
|
|
|
0xbe, 0x60, 0x23, 0x2a, 0x8c, 0xf3, 0x2a, 0x59, 0xec, 0x8e, 0x46, 0xe0, 0x62, 0xc0, 0x07, 0xe9,
|
|
|
|
0x70, 0xa3, 0x08, 0xcb, 0x22, 0x09, 0x25, 0x1b, 0xd2, 0xfa, 0xcf, 0x36, 0xac, 0xcc, 0x95, 0x09,
|
|
|
|
0x5d, 0x84, 0x25, 0x36, 0x24, 0x03, 0x6a, 0x36, 0x39, 0x9d, 0xa0, 0x2e, 0xe4, 0x03, 0xb2, 0x47,
|
|
|
|
0x83, 0x74, 0x8b, 0x9d, 0xe6, 0xfb, 0x6f, 0xac, 0x77, 0xe3, 0x6b, 0x8d, 0xef, 0x86, 0x52, 0x1c,
|
|
|
|
0x61, 0x43, 0x56, 0x56, 0xf1, 0xf8, 0x70, 0x48, 0x42, 0x75, 0x5a, 0xb5, 0x55, 0xcc, 0x14, 0x21,
|
|
|
|
0xb0, 0x89, 0x18, 0xc4, 0xae, 0xad, 0xc3, 0x7a, 0x8c, 0xca, 0xb0, 0x48, 0xc3, 0x91, 0xbb, 0xa4,
|
|
|
|
0x43, 0x6a, 0xa8, 0x22, 0x3e, 0x4b, 0xbf, 0xb6, 0x88, 0xd5, 0x50, 0xf1, 0x92, 0x98, 0x0a, 0x77,
|
|
|
|
0x59, 0x87, 0xf4, 0x18, 0xdd, 0x86, 0xfc, 0x90, 0x27, 0xa1, 0x8c, 0xdd, 0x82, 0x4e, 0xf6, 0x4a,
|
|
|
|
0x56, 0xb2, 0xdb, 0x0a, 0x61, 0xba, 0x89, 0x81, 0xa3, 0xfb, 0x70, 0x21, 0x96, 0x3c, 0xea, 0x0f,
|
|
|
|
0x04, 0xf1, 0x68, 0x3f, 0xa2, 0x82, 0x71, 0xdf, 0x2d, 0x9e, 0xdd, 0x94, 0x3a, 0xe6, 0xc2, 0xc4,
|
|
|
|
0xe7, 0x15, 0x6d, 0x53, 0xb1, 0x7a, 0x9a, 0x84, 0x7a, 0x50, 0x8a, 0x92, 0x20, 0xe8, 0xf3, 0x28,
|
|
|
|
0xed, 0x8d, 0xa0, 0x45, 0xfe, 0x45, 0xd5, 0x7a, 0x49, 0x10, 0x3c, 0x4c, 0x49, 0xd8, 0x89, 0xa6,
|
|
|
|
0x13, 0x75, 0xfa, 0x06, 0x82, 0x27, 0x51, 0xec, 0x3a, 0xba, 0x1e, 0x66, 0x56, 0xb9, 0x0b, 0xce,
|
|
|
|
0x4c, 0xa5, 0x55, 0x85, 0x0e, 0xe9, 0x91, 0xd9, 0x3c, 0x35, 0x54, 0x1b, 0x3a, 0x22, 0x41, 0x92,
|
|
|
|
0xde, 0xb8, 0x45, 0x9c, 0x4e, 0x3e, 0x59, 0xb8, 0x63, 0x55, 0x9a, 0xe0, 0xcc, 0x2c, 0x87, 0xfe,
|
|
|
|
0x07, 0x2b, 0x82, 0x0e, 0x58, 0x2c, 0xc5, 0x51, 0x9f, 0x24, 0xf2, 0xc0, 0xfd, 0x42, 0x13, 0x4a,
|
|
|
|
0xe3, 0x60, 0x2b, 0x91, 0x07, 0xf5, 0xbf, 0x2c, 0x28, 0xcd, 0xb6, 0x0e, 0xd4, 0x4e, 0xcf, 0xb8,
|
|
|
|
0x5e, 0xf1, 0x5c, 0x73, 0xfd, 0x4d, 0xad, 0x46, 0x9f, 0xa8, 0x20, 0x51, 0x2b, 0x6e, 0xab, 0x6b,
|
|
|
|
0x5e, 0x93, 0xd1, 0xc7, 0xb0, 0x14, 0x71, 0x21, 0xc7, 0xee, 0xaa, 0x66, 0x9e, 0x02, 0x2e, 0xc6,
|
|
|
|
0xcd, 0x2e, 0x05, 0xd7, 0x0f, 0xe0, 0xdc, 0xbc, 0x1a, 0xba, 0x01, 0x8b, 0x4f, 0xb6, 0x7a, 0xe5,
|
|
|
|
0x5c, 0xe5, 0xea, 0xf1, 0x49, 0xed, 0xf2, 0xfc, 0x8f, 0x4f, 0x98, 0x90, 0x09, 0x09, 0xb6, 0x7a,
|
|
|
|
0xe8, 0x3d, 0x58, 0xea, 0xec, 0xec, 0x62, 0x5c, 0xb6, 0x2a, 0xab, 0xc7, 0x27, 0xb5, 0xab, 0xf3,
|
|
|
|
0x38, 0xf5, 0x13, 0x4f, 0x42, 0x1f, 0xf3, 0xbd, 0xc9, 0xcd, 0xf7, 0xc3, 0x02, 0x38, 0xa6, 0x2d,
|
|
|
|
0xbe, 0xdd, 0x9b, 0xef, 0x73, 0x58, 0x49, 0x4f, 0x70, 0xdf, 0xd3, 0x9f, 0x66, 0x7a, 0xd1, 0xeb,
|
|
|
|
0x0e, 0x72, 0x29, 0x25, 0x98, 0xa6, 0x7c, 0x1d, 0x4a, 0x2c, 0x1a, 0xdd, 0xea, 0xd3, 0x90, 0xec,
|
|
|
|
0x05, 0xe6, 0x12, 0x2c, 0x60, 0x47, 0xc5, 0xba, 0x69, 0x48, 0x35, 0x5a, 0x16, 0x4a, 0x2a, 0x42,
|
|
|
|
0x73, 0xbd, 0x15, 0xf0, 0x64, 0x8e, 0x3e, 0x03, 0x9b, 0x45, 0x64, 0x68, 0xba, 0x4f, 0xe6, 0x17,
|
|
|
|
0x6c, 0xf5, 0x5a, 0xdb, 0xc6, 0x22, 0x1b, 0x85, 0xd3, 0x17, 0xab, 0xb6, 0x0a, 0x60, 0x4d, 0xab,
|
|
|
|
0xff, 0x64, 0x83, 0xd3, 0x0e, 0x92, 0x58, 0x9a, 0xe6, 0xf1, 0xd6, 0xea, 0xf2, 0x0d, 0x5c, 0x20,
|
|
|
|
0xfa, 0x1d, 0x44, 0x42, 0x75, 0x12, 0x75, 0xe3, 0x34, 0xb5, 0xb9, 0x91, 0x29, 0x37, 0x01, 0xa7,
|
|
|
|
0x4d, 0x76, 0x23, 0xaf, 0x34, 0x5d, 0x0b, 0x97, 0xc9, 0x3f, 0x7e, 0x41, 0xbb, 0xb0, 0xc2, 0x85,
|
|
|
|
0x77, 0x40, 0x63, 0x99, 0x1e, 0x5e, 0xf3, 0x6e, 0xc8, 0x7c, 0x51, 0x3e, 0x9c, 0x05, 0xa6, 0x15,
|
|
|
|
0x37, 0xd9, 0xce, 0x6b, 0xa0, 0x3b, 0x60, 0x0b, 0xb2, 0x3f, 0xbe, 0x04, 0x32, 0xfd, 0x8b, 0xc9,
|
|
|
|
0xbe, 0x9c, 0x93, 0xd0, 0x0c, 0xf4, 0x15, 0x80, 0xcf, 0xe2, 0x88, 0x48, 0xef, 0x80, 0x0a, 0xb3,
|
|
|
|
0x0f, 0x99, 0x9f, 0xd8, 0x99, 0xa0, 0xe6, 0x54, 0x66, 0xd8, 0xe8, 0x01, 0x14, 0x3d, 0x32, 0x76,
|
|
|
|
0x52, 0xfe, 0xec, 0xbe, 0xd5, 0x6e, 0x19, 0x89, 0xb2, 0x92, 0x38, 0x7d, 0xb1, 0x5a, 0x18, 0x47,
|
|
|
|
0x70, 0xc1, 0x23, 0xc6, 0x59, 0x0f, 0x60, 0x45, 0x3d, 0xb2, 0xfa, 0x3e, 0xdd, 0x27, 0x49, 0x20,
|
|
|
|
0x63, 0xdd, 0x62, 0xcf, 0x78, 0x4c, 0xa8, 0xab, 0xb9, 0x63, 0x70, 0x26, 0xaf, 0x92, 0x9c, 0x8d,
|
|
|
|
0x5d, 0x7b, 0xfe, 0xb2, 0x9a, 0xfb, 0xfd, 0x65, 0x35, 0xf7, 0xe7, 0xcb, 0xaa, 0xf5, 0xdd, 0x69,
|
|
|
|
0xd5, 0x7a, 0x7e, 0x5a, 0xb5, 0x7e, 0x3d, 0xad, 0x5a, 0x7f, 0x9c, 0x56, 0xad, 0xbd, 0xbc, 0xfe,
|
|
|
|
0xc3, 0xf1, 0xd1, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xa4, 0x46, 0x7c, 0xf6, 0xcf, 0x0c, 0x00,
|
|
|
|
0x00,
|
2016-06-07 14:28:28 -07:00
|
|
|
}
|