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