mirror of
https://github.com/fluencelabs/aqua-lib
synced 2025-05-30 16:11:37 +00:00
feat!(builtins): srv.info, dist.get_blueprint (#34)
This commit is contained in:
parent
f9ff829413
commit
94ff99be24
@ -20,6 +20,7 @@ data Service:
|
|||||||
blueprint_id: string
|
blueprint_id: string
|
||||||
owner_id: string
|
owner_id: string
|
||||||
aliases: []string
|
aliases: []string
|
||||||
|
worker_id: string
|
||||||
|
|
||||||
data FunctionSignature:
|
data FunctionSignature:
|
||||||
arguments: []Argument
|
arguments: []Argument
|
||||||
@ -252,6 +253,10 @@ service Srv("srv"):
|
|||||||
-- on the node specified in the service call
|
-- on the node specified in the service call
|
||||||
-- Argument: service_id – ID of the service whose interface you want to retrieve.
|
-- Argument: service_id – ID of the service whose interface you want to retrieve.
|
||||||
get_interface(service_id: string) -> Interface
|
get_interface(service_id: string) -> Interface
|
||||||
|
|
||||||
|
-- Retrieves information about service
|
||||||
|
-- Argument: service_id – ID or alias of the service
|
||||||
|
info(service_id: string) -> Service
|
||||||
|
|
||||||
service Dist("dist"):
|
service Dist("dist"):
|
||||||
-- Constructs a ModuleConfig structure
|
-- Constructs a ModuleConfig structure
|
||||||
@ -305,6 +310,9 @@ service Dist("dist"):
|
|||||||
-- Used to get the blueprints available on the node specified in the service call.
|
-- Used to get the blueprints available on the node specified in the service call.
|
||||||
-- A blueprint is an object of the following structure
|
-- A blueprint is an object of the following structure
|
||||||
list_blueprints() -> []Blueprint
|
list_blueprints() -> []Blueprint
|
||||||
|
|
||||||
|
-- Get a single blueprint
|
||||||
|
get_blueprint(blueprint_id: string) -> Blueprint
|
||||||
|
|
||||||
service Script("script"):
|
service Script("script"):
|
||||||
-- Adds the given script to a node
|
-- Adds the given script to a node
|
||||||
|
Loading…
x
Reference in New Issue
Block a user