Skip to content

Latest commit

 

History

History
789 lines (399 loc) · 20.1 KB

provider.md

File metadata and controls

789 lines (399 loc) · 20.1 KB

Protobuf Documentation

Table of Contents

Top

akash/manifest/v2beta1/group.proto

Group

Group store name and list of services

Field Type Label Description
name string
services Service repeated

Top

akash/manifest/v2beta1/httpoptions.proto

ServiceExposeHTTPOptions

ServiceExposeHTTPOptions

Field Type Label Description
max_body_size uint32
read_timeout uint32
send_timeout uint32
next_tries uint32
next_timeout uint32
next_cases string repeated

Top

akash/manifest/v2beta1/serviceexpose.proto

ServiceExpose

ServiceExpose stores exposed ports and hosts details

Field Type Label Description
port uint32 port on the container
external_port uint32 port on the service definition
proto string
service string
global bool
hosts string repeated
http_options ServiceExposeHTTPOptions
ip string The name of the IP address associated with this, if any
endpoint_sequence_number uint32 The sequence number of the associated endpoint in the on-chain data

Top

akash/manifest/v2beta1/service.proto

Service

Service stores name, image, args, env, unit, count and expose list of service

Field Type Label Description
name string
image string
command string repeated
args string repeated
env string repeated
resources akash.base.v1beta2.ResourceUnits
count uint32
expose ServiceExpose repeated
params ServiceParams

ServiceParams

ServiceParams

Field Type Label Description
storage StorageParams repeated

StorageParams

StorageParams

Field Type Label Description
name string
mount string
read_only bool

Top

akash/manifest/v2beta2/group.proto

Group

Group store name and list of services

Field Type Label Description
name string
services Service repeated

Top

akash/manifest/v2beta2/httpoptions.proto

ServiceExposeHTTPOptions

ServiceExposeHTTPOptions

Field Type Label Description
max_body_size uint32
read_timeout uint32
send_timeout uint32
next_tries uint32
next_timeout uint32
next_cases string repeated

Top

akash/manifest/v2beta2/serviceexpose.proto

ServiceExpose

ServiceExpose stores exposed ports and hosts details

Field Type Label Description
port uint32 port on the container
external_port uint32 port on the service definition
proto string
service string
global bool
hosts string repeated
http_options ServiceExposeHTTPOptions
ip string The name of the IP address associated with this, if any
endpoint_sequence_number uint32 The sequence number of the associated endpoint in the on-chain data

Top

akash/manifest/v2beta2/service.proto

Service

Service stores name, image, args, env, unit, count and expose list of service

Field Type Label Description
name string
image string
command string repeated
args string repeated
env string repeated
resources akash.base.v1beta3.Resources
count uint32
expose ServiceExpose repeated
params ServiceParams

ServiceParams

ServiceParams

Field Type Label Description
storage StorageParams repeated

StorageParams

StorageParams

Field Type Label Description
name string
mount string
read_only bool

Top

akash/inventory/v1/memory.proto

Memory

Memory reports Memory inventory details

Field Type Label Description
quantity ResourcePair
info MemoryInfo repeated

MemoryInfo

MemoryInfo reports Memory details

Field Type Label Description
vendor string
type string
total_size string
speed string

Top

akash/inventory/v1/cpu.proto

CPU

CPU reports CPU inventory details

Field Type Label Description
quantity ResourcePair
info CPUInfo repeated

CPUInfo

CPUInfo reports CPU details

Field Type Label Description
id string
vendor string
model string
vcores uint32

Top

akash/inventory/v1/cluster.proto

Cluster

Cluster reports inventory across entire cluster

Field Type Label Description
nodes Node repeated
storage Storage repeated

Top

akash/inventory/v1/node.proto

Node

Node reports node inventory details

Field Type Label Description
cpu CPU
memory Memory
gpu GPU
storage Storage

Top

akash/inventory/v1/resourcepair.proto

ResourcePair

ResourcePair to extents resource.Quantity to provide total and available units of the resource

Field Type Label Description
allocatable k8s.io.apimachinery.pkg.api.resource.Quantity
allocated k8s.io.apimachinery.pkg.api.resource.Quantity
attributes akash.base.v1beta3.Attribute repeated

Top

akash/inventory/v1/gpu.proto

GPU

GPUInfo reports GPU inventory details

Field Type Label Description
quantity ResourcePair
info GPUInfo repeated

GPUInfo

GPUInfo reports GPU details

Field Type Label Description
vendor string
name string
modelid string
interface string
memory_size string

Top

akash/inventory/v1/storage.proto

Storage

Storage reports Storage inventory details

Field Type Label Description
quantity ResourcePair
info StorageInfo

StorageInfo

StorageInfo reports Storage details

Field Type Label Description
class string
iops string

Top

akash/inventory/v1/service.proto

VoidNoParam

voidNoParam dummy param for RPC services

ClusterRPC

ClusterRPC defines the RPC server of cluster

Method Name Request Type Response Type Description HTTP Verb Endpoint
QueryCluster VoidNoParam Cluster stream QueryNode defines a method to query and stream hardware state of the cluster buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE buf:lint:ignore RPC_RESPONSE_STANDARD_NAME

NodeRPC

NodeRPC defines the RPC server of node

Method Name Request Type Response Type Description HTTP Verb Endpoint
QueryNode VoidNoParam Node stream QueryNode defines a method to query and stream hardware state of the node buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE buf:lint:ignore RPC_RESPONSE_STANDARD_NAME

Scalar Value Types

.proto Type Notes C++ Java Python Go C# PHP Ruby
double double double float float64 double float Float
float float float float float32 float float Float
int32 Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. int32 int int int32 int integer Bignum or Fixnum (as required)
int64 Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. int64 long int/long int64 long integer/string Bignum
uint32 Uses variable-length encoding. uint32 int int/long uint32 uint integer Bignum or Fixnum (as required)
uint64 Uses variable-length encoding. uint64 long int/long uint64 ulong integer/string Bignum or Fixnum (as required)
sint32 Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. int32 int int int32 int integer Bignum or Fixnum (as required)
sint64 Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. int64 long int/long int64 long integer/string Bignum
fixed32 Always four bytes. More efficient than uint32 if values are often greater than 2^28. uint32 int int uint32 uint integer Bignum or Fixnum (as required)
fixed64 Always eight bytes. More efficient than uint64 if values are often greater than 2^56. uint64 long int/long uint64 ulong integer/string Bignum
sfixed32 Always four bytes. int32 int int int32 int integer Bignum or Fixnum (as required)
sfixed64 Always eight bytes. int64 long int/long int64 long integer/string Bignum
bool bool boolean boolean bool bool boolean TrueClass/FalseClass
string A string must always contain UTF-8 encoded or 7-bit ASCII text. string String str/unicode string string string String (UTF-8)
bytes May contain any arbitrary sequence of bytes. string ByteString str []byte ByteString string String (ASCII-8BIT)