HostKit.Addr.Resource (host_kit v0.1.0-beta.0)

Copy Markdown View Source

Stable address for a resource declaration.

Summary

Types

mode()

@type mode() :: :managed | :data | :ephemeral

t()

@type t() :: %HostKit.Addr.Resource{
  mode: mode(),
  name: atom() | String.t(),
  type: atom()
}

Functions

new(type, name, opts \\ [])

@spec new(atom(), atom() | String.t(), keyword()) :: t()