@hashgraph/solo
Version:
An opinionated CLI tool to deploy and manage private Hedera Networks.
25 lines (22 loc) • 693 B
text/typescript
/**
* SPDX-License-Identifier: Apache-2.0
*/
import {type PodName} from './pod_name.js';
import {type NamespaceName} from '../namespace/namespace_name.js';
import {ResourceRef} from '../resource_ref.js';
/**
* Represents a Kubernetes pod reference which includes the namespace name and pod name.
*/
export class PodRef extends ResourceRef<PodName> {
private constructor(namespace: NamespaceName, name: PodName) {
super(namespace, name);
}
/**
* Creates a pod reference.
* @param namespace The namespace name.
* @param podName The pod name.
*/
public static of(namespace: NamespaceName, podName: PodName): PodRef {
return new PodRef(namespace, podName);
}
}