2019-02-19 17:59:46 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
package api.pb;
|
|
|
|
|
2020-04-14 18:41:43 +00:00
|
|
|
option go_package=".;pb";
|
|
|
|
|
2019-02-19 17:59:46 +00:00
|
|
|
message Pin {
|
|
|
|
enum PinType {
|
|
|
|
BadType = 0; // 1 << iota
|
|
|
|
DataType = 1; // 2 << iota
|
|
|
|
MetaType = 2;
|
|
|
|
ClusterDAGType = 3;
|
|
|
|
ShardType = 4;
|
|
|
|
}
|
2020-04-17 10:57:49 +00:00
|
|
|
|
|
|
|
bytes Cid = 1;
|
2019-02-19 17:59:46 +00:00
|
|
|
PinType Type = 2;
|
|
|
|
repeated bytes Allocations = 3;
|
|
|
|
sint32 MaxDepth = 4;
|
|
|
|
bytes Reference = 5;
|
2019-02-20 12:49:30 +00:00
|
|
|
PinOptions Options = 6;
|
|
|
|
}
|
|
|
|
|
|
|
|
message PinOptions {
|
|
|
|
sint32 ReplicationFactorMin = 1;
|
|
|
|
sint32 ReplicationFactorMax = 2;
|
|
|
|
string Name = 3;
|
|
|
|
uint64 ShardSize = 4;
|
2019-02-25 11:21:39 +00:00
|
|
|
reserved 5; // reserved for UserAllocations
|
2019-02-20 12:49:30 +00:00
|
|
|
map<string, string> Metadata = 6;
|
2019-07-12 14:40:29 +00:00
|
|
|
bytes PinUpdate = 7;
|
2019-09-18 16:05:55 +00:00
|
|
|
uint64 ExpireAt = 8;
|
2021-07-01 23:42:51 +00:00
|
|
|
repeated bytes Origins = 9;
|
2019-02-19 17:59:46 +00:00
|
|
|
}
|