From 94ff99be242f73b4145bd870eefcb18f55e0c12b Mon Sep 17 00:00:00 2001 From: folex <0xdxdy@gmail.com> Date: Wed, 15 Feb 2023 19:07:33 +0700 Subject: [PATCH] feat!(builtins): srv.info, dist.get_blueprint (#34) --- builtin.aqua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/builtin.aqua b/builtin.aqua index a21e65b..5d3646a 100644 --- a/builtin.aqua +++ b/builtin.aqua @@ -20,6 +20,7 @@ data Service: blueprint_id: string owner_id: string aliases: []string + worker_id: string data FunctionSignature: arguments: []Argument @@ -252,6 +253,10 @@ service Srv("srv"): -- on the node specified in the service call -- Argument: service_id – ID of the service whose interface you want to retrieve. 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"): -- 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. -- A blueprint is an object of the following structure list_blueprints() -> []Blueprint + + -- Get a single blueprint + get_blueprint(blueprint_id: string) -> Blueprint service Script("script"): -- Adds the given script to a node