HostKit.Service (host_kit v0.1.0-beta.5)

Copy Markdown View Source

A named group of resources that make up an application or host capability.

Summary

Types

t()

@type t() :: %HostKit.Service{
  identity: String.t(),
  meta: map(),
  name: atom(),
  path: String.t(),
  resources: [struct()]
}

Functions

add_resource(service, resource)

@spec add_resource(
  t(),
  struct()
) :: t()

new(name, opts \\ [])

@spec new(
  atom(),
  keyword()
) :: t()