MCPcopy Create free account
hub / github.com/api3dao/airnode / cloudProviderHashElements

Function cloudProviderHashElements

packages/airnode-node/src/workers/index.ts:30–40  ·  view source on GitHub ↗
(cloudProvider: LocalOrCloudProvider)

Source from the content-addressed store, hash-verified

28}
29
30function cloudProviderHashElements(cloudProvider: LocalOrCloudProvider) {
31 const hashElements: string[] = [cloudProvider.type];
32 if (cloudProvider.type !== 'local') {
33 hashElements.push(cloudProvider.region);
34 }
35 if (cloudProvider.type === 'gcp') {
36 hashElements.push(cloudProvider.projectId);
37 }
38
39 return hashElements;
40}
41
42export function deriveDeploymentId(
43 cloudProvider: LocalOrCloudProvider,

Callers 2

deriveDeploymentIdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected