-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
protobuf defintion updates for inventory api
- Loading branch information
chainzero
authored and
chainzero
committed
Oct 26, 2023
1 parent
e2b743b
commit 123293c
Showing
7 changed files
with
102 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
eval "$(direnv hook bash)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
syntax = "proto3"; | ||
|
||
package akash.inventory.v1; | ||
|
||
import "gogoproto/gogo.proto"; | ||
|
||
import "akash/inventory/v1/resourcepair.proto"; | ||
|
||
option go_package = "github.com/akash-network/akash-api/go/inventory/v1"; | ||
|
||
message StorageInfo { | ||
string vendor = 1 [ | ||
(gogoproto.customname) = "Vendor", | ||
(gogoproto.jsontag) = "vendor", | ||
(gogoproto.moretags) = "yaml:\"vendor\"" | ||
]; | ||
string class = 2 [ | ||
(gogoproto.customname) = "Class", | ||
(gogoproto.jsontag) = "class", | ||
(gogoproto.moretags) = "yaml:\"class\"" | ||
]; | ||
string capacity = 3 [ | ||
(gogoproto.customname) = "Capacity", | ||
(gogoproto.jsontag) = "capacity", | ||
(gogoproto.moretags) = "yaml:\"capacity\"" | ||
]; | ||
string IO = 4 [ | ||
(gogoproto.customname) = "IO", | ||
(gogoproto.jsontag) = "io", | ||
(gogoproto.moretags) = "yaml:\"io\"" | ||
]; | ||
} | ||
|
||
message Storage { | ||
ResourcePair quantity = 1 [ | ||
(gogoproto.customname) = "Quantity", | ||
(gogoproto.jsontag) = "quantity", | ||
(gogoproto.moretags) = "yaml:\"quantity\"" | ||
]; | ||
StorageInfo info = 2 [ | ||
(gogoproto.customname) = "Info", | ||
(gogoproto.jsontag) = "info", | ||
(gogoproto.moretags) = "yaml:\"info\"" | ||
]; | ||
} |