JetPluginSDK.Tenant (JetPluginSDK v0.1.5)

The Tenant module.

Summary

Types

Link to this type

capabilities()

@type capabilities() :: [JetPluginSDK.Tenant.Capability.t()]
@type config() :: JetPluginSDK.Tenant.Config.t()
@type id() :: String.t()
@type state() ::
  :pending
  | :installing
  | :running
  | :updating
  | :uninstalling
  | :error_occurred
  | :uninstalled
@type t() :: %JetPluginSDK.Tenant{
  capabilities: capabilities(),
  config: config(),
  id: id(),
  state: state()
}

Functions

Link to this function

build_tenant_id(map)

@spec build_tenant_id(%{
  optional(:config) => config(),
  optional(:capabilities) => capabilities(),
  project_id: String.t(),
  env_id: String.t(),
  instance_id: String.t()
}) :: id()
Link to this function

build_tenant_id(project_id, environment_id, instance_id)

@spec build_tenant_id(
  project_id :: String.t(),
  environment_id :: String.t(),
  instance_id :: String.t()
) :: id()
Link to this function

split_tenant_id(tenant_id)

@spec split_tenant_id(id()) ::
  {project_id :: String.t(), environment_id :: String.t(),
   instance_id :: String.t()}