1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package s2a_context_go_proto
22
23 import (
24 common_go_proto "github.com/google/s2a-go/internal/proto/common_go_proto"
25 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
26 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
27 reflect "reflect"
28 sync "sync"
29 )
30
31 const (
32
33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
34
35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
36 )
37
38 type S2AContext struct {
39 state protoimpl.MessageState
40 sizeCache protoimpl.SizeCache
41 unknownFields protoimpl.UnknownFields
42
43
44
45
46
47
48 LeafCertSpiffeId string `protobuf:"bytes,1,opt,name=leaf_cert_spiffe_id,json=leafCertSpiffeId,proto3" json:"leaf_cert_spiffe_id,omitempty"`
49
50
51
52
53
54 LeafCertUris []string `protobuf:"bytes,2,rep,name=leaf_cert_uris,json=leafCertUris,proto3" json:"leaf_cert_uris,omitempty"`
55
56
57 LeafCertDnsnames []string `protobuf:"bytes,3,rep,name=leaf_cert_dnsnames,json=leafCertDnsnames,proto3" json:"leaf_cert_dnsnames,omitempty"`
58
59
60
61
62
63
64
65 PeerCertificateChainFingerprints []string `protobuf:"bytes,4,rep,name=peer_certificate_chain_fingerprints,json=peerCertificateChainFingerprints,proto3" json:"peer_certificate_chain_fingerprints,omitempty"`
66
67 LocalIdentity *common_go_proto.Identity `protobuf:"bytes,5,opt,name=local_identity,json=localIdentity,proto3" json:"local_identity,omitempty"`
68
69
70 LocalLeafCertFingerprint []byte `protobuf:"bytes,6,opt,name=local_leaf_cert_fingerprint,json=localLeafCertFingerprint,proto3" json:"local_leaf_cert_fingerprint,omitempty"`
71 }
72
73 func (x *S2AContext) Reset() {
74 *x = S2AContext{}
75 if protoimpl.UnsafeEnabled {
76 mi := &file_internal_proto_v2_s2a_context_s2a_context_proto_msgTypes[0]
77 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
78 ms.StoreMessageInfo(mi)
79 }
80 }
81
82 func (x *S2AContext) String() string {
83 return protoimpl.X.MessageStringOf(x)
84 }
85
86 func (*S2AContext) ProtoMessage() {}
87
88 func (x *S2AContext) ProtoReflect() protoreflect.Message {
89 mi := &file_internal_proto_v2_s2a_context_s2a_context_proto_msgTypes[0]
90 if protoimpl.UnsafeEnabled && x != nil {
91 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
92 if ms.LoadMessageInfo() == nil {
93 ms.StoreMessageInfo(mi)
94 }
95 return ms
96 }
97 return mi.MessageOf(x)
98 }
99
100
101 func (*S2AContext) Descriptor() ([]byte, []int) {
102 return file_internal_proto_v2_s2a_context_s2a_context_proto_rawDescGZIP(), []int{0}
103 }
104
105 func (x *S2AContext) GetLeafCertSpiffeId() string {
106 if x != nil {
107 return x.LeafCertSpiffeId
108 }
109 return ""
110 }
111
112 func (x *S2AContext) GetLeafCertUris() []string {
113 if x != nil {
114 return x.LeafCertUris
115 }
116 return nil
117 }
118
119 func (x *S2AContext) GetLeafCertDnsnames() []string {
120 if x != nil {
121 return x.LeafCertDnsnames
122 }
123 return nil
124 }
125
126 func (x *S2AContext) GetPeerCertificateChainFingerprints() []string {
127 if x != nil {
128 return x.PeerCertificateChainFingerprints
129 }
130 return nil
131 }
132
133 func (x *S2AContext) GetLocalIdentity() *common_go_proto.Identity {
134 if x != nil {
135 return x.LocalIdentity
136 }
137 return nil
138 }
139
140 func (x *S2AContext) GetLocalLeafCertFingerprint() []byte {
141 if x != nil {
142 return x.LocalLeafCertFingerprint
143 }
144 return nil
145 }
146
147 var File_internal_proto_v2_s2a_context_s2a_context_proto protoreflect.FileDescriptor
148
149 var file_internal_proto_v2_s2a_context_s2a_context_proto_rawDesc = []byte{
150 0x0a, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
151 0x2f, 0x76, 0x32, 0x2f, 0x73, 0x32, 0x61, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2f,
152 0x73, 0x32, 0x61, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
153 0x6f, 0x12, 0x0c, 0x73, 0x32, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x76, 0x32, 0x1a,
154 0x22, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
155 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72,
156 0x6f, 0x74, 0x6f, 0x22, 0xd9, 0x02, 0x0a, 0x0a, 0x53, 0x32, 0x41, 0x43, 0x6f, 0x6e, 0x74, 0x65,
157 0x78, 0x74, 0x12, 0x2d, 0x0a, 0x13, 0x6c, 0x65, 0x61, 0x66, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x5f,
158 0x73, 0x70, 0x69, 0x66, 0x66, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
159 0x10, 0x6c, 0x65, 0x61, 0x66, 0x43, 0x65, 0x72, 0x74, 0x53, 0x70, 0x69, 0x66, 0x66, 0x65, 0x49,
160 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x6c, 0x65, 0x61, 0x66, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x5f, 0x75,
161 0x72, 0x69, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x6c, 0x65, 0x61, 0x66, 0x43,
162 0x65, 0x72, 0x74, 0x55, 0x72, 0x69, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x6c, 0x65, 0x61, 0x66, 0x5f,
163 0x63, 0x65, 0x72, 0x74, 0x5f, 0x64, 0x6e, 0x73, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x03, 0x20,
164 0x03, 0x28, 0x09, 0x52, 0x10, 0x6c, 0x65, 0x61, 0x66, 0x43, 0x65, 0x72, 0x74, 0x44, 0x6e, 0x73,
165 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x4d, 0x0a, 0x23, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x63, 0x65,
166 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f,
167 0x66, 0x69, 0x6e, 0x67, 0x65, 0x72, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03,
168 0x28, 0x09, 0x52, 0x20, 0x70, 0x65, 0x65, 0x72, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63,
169 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x46, 0x69, 0x6e, 0x67, 0x65, 0x72, 0x70, 0x72,
170 0x69, 0x6e, 0x74, 0x73, 0x12, 0x3a, 0x0a, 0x0e, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x69, 0x64,
171 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73,
172 0x32, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74,
173 0x79, 0x52, 0x0d, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79,
174 0x12, 0x3d, 0x0a, 0x1b, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x6c, 0x65, 0x61, 0x66, 0x5f, 0x63,
175 0x65, 0x72, 0x74, 0x5f, 0x66, 0x69, 0x6e, 0x67, 0x65, 0x72, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x18,
176 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x18, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x4c, 0x65, 0x61, 0x66,
177 0x43, 0x65, 0x72, 0x74, 0x46, 0x69, 0x6e, 0x67, 0x65, 0x72, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x42,
178 0x3e, 0x5a, 0x3c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f,
179 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x73, 0x32, 0x61, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61,
180 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x32, 0x2f, 0x73, 0x32, 0x61, 0x5f, 0x63,
181 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x67, 0x6f, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
182 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
183 }
184
185 var (
186 file_internal_proto_v2_s2a_context_s2a_context_proto_rawDescOnce sync.Once
187 file_internal_proto_v2_s2a_context_s2a_context_proto_rawDescData = file_internal_proto_v2_s2a_context_s2a_context_proto_rawDesc
188 )
189
190 func file_internal_proto_v2_s2a_context_s2a_context_proto_rawDescGZIP() []byte {
191 file_internal_proto_v2_s2a_context_s2a_context_proto_rawDescOnce.Do(func() {
192 file_internal_proto_v2_s2a_context_s2a_context_proto_rawDescData = protoimpl.X.CompressGZIP(file_internal_proto_v2_s2a_context_s2a_context_proto_rawDescData)
193 })
194 return file_internal_proto_v2_s2a_context_s2a_context_proto_rawDescData
195 }
196
197 var file_internal_proto_v2_s2a_context_s2a_context_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
198 var file_internal_proto_v2_s2a_context_s2a_context_proto_goTypes = []interface{}{
199 (*S2AContext)(nil),
200 (*common_go_proto.Identity)(nil),
201 }
202 var file_internal_proto_v2_s2a_context_s2a_context_proto_depIdxs = []int32{
203 1,
204 1,
205 1,
206 1,
207 1,
208 0,
209 }
210
211 func init() { file_internal_proto_v2_s2a_context_s2a_context_proto_init() }
212 func file_internal_proto_v2_s2a_context_s2a_context_proto_init() {
213 if File_internal_proto_v2_s2a_context_s2a_context_proto != nil {
214 return
215 }
216 if !protoimpl.UnsafeEnabled {
217 file_internal_proto_v2_s2a_context_s2a_context_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
218 switch v := v.(*S2AContext); i {
219 case 0:
220 return &v.state
221 case 1:
222 return &v.sizeCache
223 case 2:
224 return &v.unknownFields
225 default:
226 return nil
227 }
228 }
229 }
230 type x struct{}
231 out := protoimpl.TypeBuilder{
232 File: protoimpl.DescBuilder{
233 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
234 RawDescriptor: file_internal_proto_v2_s2a_context_s2a_context_proto_rawDesc,
235 NumEnums: 0,
236 NumMessages: 1,
237 NumExtensions: 0,
238 NumServices: 0,
239 },
240 GoTypes: file_internal_proto_v2_s2a_context_s2a_context_proto_goTypes,
241 DependencyIndexes: file_internal_proto_v2_s2a_context_s2a_context_proto_depIdxs,
242 MessageInfos: file_internal_proto_v2_s2a_context_s2a_context_proto_msgTypes,
243 }.Build()
244 File_internal_proto_v2_s2a_context_s2a_context_proto = out.File
245 file_internal_proto_v2_s2a_context_s2a_context_proto_rawDesc = nil
246 file_internal_proto_v2_s2a_context_s2a_context_proto_goTypes = nil
247 file_internal_proto_v2_s2a_context_s2a_context_proto_depIdxs = nil
248 }
249
View as plain text