mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-05-04 21:37:11 -04:00

New tool to validate docker-compose.yml files against Docker Compose Specification Fix part of #540
19 lines
No EOL
964 B
TypeScript
19 lines
No EOL
964 B
TypeScript
declare module 'composeverter' {
|
|
interface Configuration {
|
|
expandVolumes?: boolean;
|
|
expandPorts?: boolean;
|
|
indent?: number;
|
|
}
|
|
interface DockerComposeValidatioError {
|
|
line?: number;
|
|
message: string;
|
|
helpLink?: string;
|
|
}
|
|
export function validateDockerComposeToCommonSpec(content: string): DockerComposeValidatioError[];
|
|
export function migrateFromV2xToV3x(content: string, configuration?: Configuration = null): string;
|
|
export function migrateFromV3xToV2x(content: string, configuration?: Configuration = null): string;
|
|
export function migrateFromV1ToV2x(content: string, configuration?: Configuration = null): string;
|
|
export function migrateToCommonSpec(content: string, configuration?: Configuration = null): string;
|
|
export function migrateFromV2xToV3x(content: string, configuration?: Configuration = null): string;
|
|
export function getDockerComposeSchemaWithoutFormats(): object;
|
|
} |