Skip to main content

Class: SecureResolver

Constructors

constructor

โ€ข new SecureResolver(config)

Parameters

NameType
configSecureResolverSdkConfig

Defined in

lunadefend/js/sdks/packages/node-sdk/src/secure-resolver/index.ts:77

Properties

config

โ€ข Readonly config: SecureResolverSdkConfig

Defined in

lunadefend/js/sdks/packages/node-sdk/src/secure-resolver/index.ts:57


functionConfig

โ€ข Readonly functionConfig: FunctionConfig

Defined in

lunadefend/js/sdks/packages/node-sdk/src/secure-resolver/index.ts:59


refineryHeaders

โ€ข Readonly refineryHeaders: Record<string, string>

Defined in

lunadefend/js/sdks/packages/node-sdk/src/secure-resolver/index.ts:61


containerHeaders

โ€ข Readonly containerHeaders: Record<string, string>

Defined in

lunadefend/js/sdks/packages/node-sdk/src/secure-resolver/index.ts:62


apiClient

โ€ข Readonly apiClient: GenericApiClient

Defined in

lunadefend/js/sdks/packages/node-sdk/src/secure-resolver/index.ts:64


functionStageLookup

โ€ข Readonly functionStageLookup: Record<DeploymentStage, SecureResolverFunctions>

Defined in

lunadefend/js/sdks/packages/node-sdk/src/secure-resolver/index.ts:66

Methods

wrap

โ–ธ wrap<T, U>(fn): (...args: T) => Promise<undefined | U>

Type parameters

NameType
Textends unknown[]
UU

Parameters

NameType
fn(...args: T) => U

Returns

fn

โ–ธ (...args): Promise<undefined | U>

Parameters
NameType
...argsT
Returns

Promise<undefined | U>

Defined in

lunadefend/js/sdks/packages/node-sdk/src/secure-resolver/index.ts:127


deploy

โ–ธ deploy(containerUri): Promise<SecureEnclaveFailApiResponse | SecureEnclaveSuccessApiResponse<BuildResolverResponse>>

Parameters

NameType
containerUristring

Returns

Promise<SecureEnclaveFailApiResponse | SecureEnclaveSuccessApiResponse<BuildResolverResponse>>

Defined in

lunadefend/js/sdks/packages/node-sdk/src/secure-resolver/index.ts:146


deployDev

โ–ธ deployDev(containerUri): Promise<SecureEnclaveFailApiResponse | SecureEnclaveSuccessApiResponse<BuildResolverResponse>>

Parameters

NameType
containerUristring

Returns

Promise<SecureEnclaveFailApiResponse | SecureEnclaveSuccessApiResponse<BuildResolverResponse>>

Defined in

lunadefend/js/sdks/packages/node-sdk/src/secure-resolver/index.ts:152


deployProd

โ–ธ deployProd(containerUri): Promise<SecureEnclaveFailApiResponse | SecureEnclaveSuccessApiResponse<BuildResolverResponse>>

Parameters

NameType
containerUristring

Returns

Promise<SecureEnclaveFailApiResponse | SecureEnclaveSuccessApiResponse<BuildResolverResponse>>

Defined in

lunadefend/js/sdks/packages/node-sdk/src/secure-resolver/index.ts:160


call

โ–ธ call(functionName, args): Promise<FunctionInvocationResult>

Parameters

NameType
functionNamestring
argsunknown

Returns

Promise<FunctionInvocationResult>

Defined in

lunadefend/js/sdks/packages/node-sdk/src/secure-resolver/index.ts:192


callDev

โ–ธ callDev(functionName, functionArgs): Promise<FunctionInvocationResult>

Parameters

NameType
functionNamestring
functionArgsunknown

Returns

Promise<FunctionInvocationResult>

Defined in

lunadefend/js/sdks/packages/node-sdk/src/secure-resolver/index.ts:197


callProd

โ–ธ callProd(functionName, functionArgs): Promise<FunctionInvocationResult>

Parameters

NameType
functionNamestring
functionArgsunknown

Returns

Promise<FunctionInvocationResult>

Defined in

lunadefend/js/sdks/packages/node-sdk/src/secure-resolver/index.ts:241


getFunctionUrl

โ–ธ getFunctionUrl(deploymentId): Promise<SecureEnclaveFailApiResponse | SecureEnclaveSuccessApiResponse<GetResolverUrlResponse>>

Parameters

NameType
deploymentIdstring

Returns

Promise<SecureEnclaveFailApiResponse | SecureEnclaveSuccessApiResponse<GetResolverUrlResponse>>

Defined in

lunadefend/js/sdks/packages/node-sdk/src/secure-resolver/index.ts:287


removeDeployment

โ–ธ removeDeployment(): Promise<SecureEnclaveFailApiResponse | SecureEnclaveSuccessApiResponse<RemoveResolverResponse>>

Returns

Promise<SecureEnclaveFailApiResponse | SecureEnclaveSuccessApiResponse<RemoveResolverResponse>>

Defined in

lunadefend/js/sdks/packages/node-sdk/src/secure-resolver/index.ts:296


listFunctions

โ–ธ listFunctions(deploymentId): Promise<SecureEnclaveFailApiResponse | SecureEnclaveSuccessApiResponse<ListFunctionsResponse>>

Parameters

NameType
deploymentIdstring

Returns

Promise<SecureEnclaveFailApiResponse | SecureEnclaveSuccessApiResponse<ListFunctionsResponse>>

Defined in

lunadefend/js/sdks/packages/node-sdk/src/secure-resolver/index.ts:305


listDeployments

โ–ธ listDeployments(): Promise<SecureEnclaveFailApiResponse | SecureEnclaveSuccessApiResponse<ListDeploymentsResponse>>

Returns

Promise<SecureEnclaveFailApiResponse | SecureEnclaveSuccessApiResponse<ListDeploymentsResponse>>

Defined in

lunadefend/js/sdks/packages/node-sdk/src/secure-resolver/index.ts:315