github.com/TrueCloudLab/frostfs-api-go/v2@v2.0.0-20230228134343-196241c4e79a/audit/grpc/types.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.28.0 4 // protoc v3.21.9 5 // source: audit/grpc/types.proto 6 7 package audit 8 9 import ( 10 grpc "github.com/TrueCloudLab/frostfs-api-go/v2/refs/grpc" 11 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 12 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 13 reflect "reflect" 14 sync "sync" 15 ) 16 17 const ( 18 // Verify that this generated code is sufficiently up-to-date. 19 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 20 // Verify that runtime/protoimpl is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 22 ) 23 24 // DataAuditResult keeps record of conducted Data Audits. The detailed report is 25 // generated separately. 26 type DataAuditResult struct { 27 state protoimpl.MessageState 28 sizeCache protoimpl.SizeCache 29 unknownFields protoimpl.UnknownFields 30 31 // Data Audit Result format version. Effectively, the version of API library 32 // used to report DataAuditResult structure. 33 Version *grpc.Version `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` 34 // Epoch number when the Data Audit was conducted 35 AuditEpoch uint64 `protobuf:"fixed64,2,opt,name=audit_epoch,json=auditEpoch,proto3" json:"audit_epoch,omitempty"` 36 // Container under audit 37 ContainerId *grpc.ContainerID `protobuf:"bytes,3,opt,name=container_id,json=containerID,proto3" json:"container_id,omitempty"` 38 // Public key of the auditing InnerRing node in a binary format 39 PublicKey []byte `protobuf:"bytes,4,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` 40 // Shows if Data Audit process was complete in time or if it was cancelled 41 Complete bool `protobuf:"varint,5,opt,name=complete,proto3" json:"complete,omitempty"` 42 // Number of request done at PoR stage 43 Requests uint32 `protobuf:"varint,6,opt,name=requests,proto3" json:"requests,omitempty"` 44 // Number of retries done at PoR stage 45 Retries uint32 `protobuf:"varint,7,opt,name=retries,proto3" json:"retries,omitempty"` 46 // List of Storage Groups that passed audit PoR stage 47 PassSg []*grpc.ObjectID `protobuf:"bytes,8,rep,name=pass_sg,json=passSG,proto3" json:"pass_sg,omitempty"` 48 // List of Storage Groups that failed audit PoR stage 49 FailSg []*grpc.ObjectID `protobuf:"bytes,9,rep,name=fail_sg,json=failSG,proto3" json:"fail_sg,omitempty"` 50 // Number of sampled objects under the audit placed in an optimal way according to 51 // the containers placement policy when checking PoP 52 Hit uint32 `protobuf:"varint,10,opt,name=hit,proto3" json:"hit,omitempty"` 53 // Number of sampled objects under the audit placed in suboptimal way according to 54 // the containers placement policy, but still at a satisfactory level when 55 // checking PoP 56 Miss uint32 `protobuf:"varint,11,opt,name=miss,proto3" json:"miss,omitempty"` 57 // Number of sampled objects under the audit stored inconsistently with the 58 // placement policy or not found at all when checking PoP 59 Fail uint32 `protobuf:"varint,12,opt,name=fail,proto3" json:"fail,omitempty"` 60 // List of storage node public keys that passed at least one PDP 61 PassNodes [][]byte `protobuf:"bytes,13,rep,name=pass_nodes,json=passNodes,proto3" json:"pass_nodes,omitempty"` 62 // List of storage node public keys that failed at least one PDP 63 FailNodes [][]byte `protobuf:"bytes,14,rep,name=fail_nodes,json=failNodes,proto3" json:"fail_nodes,omitempty"` 64 } 65 66 func (x *DataAuditResult) Reset() { 67 *x = DataAuditResult{} 68 if protoimpl.UnsafeEnabled { 69 mi := &file_audit_grpc_types_proto_msgTypes[0] 70 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 71 ms.StoreMessageInfo(mi) 72 } 73 } 74 75 func (x *DataAuditResult) String() string { 76 return protoimpl.X.MessageStringOf(x) 77 } 78 79 func (*DataAuditResult) ProtoMessage() {} 80 81 func (x *DataAuditResult) ProtoReflect() protoreflect.Message { 82 mi := &file_audit_grpc_types_proto_msgTypes[0] 83 if protoimpl.UnsafeEnabled && x != nil { 84 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 85 if ms.LoadMessageInfo() == nil { 86 ms.StoreMessageInfo(mi) 87 } 88 return ms 89 } 90 return mi.MessageOf(x) 91 } 92 93 // Deprecated: Use DataAuditResult.ProtoReflect.Descriptor instead. 94 func (*DataAuditResult) Descriptor() ([]byte, []int) { 95 return file_audit_grpc_types_proto_rawDescGZIP(), []int{0} 96 } 97 98 func (x *DataAuditResult) GetVersion() *grpc.Version { 99 if x != nil { 100 return x.Version 101 } 102 return nil 103 } 104 105 func (x *DataAuditResult) GetAuditEpoch() uint64 { 106 if x != nil { 107 return x.AuditEpoch 108 } 109 return 0 110 } 111 112 func (x *DataAuditResult) GetContainerId() *grpc.ContainerID { 113 if x != nil { 114 return x.ContainerId 115 } 116 return nil 117 } 118 119 func (x *DataAuditResult) GetPublicKey() []byte { 120 if x != nil { 121 return x.PublicKey 122 } 123 return nil 124 } 125 126 func (x *DataAuditResult) GetComplete() bool { 127 if x != nil { 128 return x.Complete 129 } 130 return false 131 } 132 133 func (x *DataAuditResult) GetRequests() uint32 { 134 if x != nil { 135 return x.Requests 136 } 137 return 0 138 } 139 140 func (x *DataAuditResult) GetRetries() uint32 { 141 if x != nil { 142 return x.Retries 143 } 144 return 0 145 } 146 147 func (x *DataAuditResult) GetPassSg() []*grpc.ObjectID { 148 if x != nil { 149 return x.PassSg 150 } 151 return nil 152 } 153 154 func (x *DataAuditResult) GetFailSg() []*grpc.ObjectID { 155 if x != nil { 156 return x.FailSg 157 } 158 return nil 159 } 160 161 func (x *DataAuditResult) GetHit() uint32 { 162 if x != nil { 163 return x.Hit 164 } 165 return 0 166 } 167 168 func (x *DataAuditResult) GetMiss() uint32 { 169 if x != nil { 170 return x.Miss 171 } 172 return 0 173 } 174 175 func (x *DataAuditResult) GetFail() uint32 { 176 if x != nil { 177 return x.Fail 178 } 179 return 0 180 } 181 182 func (x *DataAuditResult) GetPassNodes() [][]byte { 183 if x != nil { 184 return x.PassNodes 185 } 186 return nil 187 } 188 189 func (x *DataAuditResult) GetFailNodes() [][]byte { 190 if x != nil { 191 return x.FailNodes 192 } 193 return nil 194 } 195 196 var File_audit_grpc_types_proto protoreflect.FileDescriptor 197 198 var file_audit_grpc_types_proto_rawDesc = []byte{ 199 0x0a, 0x16, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x74, 0x79, 0x70, 200 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 201 0x2e, 0x76, 0x32, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x1a, 0x15, 0x72, 0x65, 0x66, 0x73, 0x2f, 202 0x67, 0x72, 0x70, 0x63, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 203 0x22, 0xf4, 0x03, 0x0a, 0x0f, 0x44, 0x61, 0x74, 0x61, 0x41, 0x75, 0x64, 0x69, 0x74, 0x52, 0x65, 204 0x73, 0x75, 0x6c, 0x74, 0x12, 0x31, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 205 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 206 0x32, 0x2e, 0x72, 0x65, 0x66, 0x73, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x07, 207 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x75, 0x64, 0x69, 0x74, 208 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x06, 0x52, 0x0a, 0x61, 0x75, 209 0x64, 0x69, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x3e, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 210 0x61, 0x69, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 211 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x72, 0x65, 0x66, 0x73, 0x2e, 212 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x49, 0x44, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 213 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x49, 0x44, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 214 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x70, 0x75, 215 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 216 0x65, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 217 0x65, 0x74, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 218 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 219 0x18, 0x0a, 0x07, 0x72, 0x65, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 220 0x52, 0x07, 0x72, 0x65, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x31, 0x0a, 0x07, 0x70, 0x61, 0x73, 221 0x73, 0x5f, 0x73, 0x67, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6e, 0x65, 0x6f, 222 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x72, 0x65, 0x66, 0x73, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 223 0x63, 0x74, 0x49, 0x44, 0x52, 0x06, 0x70, 0x61, 0x73, 0x73, 0x53, 0x47, 0x12, 0x31, 0x0a, 0x07, 224 0x66, 0x61, 0x69, 0x6c, 0x5f, 0x73, 0x67, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 225 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x72, 0x65, 0x66, 0x73, 0x2e, 0x4f, 226 0x62, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x44, 0x52, 0x06, 0x66, 0x61, 0x69, 0x6c, 0x53, 0x47, 0x12, 227 0x10, 0x0a, 0x03, 0x68, 0x69, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x68, 0x69, 228 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x69, 0x73, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0d, 0x52, 229 0x04, 0x6d, 0x69, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x61, 0x69, 0x6c, 0x18, 0x0c, 0x20, 230 0x01, 0x28, 0x0d, 0x52, 0x04, 0x66, 0x61, 0x69, 0x6c, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x73, 231 0x73, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x09, 0x70, 232 0x61, 0x73, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x61, 0x69, 0x6c, 233 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x0e, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x09, 0x66, 0x61, 234 0x69, 0x6c, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x42, 0x58, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 235 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x72, 0x75, 0x65, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x4c, 236 0x61, 0x62, 0x2f, 0x66, 0x72, 0x6f, 0x73, 0x74, 0x66, 0x73, 0x2d, 0x61, 0x70, 0x69, 0x2d, 0x67, 237 0x6f, 0x2f, 0x76, 0x32, 0x2f, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x3b, 238 0x61, 0x75, 0x64, 0x69, 0x74, 0xaa, 0x02, 0x19, 0x4e, 0x65, 0x6f, 0x2e, 0x46, 0x69, 0x6c, 0x65, 239 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x50, 0x49, 0x2e, 0x41, 0x75, 0x64, 0x69, 240 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 241 } 242 243 var ( 244 file_audit_grpc_types_proto_rawDescOnce sync.Once 245 file_audit_grpc_types_proto_rawDescData = file_audit_grpc_types_proto_rawDesc 246 ) 247 248 func file_audit_grpc_types_proto_rawDescGZIP() []byte { 249 file_audit_grpc_types_proto_rawDescOnce.Do(func() { 250 file_audit_grpc_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_audit_grpc_types_proto_rawDescData) 251 }) 252 return file_audit_grpc_types_proto_rawDescData 253 } 254 255 var file_audit_grpc_types_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 256 var file_audit_grpc_types_proto_goTypes = []interface{}{ 257 (*DataAuditResult)(nil), // 0: neo.fs.v2.audit.DataAuditResult 258 (*grpc.Version)(nil), // 1: neo.fs.v2.refs.Version 259 (*grpc.ContainerID)(nil), // 2: neo.fs.v2.refs.ContainerID 260 (*grpc.ObjectID)(nil), // 3: neo.fs.v2.refs.ObjectID 261 } 262 var file_audit_grpc_types_proto_depIdxs = []int32{ 263 1, // 0: neo.fs.v2.audit.DataAuditResult.version:type_name -> neo.fs.v2.refs.Version 264 2, // 1: neo.fs.v2.audit.DataAuditResult.container_id:type_name -> neo.fs.v2.refs.ContainerID 265 3, // 2: neo.fs.v2.audit.DataAuditResult.pass_sg:type_name -> neo.fs.v2.refs.ObjectID 266 3, // 3: neo.fs.v2.audit.DataAuditResult.fail_sg:type_name -> neo.fs.v2.refs.ObjectID 267 4, // [4:4] is the sub-list for method output_type 268 4, // [4:4] is the sub-list for method input_type 269 4, // [4:4] is the sub-list for extension type_name 270 4, // [4:4] is the sub-list for extension extendee 271 0, // [0:4] is the sub-list for field type_name 272 } 273 274 func init() { file_audit_grpc_types_proto_init() } 275 func file_audit_grpc_types_proto_init() { 276 if File_audit_grpc_types_proto != nil { 277 return 278 } 279 if !protoimpl.UnsafeEnabled { 280 file_audit_grpc_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 281 switch v := v.(*DataAuditResult); i { 282 case 0: 283 return &v.state 284 case 1: 285 return &v.sizeCache 286 case 2: 287 return &v.unknownFields 288 default: 289 return nil 290 } 291 } 292 } 293 type x struct{} 294 out := protoimpl.TypeBuilder{ 295 File: protoimpl.DescBuilder{ 296 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 297 RawDescriptor: file_audit_grpc_types_proto_rawDesc, 298 NumEnums: 0, 299 NumMessages: 1, 300 NumExtensions: 0, 301 NumServices: 0, 302 }, 303 GoTypes: file_audit_grpc_types_proto_goTypes, 304 DependencyIndexes: file_audit_grpc_types_proto_depIdxs, 305 MessageInfos: file_audit_grpc_types_proto_msgTypes, 306 }.Build() 307 File_audit_grpc_types_proto = out.File 308 file_audit_grpc_types_proto_rawDesc = nil 309 file_audit_grpc_types_proto_goTypes = nil 310 file_audit_grpc_types_proto_depIdxs = nil 311 }