genezio
Version:
Command line utility to interact with Genezio infrastructure.
11 lines (10 loc) • 530 B
JavaScript
import { CloudProviderIdentifier } from "../../models/cloudProviderIdentifier.js";
import { GenezioRuntimeGoBundler } from "./genezioRuntimeGoBundler.js";
import { LambdaGoBundler } from "./lambdaGoBundler.js";
export function NewGoBundler(projectConfiguration) {
if (projectConfiguration.cloudProvider == CloudProviderIdentifier.GENEZIO_UNIKERNEL ||
projectConfiguration.cloudProvider == CloudProviderIdentifier.GENEZIO_CLOUD) {
return new GenezioRuntimeGoBundler();
}
return new LambdaGoBundler();
}