aboutsummaryrefslogtreecommitdiffstats
path: root/src/metadata_msgs.proto
blob: 8de4949e567c139ced58133f6f59f1cfb0c6e92d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
syntax = "proto2";

// File copied from: https://github.com/mafintosh/hyperdrive/blob/master/lib/messages.js
// Copyright (c) 2015 Mathias Buus
// MIT License (MIT)


message Index {
  required string type = 1;
  optional bytes content = 2;
}

message Stat {
  required uint32 mode = 1;
  optional uint32 uid = 2;
  optional uint32 gid = 3;
  optional uint64 size = 4;
  optional uint64 blocks = 5;
  optional uint64 offset = 6;
  optional uint64 byteOffset = 7;
  optional uint64 mtime = 8;
  optional uint64 ctime = 9;
}

// File copied from: https://github.com/mafintosh/append-tree/blob/master/schema.proto
// Copyright (c) 2015 Mathias Buus
// MIT License (MIT)

message Node {
  required string name = 1;
  optional bytes value = 2;
  optional bytes paths = 3;
}