ipfs-cluster/api/pb/types.proto
Hector Sanjuan 9362a764e2 PinOptions protobuf: add comment
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2019-02-25 11:21:39 +00:00

27 lines
556 B
Protocol Buffer

syntax = "proto3";
package api.pb;
message Pin {
bytes Cid = 1;
enum PinType {
BadType = 0; // 1 << iota
DataType = 1; // 2 << iota
MetaType = 2;
ClusterDAGType = 3;
ShardType = 4;
}
PinType Type = 2;
repeated bytes Allocations = 3;
sint32 MaxDepth = 4;
bytes Reference = 5;
PinOptions Options = 6;
}
message PinOptions {
sint32 ReplicationFactorMin = 1;
sint32 ReplicationFactorMax = 2;
string Name = 3;
uint64 ShardSize = 4;
reserved 5; // reserved for UserAllocations
map<string, string> Metadata = 6;
}