forked from joeholley/supergloo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsecrets.pb.go
170 lines (152 loc) · 5.83 KB
/
secrets.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
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: github.com/solo-io/supergloo/api/v1/secrets.proto
package v1
import (
bytes "bytes"
fmt "fmt"
math "math"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
_ "github.com/gogo/protobuf/types"
core "github.com/solo-io/solo-kit/pkg/api/v1/resources/core"
)
// 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.GoGoProtoPackageIsVersion2 // please upgrade the proto package
type TlsSecret struct {
// Metadata contains the object metadata for this resource
Metadata core.Metadata `protobuf:"bytes,101,opt,name=metadata,proto3" json:"metadata"`
RootCert string `protobuf:"bytes,1,opt,name=root_cert,json=root-cert.pem,proto3" json:"root_cert,omitempty"`
CertChain string `protobuf:"bytes,2,opt,name=cert_chain,json=cert-chain.pem,proto3" json:"cert_chain,omitempty"`
CaCert string `protobuf:"bytes,3,opt,name=ca_cert,json=ca-cert.pem,proto3" json:"ca_cert,omitempty"`
CaKey string `protobuf:"bytes,4,opt,name=ca_key,json=ca-key.pem,proto3" json:"ca_key,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TlsSecret) Reset() { *m = TlsSecret{} }
func (m *TlsSecret) String() string { return proto.CompactTextString(m) }
func (*TlsSecret) ProtoMessage() {}
func (*TlsSecret) Descriptor() ([]byte, []int) {
return fileDescriptor_1c765e2d1cb5e906, []int{0}
}
func (m *TlsSecret) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TlsSecret.Unmarshal(m, b)
}
func (m *TlsSecret) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TlsSecret.Marshal(b, m, deterministic)
}
func (m *TlsSecret) XXX_Merge(src proto.Message) {
xxx_messageInfo_TlsSecret.Merge(m, src)
}
func (m *TlsSecret) XXX_Size() int {
return xxx_messageInfo_TlsSecret.Size(m)
}
func (m *TlsSecret) XXX_DiscardUnknown() {
xxx_messageInfo_TlsSecret.DiscardUnknown(m)
}
var xxx_messageInfo_TlsSecret proto.InternalMessageInfo
func (m *TlsSecret) GetMetadata() core.Metadata {
if m != nil {
return m.Metadata
}
return core.Metadata{}
}
func (m *TlsSecret) GetRootCert() string {
if m != nil {
return m.RootCert
}
return ""
}
func (m *TlsSecret) GetCertChain() string {
if m != nil {
return m.CertChain
}
return ""
}
func (m *TlsSecret) GetCaCert() string {
if m != nil {
return m.CaCert
}
return ""
}
func (m *TlsSecret) GetCaKey() string {
if m != nil {
return m.CaKey
}
return ""
}
func init() {
proto.RegisterType((*TlsSecret)(nil), "supergloo.solo.io.TlsSecret")
}
func init() {
proto.RegisterFile("github.com/solo-io/supergloo/api/v1/secrets.proto", fileDescriptor_1c765e2d1cb5e906)
}
var fileDescriptor_1c765e2d1cb5e906 = []byte{
// 330 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00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xc1, 0x88, 0x66, 0x54, 0x72, 0x5b, 0xb3, 0x23, 0xf4, 0xfa, 0x76, 0xfe, 0x6f, 0xbc, 0x53,
0xc7, 0x19, 0xee, 0x18, 0x00, 0x37, 0xe1, 0xc2, 0xb8, 0x24, 0xca, 0xa2, 0x41, 0x67, 0x7c, 0xe8,
0x81, 0xdc, 0x03, 0x44, 0x8b, 0x45, 0xdc, 0xc7, 0xd8, 0xc7, 0x13, 0x3e, 0x67, 0x6a, 0x99, 0xb4,
0x82, 0xe4, 0xc8, 0x23, 0x79, 0x40, 0x82, 0xe6, 0x0c, 0xef, 0x71, 0xb6, 0xf5, 0xf8, 0x1f, 0x04,
0x5d, 0xce, 0xbe, 0x1c, 0x52, 0xdc, 0xe6, 0x6c, 0x52, 0x88, 0x55, 0x82, 0x02, 0x89, 0x39, 0xcb,
0x0b, 0xb1, 0xf2, 0xdc, 0x4d, 0x6f, 0xbd, 0x41, 0x08, 0xb7, 0x9c, 0x5d, 0x6f, 0xd0, 0x41, 0x8c,
0x5d, 0x69, 0xeb, 0xb3, 0xad, 0x37, 0xa8, 0x95, 0x45, 0xa3, 0xfc, 0xe5, 0xbd, 0x17, 0x3d, 0x5c,
0xfc, 0x7a, 0x6f, 0x5d, 0xc8, 0x7a, 0x4b, 0xd3, 0x76, 0xd8, 0xce, 0xd5, 0x67, 0x00, 0x00, 0x00,
0xff, 0xff, 0x73, 0xc4, 0x09, 0xcc, 0x21, 0x02, 0x00, 0x00,
}
func (this *TlsSecret) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
that1, ok := that.(*TlsSecret)
if !ok {
that2, ok := that.(TlsSecret)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
return this == nil
} else if this == nil {
return false
}
if !this.Metadata.Equal(&that1.Metadata) {
return false
}
if this.RootCert != that1.RootCert {
return false
}
if this.CertChain != that1.CertChain {
return false
}
if this.CaCert != that1.CaCert {
return false
}
if this.CaKey != that1.CaKey {
return false
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return false
}
return true
}