Skip to content

Commit

Permalink
add memory.proto
Browse files Browse the repository at this point in the history
  • Loading branch information
chainzero authored and chainzero committed Oct 26, 2023
1 parent 87d0763 commit be66142
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions proto/provider/akash/inventory/v1/memory.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
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 MemoryInfo {
string vendor = 1 [
(gogoproto.customname) = "Vendor",
(gogoproto.jsontag) = "vendor",
(gogoproto.moretags) = "yaml:\"vendor\""
];
string type = 2 [
(gogoproto.customname) = "Type",
(gogoproto.jsontag) = "type",
(gogoproto.moretags) = "yaml:\"type\""
];
string size = 3 [
(gogoproto.customname) = "Size",
(gogoproto.jsontag) = "size",
(gogoproto.moretags) = "yaml:\"size\""
];
string speed = 4 [
(gogoproto.customname) = "Speed",
(gogoproto.jsontag) = "speed",
(gogoproto.moretags) = "yaml:\"speed\""
];
}

message Memory {
ResourcePair quantity = 1 [
(gogoproto.customname) = "Quantity",
(gogoproto.jsontag) = "quantity",
(gogoproto.moretags) = "yaml:\"quantity\""
];

repeated MemoryInfo info = 2 [
(gogoproto.customname) = "Info",
(gogoproto.jsontag) = "info",
(gogoproto.moretags) = "yaml:\"info\""
];
}

0 comments on commit be66142

Please sign in to comment.