Tank.Mount (Tank v0.1.0)

Copy Markdown View Source

A Tank.Volume mounted into a container at an absolute in-rootfs path.

volume names a pod-level Tank.Volume; Tank.Pod.new/1 checks that the reference resolves to a defined volume.

Summary

Functions

Build a validated mount from a map or keyword list.

Like new/1 but raises ArgumentError on invalid input.

Types

t()

@type t() :: %Tank.Mount{path: String.t(), read_only: boolean(), volume: String.t()}

Functions

new(attrs)

@spec new(map() | keyword()) :: {:ok, t()} | {:error, term()}

Build a validated mount from a map or keyword list.

new!(attrs)

@spec new!(map() | keyword()) :: t()

Like new/1 but raises ArgumentError on invalid input.