mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
update grpc
Upgrade grpc to v1.27.1 and protobuf plugins to v1.3.4.
This commit is contained in:
@@ -3,9 +3,11 @@
|
||||
|
||||
package proto
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
math "math"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
@@ -16,7 +18,7 @@ var _ = math.Inf
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
||||
|
||||
// Attribute is used to describe the value of an attribute, optionally
|
||||
// specifying units
|
||||
@@ -38,16 +40,17 @@ func (m *Attribute) Reset() { *m = Attribute{} }
|
||||
func (m *Attribute) String() string { return proto.CompactTextString(m) }
|
||||
func (*Attribute) ProtoMessage() {}
|
||||
func (*Attribute) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_attribute_aa187fb710a98f5a, []int{0}
|
||||
return fileDescriptor_5b30c64b64565493, []int{0}
|
||||
}
|
||||
|
||||
func (m *Attribute) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Attribute.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Attribute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Attribute.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Attribute) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Attribute.Merge(dst, src)
|
||||
func (m *Attribute) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Attribute.Merge(m, src)
|
||||
}
|
||||
func (m *Attribute) XXX_Size() int {
|
||||
return xxx_messageInfo_Attribute.Size(m)
|
||||
@@ -128,9 +131,9 @@ func (m *Attribute) GetUnit() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
// XXX_OneofFuncs is for the internal use of the proto package.
|
||||
func (*Attribute) 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 _Attribute_OneofMarshaler, _Attribute_OneofUnmarshaler, _Attribute_OneofSizer, []interface{}{
|
||||
// XXX_OneofWrappers is for the internal use of the proto package.
|
||||
func (*Attribute) XXX_OneofWrappers() []interface{} {
|
||||
return []interface{}{
|
||||
(*Attribute_FloatVal)(nil),
|
||||
(*Attribute_IntVal)(nil),
|
||||
(*Attribute_StringVal)(nil),
|
||||
@@ -138,102 +141,15 @@ func (*Attribute) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) err
|
||||
}
|
||||
}
|
||||
|
||||
func _Attribute_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
||||
m := msg.(*Attribute)
|
||||
// value
|
||||
switch x := m.Value.(type) {
|
||||
case *Attribute_FloatVal:
|
||||
b.EncodeVarint(1<<3 | proto.WireFixed64)
|
||||
b.EncodeFixed64(math.Float64bits(x.FloatVal))
|
||||
case *Attribute_IntVal:
|
||||
b.EncodeVarint(2<<3 | proto.WireVarint)
|
||||
b.EncodeVarint(uint64(x.IntVal))
|
||||
case *Attribute_StringVal:
|
||||
b.EncodeVarint(3<<3 | proto.WireBytes)
|
||||
b.EncodeStringBytes(x.StringVal)
|
||||
case *Attribute_BoolVal:
|
||||
t := uint64(0)
|
||||
if x.BoolVal {
|
||||
t = 1
|
||||
}
|
||||
b.EncodeVarint(4<<3 | proto.WireVarint)
|
||||
b.EncodeVarint(t)
|
||||
case nil:
|
||||
default:
|
||||
return fmt.Errorf("Attribute.Value has unexpected type %T", x)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func _Attribute_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
|
||||
m := msg.(*Attribute)
|
||||
switch tag {
|
||||
case 1: // value.float_val
|
||||
if wire != proto.WireFixed64 {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeFixed64()
|
||||
m.Value = &Attribute_FloatVal{math.Float64frombits(x)}
|
||||
return true, err
|
||||
case 2: // value.int_val
|
||||
if wire != proto.WireVarint {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeVarint()
|
||||
m.Value = &Attribute_IntVal{int64(x)}
|
||||
return true, err
|
||||
case 3: // value.string_val
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeStringBytes()
|
||||
m.Value = &Attribute_StringVal{x}
|
||||
return true, err
|
||||
case 4: // value.bool_val
|
||||
if wire != proto.WireVarint {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeVarint()
|
||||
m.Value = &Attribute_BoolVal{x != 0}
|
||||
return true, err
|
||||
default:
|
||||
return false, nil
|
||||
}
|
||||
}
|
||||
|
||||
func _Attribute_OneofSizer(msg proto.Message) (n int) {
|
||||
m := msg.(*Attribute)
|
||||
// value
|
||||
switch x := m.Value.(type) {
|
||||
case *Attribute_FloatVal:
|
||||
n += 1 // tag and wire
|
||||
n += 8
|
||||
case *Attribute_IntVal:
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(x.IntVal))
|
||||
case *Attribute_StringVal:
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(len(x.StringVal)))
|
||||
n += len(x.StringVal)
|
||||
case *Attribute_BoolVal:
|
||||
n += 1 // tag and wire
|
||||
n += 1
|
||||
case nil:
|
||||
default:
|
||||
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Attribute)(nil), "hashicorp.nomad.plugins.shared.structs.Attribute")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("plugins/shared/structs/proto/attribute.proto", fileDescriptor_attribute_aa187fb710a98f5a)
|
||||
proto.RegisterFile("plugins/shared/structs/proto/attribute.proto", fileDescriptor_5b30c64b64565493)
|
||||
}
|
||||
|
||||
var fileDescriptor_attribute_aa187fb710a98f5a = []byte{
|
||||
var fileDescriptor_5b30c64b64565493 = []byte{
|
||||
// 218 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x34, 0x8f, 0xb1, 0x4e, 0xc3, 0x30,
|
||||
0x10, 0x40, 0x63, 0xda, 0x34, 0xc9, 0x8d, 0x99, 0x8a, 0x10, 0x22, 0x62, 0x40, 0x19, 0x90, 0x33,
|
||||
|
||||
@@ -3,9 +3,11 @@
|
||||
|
||||
package proto
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
math "math"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
@@ -16,7 +18,7 @@ var _ = math.Inf
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
||||
|
||||
// RecoverableError is used with a grpc Status to indicate if the error is one
|
||||
// which is recoverable and can be reattempted by the client.
|
||||
@@ -31,16 +33,17 @@ func (m *RecoverableError) Reset() { *m = RecoverableError{} }
|
||||
func (m *RecoverableError) String() string { return proto.CompactTextString(m) }
|
||||
func (*RecoverableError) ProtoMessage() {}
|
||||
func (*RecoverableError) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_recoverable_error_f746254fd69675b0, []int{0}
|
||||
return fileDescriptor_82d0e8d3a57dbb3c, []int{0}
|
||||
}
|
||||
|
||||
func (m *RecoverableError) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_RecoverableError.Unmarshal(m, b)
|
||||
}
|
||||
func (m *RecoverableError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_RecoverableError.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *RecoverableError) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_RecoverableError.Merge(dst, src)
|
||||
func (m *RecoverableError) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_RecoverableError.Merge(m, src)
|
||||
}
|
||||
func (m *RecoverableError) XXX_Size() int {
|
||||
return xxx_messageInfo_RecoverableError.Size(m)
|
||||
@@ -63,10 +66,10 @@ func init() {
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("plugins/shared/structs/proto/recoverable_error.proto", fileDescriptor_recoverable_error_f746254fd69675b0)
|
||||
proto.RegisterFile("plugins/shared/structs/proto/recoverable_error.proto", fileDescriptor_82d0e8d3a57dbb3c)
|
||||
}
|
||||
|
||||
var fileDescriptor_recoverable_error_f746254fd69675b0 = []byte{
|
||||
var fileDescriptor_82d0e8d3a57dbb3c = []byte{
|
||||
// 138 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x32, 0x29, 0xc8, 0x29, 0x4d,
|
||||
0xcf, 0xcc, 0x2b, 0xd6, 0x2f, 0xce, 0x48, 0x2c, 0x4a, 0x4d, 0xd1, 0x2f, 0x2e, 0x29, 0x2a, 0x4d,
|
||||
|
||||
@@ -3,10 +3,12 @@
|
||||
|
||||
package proto
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import wrappers "github.com/golang/protobuf/ptypes/wrappers"
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
wrappers "github.com/golang/protobuf/ptypes/wrappers"
|
||||
math "math"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
@@ -17,7 +19,7 @@ var _ = math.Inf
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
||||
|
||||
// StatObject is a collection of statistics either exposed at the top
|
||||
// level or via nested StatObjects.
|
||||
@@ -35,16 +37,17 @@ func (m *StatObject) Reset() { *m = StatObject{} }
|
||||
func (m *StatObject) String() string { return proto.CompactTextString(m) }
|
||||
func (*StatObject) ProtoMessage() {}
|
||||
func (*StatObject) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_stats_73a5e405c9cf442c, []int{0}
|
||||
return fileDescriptor_cbe97f35e2eb2516, []int{0}
|
||||
}
|
||||
|
||||
func (m *StatObject) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_StatObject.Unmarshal(m, b)
|
||||
}
|
||||
func (m *StatObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_StatObject.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *StatObject) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_StatObject.Merge(dst, src)
|
||||
func (m *StatObject) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_StatObject.Merge(m, src)
|
||||
}
|
||||
func (m *StatObject) XXX_Size() int {
|
||||
return xxx_messageInfo_StatObject.Size(m)
|
||||
@@ -100,16 +103,17 @@ func (m *StatValue) Reset() { *m = StatValue{} }
|
||||
func (m *StatValue) String() string { return proto.CompactTextString(m) }
|
||||
func (*StatValue) ProtoMessage() {}
|
||||
func (*StatValue) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_stats_73a5e405c9cf442c, []int{1}
|
||||
return fileDescriptor_cbe97f35e2eb2516, []int{1}
|
||||
}
|
||||
|
||||
func (m *StatValue) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_StatValue.Unmarshal(m, b)
|
||||
}
|
||||
func (m *StatValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_StatValue.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *StatValue) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_StatValue.Merge(dst, src)
|
||||
func (m *StatValue) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_StatValue.Merge(m, src)
|
||||
}
|
||||
func (m *StatValue) XXX_Size() int {
|
||||
return xxx_messageInfo_StatValue.Size(m)
|
||||
@@ -184,10 +188,10 @@ func init() {
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("plugins/shared/structs/proto/stats.proto", fileDescriptor_stats_73a5e405c9cf442c)
|
||||
proto.RegisterFile("plugins/shared/structs/proto/stats.proto", fileDescriptor_cbe97f35e2eb2516)
|
||||
}
|
||||
|
||||
var fileDescriptor_stats_73a5e405c9cf442c = []byte{
|
||||
var fileDescriptor_cbe97f35e2eb2516 = []byte{
|
||||
// 444 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0xd2, 0xdf, 0x6a, 0x13, 0x41,
|
||||
0x14, 0x06, 0x70, 0x36, 0xdb, 0x24, 0xcd, 0xc9, 0x45, 0xed, 0x14, 0x61, 0x89, 0x22, 0xa1, 0x17,
|
||||
|
||||
Reference in New Issue
Block a user