feat: update Service data structure (#39)

This commit is contained in:
Aleksey Proshutisnkiy 2023-02-24 14:43:36 +04:00 committed by GitHub
parent 419156c67d
commit d7bc270d36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,6 +20,7 @@ data Service:
blueprint_id: string blueprint_id: string
owner_id: string owner_id: string
aliases: []string aliases: []string
worker_aliases: []string
worker_id: string worker_id: string
data FunctionSignature: data FunctionSignature:
@ -253,7 +254,7 @@ 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 -- Retrieves information about service
-- Argument: service_id ID or alias of the service -- Argument: service_id ID or alias of the service
info(service_id: string) -> Service info(service_id: string) -> Service
@ -310,7 +311,7 @@ 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 a single blueprint
get_blueprint(blueprint_id: string) -> Blueprint get_blueprint(blueprint_id: string) -> Blueprint