From c46cd37f7115730366b3e32176947f495ded5165 Mon Sep 17 00:00:00 2001 From: Denis Kirillov Date: Mon, 6 Mar 2023 14:59:51 +0300 Subject: [PATCH] [#10] Generate api Signed-off-by: Denis Kirillov --- container/grpc/types.pb.go | 10 ++++---- lock/grpc/types.pb.go | 2 +- netmap/grpc/types.pb.go | 2 +- object/grpc/service_grpc.pb.go | 44 +++++++++++++++++----------------- object/grpc/types.pb.go | 10 ++++---- session/grpc/types.pb.go | 6 ++--- storagegroup/grpc/types.pb.go | 2 +- tombstone/grpc/types.pb.go | 2 +- 8 files changed, 39 insertions(+), 39 deletions(-) diff --git a/container/grpc/types.pb.go b/container/grpc/types.pb.go index 75796c2..9c6b2db 100644 --- a/container/grpc/types.pb.go +++ b/container/grpc/types.pb.go @@ -131,16 +131,16 @@ func (x *Container) GetPlacementPolicy() *grpc1.PlacementPolicy { // // There are some "well-known" attributes affecting system behaviour: // -// - __NEOFS__SUBNET \ +// - [ __NEOFS__SUBNET | __FROSTFS__SUBNET ] \ // String ID of a container's storage subnet. Any container can be attached to // one subnet only. -// - __NEOFS__NAME \ +// - [ __NEOFS__NAME | __FROSTFS__NAME ] \ // String of a human-friendly container name registered as a domain in // NNS contract. -// - __NEOFS__ZONE \ -// String of a zone for `__NEOFS__NAME`. Used as a TLD of a domain name in NNS +// - [ __NEOFS__ZONE | __FROSTFS__ZONE ] \ +// String of a zone for `__NEOFS__NAME`/`__FROSTFS__NAME`. Used as a TLD of a domain name in NNS // contract. If no zone is specified, use default zone: `container`. -// - __NEOFS__DISABLE_HOMOMORPHIC_HASHING \ +// - [ __NEOFS__DISABLE_HOMOMORPHIC_HASHING | __FROSTFS__DISABLE_HOMOMORPHIC_HASHING ] \ // Disables homomorphic hashing for the container if the value equals "true" string. // Any other values are interpreted as missing attribute. Container could be // accepted in a NeoFS network only if the global network hashing configuration diff --git a/lock/grpc/types.pb.go b/lock/grpc/types.pb.go index 01e263a..476b9ab 100644 --- a/lock/grpc/types.pb.go +++ b/lock/grpc/types.pb.go @@ -23,7 +23,7 @@ const ( // Lock objects protects a list of objects from being deleted. The lifetime of a // lock object is limited similar to regular objects in -// `__NEOFS__EXPIRATION_EPOCH` attribute. Lock object MUST have expiration epoch. +// `__NEOFS__EXPIRATION_EPOCH`/`__FROSTFS__EXPIRATION_EPOCH` attribute. Lock object MUST have expiration epoch. // It is impossible to delete a lock object via ObjectService.Delete RPC call. type Lock struct { state protoimpl.MessageState diff --git a/netmap/grpc/types.pb.go b/netmap/grpc/types.pb.go index 92fea20..ab9cc16 100644 --- a/netmap/grpc/types.pb.go +++ b/netmap/grpc/types.pb.go @@ -827,7 +827,7 @@ func (x *NetworkInfo) GetNetworkConfig() *NetworkConfig { // attributes it's a string presenting floating point number with comma or // point delimiter for decimal part. In the Network Map it will be saved as // 64-bit unsigned integer representing number of minimal token fractions. -// - __NEOFS__SUBNET_%s \ +// - [ __NEOFS__SUBNET_%s | __FROSTFS__SUBNET_%s ] \ // `True` or `False`. Defines if the node is included in the `%s` subnetwork // or not. `%s` must be an existing subnetwork's ID (non-negative integer number). // A node can be included in more than one subnetwork and, therefore, can contain diff --git a/object/grpc/service_grpc.pb.go b/object/grpc/service_grpc.pb.go index 172998c..d3b9314 100644 --- a/object/grpc/service_grpc.pb.go +++ b/object/grpc/service_grpc.pb.go @@ -30,11 +30,11 @@ type ObjectServiceClient interface { // keeping the receiving order. // // Extended headers can change `Get` behaviour: - // - __NEOFS__NETMAP_EPOCH \ + // - [ __NEOFS__NETMAP_EPOCH | __FROSTFS__NETMAP_EPOCH ] \ // Will use the requsted version of Network Map for object placement // calculation. - // - __NEOFS__NETMAP_LOOKUP_DEPTH \ - // Will try older versions (starting from `__NEOFS__NETMAP_EPOCH` if specified or + // - [ __NEOFS__NETMAP_LOOKUP_DEPTH | __FROSTFS__NETMAP_LOOKUP_DEPTH ] \ + // Will try older versions (starting from `__NEOFS__NETMAP_EPOCH`/`__FROSTFS__NETMAP_EPOCH` if specified or // the latest one otherwise) of Network Map to find an object until the depth // limit is reached. // @@ -63,7 +63,7 @@ type ObjectServiceClient interface { // Chunk messages SHOULD be sent in the direct order of fragmentation. // // Extended headers can change `Put` behaviour: - // - __NEOFS__NETMAP_EPOCH \ + // - [ __NEOFS__NETMAP_EPOCH | __FROSTFS__NETMAP_EPOCH \ // Will use the requsted version of Network Map for object placement // calculation. // @@ -94,7 +94,7 @@ type ObjectServiceClient interface { // guarantee. Object will be marked for removal and deleted eventually. // // Extended headers can change `Delete` behaviour: - // - __NEOFS__NETMAP_EPOCH \ + // - [ __NEOFS__NETMAP_EPOCH | __FROSTFS__NETMAP_EPOCH ] \ // Will use the requsted version of Network Map for object placement // calculation. // @@ -118,7 +118,7 @@ type ObjectServiceClient interface { // the very minimal information will be returned instead. // // Extended headers can change `Head` behaviour: - // - __NEOFS__NETMAP_EPOCH \ + // - [ __NEOFS__NETMAP_EPOCH | __FROSTFS__NETMAP_EPOCH ] \ // Will use the requsted version of Network Map for object placement // calculation. // @@ -144,7 +144,7 @@ type ObjectServiceClient interface { // Specification section for more details. // // Extended headers can change `Search` behaviour: - // - __NEOFS__NETMAP_EPOCH \ + // - [ __NEOFS__NETMAP_EPOCH | __FROSTFS__NETMAP_EPOCH ] \ // Will use the requsted version of Network Map for object placement // calculation. // @@ -167,10 +167,10 @@ type ObjectServiceClient interface { // order. // // Extended headers can change `GetRange` behaviour: - // - __NEOFS__NETMAP_EPOCH \ + // - [ __NEOFS__NETMAP_EPOCH | __FROSTFS__NETMAP_EPOCH ] \ // Will use the requsted version of Network Map for object placement // calculation. - // - __NEOFS__NETMAP_LOOKUP_DEPTH \ + // - [ __NEOFS__NETMAP_LOOKUP_DEPTH | __FROSTFS__NETMAP_LOOKUP_DEPTH ] \ // Will try older versions of Network Map to find an object until the depth // limit is reached. // @@ -199,10 +199,10 @@ type ObjectServiceClient interface { // the request. Note that hash is calculated for XORed data. // // Extended headers can change `GetRangeHash` behaviour: - // - __NEOFS__NETMAP_EPOCH \ + // - [ __NEOFS__NETMAP_EPOCH | __FROSTFS__NETMAP_EPOCH ] \ // Will use the requsted version of Network Map for object placement // calculation. - // - __NEOFS__NETMAP_LOOKUP_DEPTH \ + // - [ __NEOFS__NETMAP_LOOKUP_DEPTH | __FROSTFS__NETMAP_LOOKUP_DEPTH ] \ // Will try older versions of Network Map to find an object until the depth // limit is reached. // @@ -402,11 +402,11 @@ type ObjectServiceServer interface { // keeping the receiving order. // // Extended headers can change `Get` behaviour: - // - __NEOFS__NETMAP_EPOCH \ + // - [ __NEOFS__NETMAP_EPOCH | __FROSTFS__NETMAP_EPOCH ] \ // Will use the requsted version of Network Map for object placement // calculation. - // - __NEOFS__NETMAP_LOOKUP_DEPTH \ - // Will try older versions (starting from `__NEOFS__NETMAP_EPOCH` if specified or + // - [ __NEOFS__NETMAP_LOOKUP_DEPTH | __FROSTFS__NETMAP_LOOKUP_DEPTH ] \ + // Will try older versions (starting from `__NEOFS__NETMAP_EPOCH`/`__FROSTFS__NETMAP_EPOCH` if specified or // the latest one otherwise) of Network Map to find an object until the depth // limit is reached. // @@ -435,7 +435,7 @@ type ObjectServiceServer interface { // Chunk messages SHOULD be sent in the direct order of fragmentation. // // Extended headers can change `Put` behaviour: - // - __NEOFS__NETMAP_EPOCH \ + // - [ __NEOFS__NETMAP_EPOCH | __FROSTFS__NETMAP_EPOCH \ // Will use the requsted version of Network Map for object placement // calculation. // @@ -466,7 +466,7 @@ type ObjectServiceServer interface { // guarantee. Object will be marked for removal and deleted eventually. // // Extended headers can change `Delete` behaviour: - // - __NEOFS__NETMAP_EPOCH \ + // - [ __NEOFS__NETMAP_EPOCH | __FROSTFS__NETMAP_EPOCH ] \ // Will use the requsted version of Network Map for object placement // calculation. // @@ -490,7 +490,7 @@ type ObjectServiceServer interface { // the very minimal information will be returned instead. // // Extended headers can change `Head` behaviour: - // - __NEOFS__NETMAP_EPOCH \ + // - [ __NEOFS__NETMAP_EPOCH | __FROSTFS__NETMAP_EPOCH ] \ // Will use the requsted version of Network Map for object placement // calculation. // @@ -516,7 +516,7 @@ type ObjectServiceServer interface { // Specification section for more details. // // Extended headers can change `Search` behaviour: - // - __NEOFS__NETMAP_EPOCH \ + // - [ __NEOFS__NETMAP_EPOCH | __FROSTFS__NETMAP_EPOCH ] \ // Will use the requsted version of Network Map for object placement // calculation. // @@ -539,10 +539,10 @@ type ObjectServiceServer interface { // order. // // Extended headers can change `GetRange` behaviour: - // - __NEOFS__NETMAP_EPOCH \ + // - [ __NEOFS__NETMAP_EPOCH | __FROSTFS__NETMAP_EPOCH ] \ // Will use the requsted version of Network Map for object placement // calculation. - // - __NEOFS__NETMAP_LOOKUP_DEPTH \ + // - [ __NEOFS__NETMAP_LOOKUP_DEPTH | __FROSTFS__NETMAP_LOOKUP_DEPTH ] \ // Will try older versions of Network Map to find an object until the depth // limit is reached. // @@ -571,10 +571,10 @@ type ObjectServiceServer interface { // the request. Note that hash is calculated for XORed data. // // Extended headers can change `GetRangeHash` behaviour: - // - __NEOFS__NETMAP_EPOCH \ + // - [ __NEOFS__NETMAP_EPOCH | __FROSTFS__NETMAP_EPOCH ] \ // Will use the requsted version of Network Map for object placement // calculation. - // - __NEOFS__NETMAP_LOOKUP_DEPTH \ + // - [ __NEOFS__NETMAP_LOOKUP_DEPTH | __FROSTFS__NETMAP_LOOKUP_DEPTH ] \ // Will try older versions of Network Map to find an object until the depth // limit is reached. // diff --git a/object/grpc/types.pb.go b/object/grpc/types.pb.go index 818bc5e..6622359 100644 --- a/object/grpc/types.pb.go +++ b/object/grpc/types.pb.go @@ -556,19 +556,19 @@ func (x *SplitInfo) GetLink() *grpc.ObjectID { // Objects with duplicated attribute names or attributes with empty values // will be considered invalid. // -// There are some "well-known" attributes starting with `__NEOFS__` prefix +// There are some "well-known" attributes starting with `__NEOFS__`/`__FROSTFS__` prefix // that affect system behaviour: // -// - __NEOFS__UPLOAD_ID \ +// - [ __NEOFS__UPLOAD_ID | __FROSTFS__UPLOAD_ID ] \ // Marks smaller parts of a split bigger object -// - __NEOFS__EXPIRATION_EPOCH \ +// - [ __NEOFS__EXPIRATION_EPOCH | __FROSTFS__EXPIRATION_EPOCH ] \ // Tells GC to delete object after that epoch -// - __NEOFS__TICK_EPOCH \ +// - [ __NEOFS__TICK_EPOCH | __FROSTFS__TICK_EPOCH ] \ // Decimal number that defines what epoch must produce // object notification with UTF-8 object address in a // body (`0` value produces notification right after // object put) -// - __NEOFS__TICK_TOPIC \ +// - [ __NEOFS__TICK_TOPIC | __FROSTFS__TICK_TOPIC ] \ // UTF-8 string topic ID that is used for object notification // // And some well-known attributes used by applications only: diff --git a/session/grpc/types.pb.go b/session/grpc/types.pb.go index 3ca6001..de89a80 100644 --- a/session/grpc/types.pb.go +++ b/session/grpc/types.pb.go @@ -349,14 +349,14 @@ func (x *SessionToken) GetSignature() *grpc.Signature { // Responses with duplicated header names or headers with empty values will be // considered invalid. // -// There are some "well-known" headers starting with `__NEOFS__` prefix that +// There are some "well-known" headers starting with `__NEOFS__` or `__FROSTFS__` prefix that // affect system behaviour: // -// - __NEOFS__NETMAP_EPOCH \ +// - [ __NEOFS__NETMAP_EPOCH | __FROSTFS__NETMAP_EPOCH ] \ // Netmap epoch to use for object placement calculation. The `value` is string // encoded `uint64` in decimal presentation. If set to '0' or not set, the // current epoch only will be used. -// - __NEOFS__NETMAP_LOOKUP_DEPTH \ +// - [ __NEOFS__NETMAP_LOOKUP_DEPTH | __FROSTFS__NETMAP_LOOKUP_DEPTH ] \ // If object can't be found using current epoch's netmap, this header limits // how many past epochs the node can look up through. The `value` is string // encoded `uint64` in decimal presentation. If set to '0' or not set, only the diff --git a/storagegroup/grpc/types.pb.go b/storagegroup/grpc/types.pb.go index 37f88ea..2513f9c 100644 --- a/storagegroup/grpc/types.pb.go +++ b/storagegroup/grpc/types.pb.go @@ -27,7 +27,7 @@ const ( // contains objects from the same container. // // Being an object payload, StorageGroup may have expiration Epoch set with -// `__NEOFS__EXPIRATION_EPOCH` well-known attribute. When expired, StorageGroup +// `__NEOFS__EXPIRATION_EPOCH`/`__FROSTFS__EXPIRATION_EPOCH` well-known attribute. When expired, StorageGroup // will be ignored by InnerRing nodes during Data Audit cycles and will be // deleted by Storage Nodes. type StorageGroup struct { diff --git a/tombstone/grpc/types.pb.go b/tombstone/grpc/types.pb.go index 11405ac..86ed356 100644 --- a/tombstone/grpc/types.pb.go +++ b/tombstone/grpc/types.pb.go @@ -30,7 +30,7 @@ type Tombstone struct { // Last NeoFS epoch number of the tombstone lifetime. It's set by the tombstone // creator depending on the current NeoFS network settings. A tombstone object - // must have the same expiration epoch value in `__NEOFS__EXPIRATION_EPOCH` + // must have the same expiration epoch value in `__NEOFS__EXPIRATION_EPOCH`/`__FROSTFS__EXPIRATION_EPOCH` // attribute. Otherwise, the tombstone will be rejected by a storage node. ExpirationEpoch uint64 `protobuf:"varint,1,opt,name=expiration_epoch,json=expirationEpoch,proto3" json:"expiration_epoch,omitempty"` // 16 byte UUID used to identify the split object hierarchy parts. Must be