UNPKG

snyk-docker-plugin

Version:
78 lines (77 loc) 2.37 kB
/** * Validates a Docker image reference format using the official Docker reference regex. * @param imageReference The Docker image reference to validate * @returns true if valid, false if invalid */ export declare function isValidDockerImageReference(imageReference: string): boolean; export declare const RESPONSE_SIZE_LIMITS: { readonly "containerConfig.data.user": { readonly type: "string"; readonly limit: 1024; }; readonly "containerConfig.data.exposedPorts": { readonly type: "array"; readonly limit: 500; }; readonly "containerConfig.data.exposedPorts[*]": { readonly type: "string"; readonly limit: 64; }; readonly "containerConfig.data.env": { readonly type: "array"; readonly limit: 500; }; readonly "containerConfig.data.env[*]": { readonly type: "string"; readonly limit: 1024; }; readonly "containerConfig.data.entrypoint": { readonly type: "array"; readonly limit: 500; }; readonly "containerConfig.data.entrypoint[*]": { readonly type: "string"; readonly limit: 1024; }; readonly "containerConfig.data.cmd": { readonly type: "array"; readonly limit: 500; }; readonly "containerConfig.data.cmd[*]": { readonly type: "string"; readonly limit: 1024; }; readonly "containerConfig.data.volumes": { readonly type: "array"; readonly limit: 500; }; readonly "containerConfig.data.volumes[*]": { readonly type: "string"; readonly limit: 1024; }; readonly "containerConfig.data.workingDir": { readonly type: "string"; readonly limit: 1024; }; readonly "containerConfig.data.stopSignal": { readonly type: "string"; readonly limit: 128; }; readonly "history.data": { readonly type: "array"; readonly limit: 1000; }; readonly "history.data[*].author": { readonly type: "string"; readonly limit: 128; }; readonly "history.data[*].createdBy": { readonly type: "string"; readonly limit: 4096; }; readonly "history.data[*].comment": { readonly type: "string"; readonly limit: 4096; }; }; export declare function truncateAdditionalFacts(facts: any[]): any[];