waft.system.clients.models module

Models for system clients.

class waft.system.clients.models.AgentConnectionInfo(url: str, token: str)

Bases: object

Connection parameters for the WAFT agent API.

token: str
url: str
class waft.system.clients.models.HttpResult(stdout: str, stderr: str, exited: int, command: str)

Bases: Result

Wraps HTTP API response as an invoke-compatible Result.

class waft.system.clients.models.SubprocessResult(process: CompletedProcess)

Bases: Result

Wraps subprocess.CompletedProcess as an invoke-compatible Result.

waft.system.clients.models.load_agent_token() str

Load authentication token from the agent token file.

Returns:

The token string.

Raises:

FileNotFoundError – If the token file doesn’t exist.