UNPKG

@deploystack/docker-to-iac

Version:

Translate docker run and docker compose file to Infrastructure as Code

48 lines (47 loc) 1.19 kB
/** * Connection string format template * Can include variables like ${serviceName}, ${originalValue}, etc. */ export type ConnectionFormat = string; /** * Provider-specific service connection configuration */ export interface ProviderConnectionConfig { serviceReferenceFormat?: ConnectionFormat; useProviderNativeReferences?: boolean; implementationType?: 'blueprint-reference' | 'service-discovery'; serviceNameTransformer?: string; } /** * Service connection mapping */ export interface ServiceConnectionMapping { fromService: string; toService: string; environmentVariables: string[]; property?: string; } /** * Service connections input configuration */ export interface ServiceConnectionsConfig { mappings: ServiceConnectionMapping[]; } /** * Single resolved environment variable */ export interface ResolvedConnectionVariable { originalValue: string; transformedValue: string; } /** * Resolved connection information after processing */ export interface ResolvedServiceConnection { fromService: string; toService: string; property?: string; variables: { [key: string]: ResolvedConnectionVariable; }; }