-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathiprs.pb.go
198 lines (171 loc) · 6.88 KB
/
iprs.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: iprs.proto
/*
Package iprs_pb is a generated protocol buffer package.
protoc --go_out=. *.proto
It is generated from these files:
iprs.proto
It has these top-level messages:
IprsEntry
*/
package iprs_pb
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type IprsEntry_ValidityType int32
const (
// Setting an EOL says "this record is valid until..."
IprsEntry_EOL IprsEntry_ValidityType = 0
// Setting a time range says "this record is valid between x and y"
IprsEntry_TimeRange IprsEntry_ValidityType = 1
)
var IprsEntry_ValidityType_name = map[int32]string{
0: "EOL",
1: "TimeRange",
}
var IprsEntry_ValidityType_value = map[string]int32{
"EOL": 0,
"TimeRange": 1,
}
func (x IprsEntry_ValidityType) Enum() *IprsEntry_ValidityType {
p := new(IprsEntry_ValidityType)
*p = x
return p
}
func (x IprsEntry_ValidityType) String() string {
return proto.EnumName(IprsEntry_ValidityType_name, int32(x))
}
func (x *IprsEntry_ValidityType) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(IprsEntry_ValidityType_value, data, "IprsEntry_ValidityType")
if err != nil {
return err
}
*x = IprsEntry_ValidityType(value)
return nil
}
func (IprsEntry_ValidityType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} }
type IprsEntry_VerificationType int32
const (
// Key verification verifies a record is signed with a private key
IprsEntry_Key IprsEntry_VerificationType = 0
// Cert verification verifies a record is signed by a certificate issued by a CA
IprsEntry_Cert IprsEntry_VerificationType = 1
)
var IprsEntry_VerificationType_name = map[int32]string{
0: "Key",
1: "Cert",
}
var IprsEntry_VerificationType_value = map[string]int32{
"Key": 0,
"Cert": 1,
}
func (x IprsEntry_VerificationType) Enum() *IprsEntry_VerificationType {
p := new(IprsEntry_VerificationType)
*p = x
return p
}
func (x IprsEntry_VerificationType) String() string {
return proto.EnumName(IprsEntry_VerificationType_name, int32(x))
}
func (x *IprsEntry_VerificationType) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(IprsEntry_VerificationType_value, data, "IprsEntry_VerificationType")
if err != nil {
return err
}
*x = IprsEntry_VerificationType(value)
return nil
}
func (IprsEntry_VerificationType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor0, []int{0, 1}
}
type IprsEntry struct {
Value []byte `protobuf:"bytes,1,req,name=value" json:"value,omitempty"`
Signature []byte `protobuf:"bytes,2,req,name=signature" json:"signature,omitempty"`
VerificationType *IprsEntry_VerificationType `protobuf:"varint,3,req,name=verificationType,enum=iprs.pb.IprsEntry_VerificationType" json:"verificationType,omitempty"`
Verification []byte `protobuf:"bytes,4,req,name=verification" json:"verification,omitempty"`
ValidityType *IprsEntry_ValidityType `protobuf:"varint,5,opt,name=validityType,enum=iprs.pb.IprsEntry_ValidityType" json:"validityType,omitempty"`
Validity []byte `protobuf:"bytes,6,opt,name=validity" json:"validity,omitempty"`
Sequence *uint64 `protobuf:"varint,7,opt,name=sequence" json:"sequence,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *IprsEntry) Reset() { *m = IprsEntry{} }
func (m *IprsEntry) String() string { return proto.CompactTextString(m) }
func (*IprsEntry) ProtoMessage() {}
func (*IprsEntry) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *IprsEntry) GetValue() []byte {
if m != nil {
return m.Value
}
return nil
}
func (m *IprsEntry) GetSignature() []byte {
if m != nil {
return m.Signature
}
return nil
}
func (m *IprsEntry) GetVerificationType() IprsEntry_VerificationType {
if m != nil && m.VerificationType != nil {
return *m.VerificationType
}
return IprsEntry_Key
}
func (m *IprsEntry) GetVerification() []byte {
if m != nil {
return m.Verification
}
return nil
}
func (m *IprsEntry) GetValidityType() IprsEntry_ValidityType {
if m != nil && m.ValidityType != nil {
return *m.ValidityType
}
return IprsEntry_EOL
}
func (m *IprsEntry) GetValidity() []byte {
if m != nil {
return m.Validity
}
return nil
}
func (m *IprsEntry) GetSequence() uint64 {
if m != nil && m.Sequence != nil {
return *m.Sequence
}
return 0
}
func init() {
proto.RegisterType((*IprsEntry)(nil), "iprs.pb.IprsEntry")
proto.RegisterEnum("iprs.pb.IprsEntry_ValidityType", IprsEntry_ValidityType_name, IprsEntry_ValidityType_value)
proto.RegisterEnum("iprs.pb.IprsEntry_VerificationType", IprsEntry_VerificationType_name, IprsEntry_VerificationType_value)
}
func init() { proto.RegisterFile("iprs.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 261 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x8f, 0xcf, 0x6a, 0x83, 0x40,
0x10, 0xc6, 0xb3, 0x6a, 0x9a, 0x38, 0x58, 0x59, 0x86, 0x1e, 0x96, 0xd2, 0x83, 0x08, 0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