Stevedore.Transport.Memory (Stevedore v0.1.0)

Copy Markdown View Source

A read-only Stevedore.Transport backed by an in-memory Stevedore.Image.

Lets a freshly built or mutated image be a Stevedore.copy/3 source without first writing it anywhere. Write callbacks return {:error, :read_only}.

Summary

Functions

Wraps an image as a read-only transport.

Types

t()

@type t() :: %Stevedore.Transport.Memory{image: Stevedore.Image.t()}

Functions

from_image(image)

@spec from_image(Stevedore.Image.t()) :: t()

Wraps an image as a read-only transport.