SealSkin
Server Referenceprovidersbase_provider

BaseProvider

Abstract base class for all application providers.

Attributes

attributeapp_config
= app_config

Functions

constructor__init__(app_config) -> None

Initialise the provider with an application configuration.

paramapp_configdict[str, Any]

Resolved application dictionary (InstalledApp shape) including provider_config.

Returns

None
funclaunch(session_id, env_vars, volumes=None, gpu_config=None, network=None, is_collaboration=False, master_token=None, initial_tokens=None) -> dict[str, Any]

Launch an instance of the application.

paramsession_idstr

Unique id of the session.

paramenv_varsdict[str, str]

Environment variables for the instance.

paramvolumesdict[str, Any] | None
= None

Volume mounts in Docker SDK format.

paramgpu_configdict[str, Any] | None
= None

GPU details when a GPU was requested.

paramnetworkstr | None
= None

Network to attach the instance to.

paramis_collaborationbool
= False

Whether this is a collaboration session.

parammaster_tokenstr | None
= None

Master token of the downstream control plane.

paraminitial_tokensdict[str, Any] | None
= None

Initial token set for the downstream control plane.

Returns

dict

{"instance_id": str, "ip": str, "port": int}.

funcstop(instance_id) -> None

Stop a running instance.

paraminstance_idstr

Identifier returned by launch.

Returns

None

On this page