Hyper.Firecracker.Api.Drive (Hyper v0.1.0)

Copy Markdown View Source

Provides struct and type for a Drive

Summary

Functions

Build a Hyper.Firecracker.Api.Drive from a decoded-JSON map. Compile-time generated.

Types

t()

@type t() :: %Hyper.Firecracker.Api.Drive{
  __info__: any(),
  cache_type: String.t() | nil,
  drive_id: String.t(),
  io_engine: String.t() | nil,
  is_read_only: boolean() | nil,
  is_root_device: boolean(),
  partuuid: String.t() | nil,
  path_on_host: String.t() | nil,
  rate_limiter: Hyper.Firecracker.Api.RateLimiter.t() | nil,
  socket: String.t() | nil
}

Functions

decode(data)

@spec decode(term()) :: t() | nil | term()

Build a Hyper.Firecracker.Api.Drive from a decoded-JSON map. Compile-time generated.