View Source Lightning.MetadataService (Lightning v2.10.4)

Retrieves metadata for a given credential and adaptor using the OpenFn CLI.

Summary

Functions

Retrieve metadata for a given adaptor and credential.

Functions

Link to this function

fetch(adaptor, credential)

View Source
@spec fetch(adaptor :: String.t(), Lightning.Credentials.Credential.t()) ::
  {:ok, %{optional(binary()) => binary()}}
  | {:error, Lightning.MetadataService.Error.t()}

Retrieve metadata for a given adaptor and credential.

The adaptor must be an npm specification.