@deploystack/docker-to-iac
Version:
Translate docker run and docker compose file to Infrastructure as Code
16 lines (15 loc) • 638 B
TypeScript
export interface PropertyMapping {
render: string;
digitalOcean: string;
}
export declare const servicePropertyMappings: Record<string, PropertyMapping>;
export declare const databasePropertyMappings: Record<string, PropertyMapping>;
/**
* Gets the correct property name for a specific provider
*
* @param property - The generic property name
* @param provider - The target provider
* @param isDatabase - Whether this is a database property
* @returns The provider-specific property name
*/
export declare function getPropertyForProvider(property: string, provider: 'render' | 'digitalOcean', isDatabase: boolean): string;