github.com/mutagen-io/mutagen@v0.18.0-rc1/pkg/synchronization/core/cache.proto (about)

     1  syntax = "proto3";
     2  
     3  package core;
     4  
     5  option go_package = "github.com/mutagen-io/mutagen/pkg/synchronization/core";
     6  
     7  import "google/protobuf/timestamp.proto";
     8  
     9  // CacheEntry represents cache data for a file on disk.
    10  message CacheEntry {
    11      // Mode stores the value of the POSIX mode bits (i.e. the st_mode member of
    12      // struct stat). On Windows, this value is computed using the Go os.FileMode
    13      // value retrieved through the os package (for which bit definitions are
    14      // guaranteed to be stable).
    15      uint32 mode = 1;
    16  
    17      // ModificationTime is the cached modification time.
    18      google.protobuf.Timestamp modificationTime = 2;
    19  
    20      // Size is the cached size.
    21      uint64 size = 3;
    22  
    23      // FileID is the file identifier. On POSIX systems it is the inode number.
    24      // On Windows it is currently 0.
    25      uint64 fileID = 4;
    26  
    27      // Fields 5-8 are reserved for future common metadata.
    28  
    29      // Digest is the cached digest for file entries.
    30      bytes digest = 9;
    31  }
    32  
    33  // Cache provides a store for file metadata and digets to allow for efficient
    34  // rescans.
    35  message Cache {
    36      // Entries is a map from scan path to cache entry.
    37      map<string, CacheEntry> entries = 1;
    38  }