Spectre.Stack.Installation (Spectre v0.3.0)

Copy Markdown View Source

Immutable result of compiling one package inside a Stack.

Installation values contain only inspected configuration and logical capability declarations. Runtime handles are created later by Spectre.Stack.Runtime.

Summary

Functions

Converts a legacy Spectre.Extension.Mount into an immutable installation.

Converts a legacy Spectre.Action.Provider.Mount into an installation.

Types

t()

@type t() :: %Spectre.Stack.Installation{
  actions: [term()],
  adapters: map(),
  config: map() | keyword(),
  digest: String.t() | nil,
  id: term(),
  legacy?: boolean(),
  operations: [term()],
  package: Spectre.Stack.Package.t(),
  provides: [term()],
  resources: [term()]
}

Functions

from_extension_mount(mount)

@spec from_extension_mount(Spectre.Extension.Mount.t()) :: t()

Converts a legacy Spectre.Extension.Mount into an immutable installation.

from_provider_mount(mount)

@spec from_provider_mount(Spectre.Action.Provider.Mount.t()) :: t()

Converts a legacy Spectre.Action.Provider.Mount into an installation.