mirror of
https://github.com/YuzuZensai/Minikura.git
synced 2026-03-30 11:24:35 +00:00
16 lines
349 B
TypeScript
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}`;
|
|
}
|
|
}
|