@deploystack/docker-to-iac
Version:
Translate docker run and docker compose file to Infrastructure as Code
24 lines (23 loc) • 1.01 kB
TypeScript
/**
* Assertions for validating Render.com Blueprint YAML output
*/
/**
* Asserts that the Render YAML has the correct structure
* @param renderYaml The parsed Render YAML blueprint
* @throws Error if the validation fails
*/
export declare function assertRenderYamlStructure(renderYaml: any): void;
/**
* Validates that the environment variables in the Render YAML match expected values
* @param renderYaml The parsed Render YAML blueprint
* @param expectedEnvVars The expected environment variables
* @returns true if validation passes, false otherwise
*/
export declare function validateEnvironmentVariables(renderYaml: any, expectedEnvVars: Record<string, string>): boolean;
/**
* Validates that the service has the correct disk configuration
* @param renderYaml The parsed Render YAML blueprint
* @param mountPath The expected mount path
* @returns true if validation passes, false otherwise
*/
export declare function validateVolumeMappingInRender(renderYaml: any, mountPath: string): boolean;