github.com/hoffie/larasync@v0.0.0-20151025221940-0384d2bddcef/repository/odf/defs.proto (about)

     1  package odf;
     2  
     3  message TransactionContainer {
     4  		required string UUID = 1;
     5  		repeated Transaction transactions = 2;
     6  		optional string previousUUID = 3;
     7  }
     8  
     9  message Transaction {
    10  		required int64 ID = 1;
    11  		repeated string NIBIDs = 2;
    12  		optional int64 previousID = 3;
    13  }
    14  
    15  message NIB {
    16  		required string ID = 1;
    17  		repeated Revision Revisions = 2;
    18  		optional int64 historyOffset = 3;
    19  }
    20  
    21  message Revision {
    22  		required string MetadataID = 1;
    23  		repeated string ContentIDs = 2;
    24  		optional int64 UTCTimestamp = 3;
    25  		optional string DeviceID = 4;
    26  }
    27  
    28  enum NodeType {
    29  		Dir = 0;
    30  		File = 1;
    31  }
    32  
    33  message Metadata {
    34  		required NodeType Type = 1;
    35  		required string RepoRelativePath = 2;
    36  }
    37  
    38  message Authorization {
    39  		required bytes SigningKey = 1;
    40  		required bytes EncryptionKey = 2;
    41  		required bytes HashingKey = 3;
    42  }