mirror of
https://github.com/YuzuZensai/Minikura.git
synced 2026-03-30 20:27:39 +00:00
✨ feat: initial prototype
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
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}`;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user