storj/satellite/internalpb/gc.proto
Erik van Velzen 4393b8a5ce satellite/internalpb: new protobuf for retain filters
Add new protobuff message to store retain filters before sending them
out to storagenodes.

This allows the retain filters to be generated by a separate command on
a backup of the database.

Change-Id: I8a2892d9d34bed1dbd6e5a7ded000dcdea7ec061
2022-08-30 12:37:40 +02:00

21 lines
763 B
Protocol Buffer

// Copyright (C) 2022 Storj Labs, Inc.
// See LICENSE for copying information.
syntax = "proto3";
option go_package = "storj.io/storj/satellite/internalpb";
package satellite.gc;
import "gogo.proto";
import "google/protobuf/timestamp.proto";
// RetainInfo is used to pass info generated from a database backup to the live garbage collection (gc) process.
// The live process will send it out to the storage nodes.
message RetainInfo {
google.protobuf.Timestamp creation_date = 1 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false];
bytes filter = 2;
// number of pieces to retain on the node through the above bloom filter.
int64 piece_count = 3;
bytes storage_node_id = 4 [(gogoproto.customtype) = "NodeID", (gogoproto.nullable) = false];
}