ExAtlas.Providers.RunPod.Pods (ExAtlas v0.5.0)

Copy Markdown View Source

Thin wrappers over RunPod's REST /pods endpoints. Each function returns {:ok, body} | {:error, ExAtlas.Error.t()}.

Translation between ExAtlas.Spec.ComputeRequest and RunPod's native payload lives in ExAtlas.Providers.RunPod.Translate.

Summary

Functions

POST /pods — create a pod. body is already in RunPod's native shape.

DELETE /pods/:id — terminate a pod.

GET /pods/:id — fetch a pod.

GET /pods — list pods with optional query params.

POST /pods/:id/start — resume a stopped pod.

POST /pods/:id/stop — stop a pod (keeps volume).

Functions

create(ctx, body)

POST /pods — create a pod. body is already in RunPod's native shape.

delete(ctx, id)

DELETE /pods/:id — terminate a pod.

get(ctx, id)

GET /pods/:id — fetch a pod.

list(ctx, params \\ [])

GET /pods — list pods with optional query params.

start(ctx, id)

POST /pods/:id/start — resume a stopped pod.

stop(ctx, id)

POST /pods/:id/stop — stop a pod (keeps volume).