Files
Minikura/apps/backend/src/domain/value-objects/k8s-connection-info.vo.ts
2026-02-13 15:52:13 +07:00

16 lines
349 B
TypeScript

export class K8sConnectionInfo {
constructor(
public readonly host: string,
public readonly port: number,
public readonly namespace: string
) {}
toUrl(): string {
return `${this.host}:${this.port}`;
}
toConnectionString(): string {
return `Host: ${this.host}, Port: ${this.port}, Namespace: ${this.namespace}`;
}
}