mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-05-05 05:47:10 -04:00
feat(new tool): Docker Compose Validator
New tool to validate docker-compose.yml files against Docker Compose Specification Fix part of #540
This commit is contained in:
parent
d3b32cc14e
commit
c49ff00c31
6 changed files with 141 additions and 11 deletions
19
src/tools/docker-compose-validator/composeverter.d.ts
vendored
Normal file
19
src/tools/docker-compose-validator/composeverter.d.ts
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue