@deploystack/docker-to-iac
Version:
Translate docker run and docker compose file to Infrastructure as Code
22 lines (21 loc) • 560 B
TypeScript
export type StringPattern = 'uppercase' | 'lowercase' | 'normal';
export type EnvVarGenerationType = {
type: 'password' | 'string' | 'number';
length?: number;
pattern?: StringPattern;
min?: number;
max?: number;
};
export type ImageEnvVarConfig = {
[variableName: string]: EnvVarGenerationType;
};
export type ImageVersionConfig = {
[version: string]: {
environment: ImageEnvVarConfig;
};
};
export type EnvironmentVariableGenerationConfig = {
[imageName: string]: {
versions: ImageVersionConfig;
};
};