Bsdkrun.Types (bsdkrun_ex v0.1.0)

Copy Markdown View Source

Typed structs mirroring bsdkrun's JSON output, plus mapping helpers that turn a decoded --json row (string keys) into the corresponding struct.

Summary

Functions

Map an images --json row to an ImageInfo.

Map a network ls --json row to a NetworkInfo.

Map a ps --json row to a SandboxInfo.

Map a volume ls --json row to a VolumeInfo.

Functions

image_info(row)

@spec image_info(map()) :: Bsdkrun.Types.ImageInfo.t()

Map an images --json row to an ImageInfo.

network_info(row)

@spec network_info(map()) :: Bsdkrun.Types.NetworkInfo.t()

Map a network ls --json row to a NetworkInfo.

sandbox_info(row)

@spec sandbox_info(map()) :: Bsdkrun.Types.SandboxInfo.t()

Map a ps --json row to a SandboxInfo.

volume_info(row)

@spec volume_info(map()) :: Bsdkrun.Types.VolumeInfo.t()

Map a volume ls --json row to a VolumeInfo.