diff options
author | あく <alleteam@gmail.com> | 2022-11-03 19:39:25 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-03 19:39:25 +0300 |
commit | a3dabb281966c25da481f9708f7314118e89c693 (patch) | |
tree | f144a695a924d032176a5e00fd702d556fe36dab | |
parent | 6727eaf287db077dcd28719cd764f5804712223e (diff) |
Storage: add timestamp (#38)
* Storage: add timestamp
* Update actions
* Fix typo in workflow
* Github: update codeowners
Co-authored-by: DrunkBatya <drunkbatya.js@gmail.com>
-rw-r--r-- | .github/CODEOWNERS | 5 | ||||
-rw-r--r-- | .github/workflows/generate.yml | 10 | ||||
-rw-r--r-- | Changelog | 5 | ||||
-rw-r--r-- | storage.options | 1 | ||||
-rw-r--r-- | storage.proto | 8 |
5 files changed, 21 insertions, 8 deletions
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 5ee29a4..dfe56a0 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,6 +1,3 @@ # Who owns all the code by default -* @DrZlo13 @skotopes @gornekich @nminaylov - -# CI -.github/** @DrZlo13 @aprosvetova @skotopes @gornekich @nminaylov
\ No newline at end of file +* @DrZlo13 @skotopes @gornekich @nminaylov @hedger diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml index 7cb0185..16d34a7 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/generate.yml @@ -1,6 +1,6 @@ name: 'Generate protobuf sources' -on: +on: push: jobs: @@ -17,10 +17,14 @@ jobs: path: nanopb - name: Setup python - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 + with: + python-version: '3.9' - name: Setup protobuf - run: sudo apt-get -y install protobuf-compiler && python -m pip install --upgrade python3-protobuf==2.5.0 protobuf==3.20.1 grpcio-tools==1.47.0 grpcio==1.47.0 + run: | + sudo apt -y install protobuf-compiler + python3 -m pip install --upgrade python3-protobuf==2.5.0 protobuf==3.20.1 grpcio-tools==1.47.0 grpcio==1.47.0 - name: Generate sources run: python3 nanopb/generator/nanopb_generator.py -q -I . -D /tmp *.proto @@ -1,9 +1,12 @@ # Changelog +## [0.13] +### Added +- Storage: timestamp ## [0.12] ### Added -- Region message +- Region message ## [0.11] ### Added diff --git a/storage.options b/storage.options index fe07c54..2bbb48d 100644 --- a/storage.options +++ b/storage.options @@ -1,6 +1,7 @@ PB_Storage.File.name type:FT_POINTER PB_Storage.File.data type:FT_POINTER PB_Storage.InfoRequest.path type:FT_POINTER +PB_Storage.TimestampRequest.path type:FT_POINTER PB_Storage.StatRequest.path type:FT_POINTER PB_Storage.ListRequest.path type:FT_POINTER PB_Storage.ReadRequest.path type:FT_POINTER diff --git a/storage.proto b/storage.proto index 0e03ebc..286bd3a 100644 --- a/storage.proto +++ b/storage.proto @@ -23,6 +23,14 @@ message InfoResponse { uint64 free_space = 2; } +message TimestampRequest { + string path = 1; +} + +message TimestampResponse { + uint32 timestamp = 1; +} + message StatRequest { string path = 1; } |