@hashgraph/solo
Version:
An opinionated CLI tool to deploy and manage private Hedera Networks.
26 lines • 822 B
JavaScript
// SPDX-License-Identifier: Apache-2.0
import { ResourceName } from '../resource-name.js';
import { ResourceType } from '../resource-type.js';
/**
* Represents a Kubernetes service name. A Kubernetes service name must be a valid RFC-1123 DNS label.
*
* @include DNS_1123_LABEL
*/
export class ServiceName extends ResourceName {
constructor(name) {
super(ResourceType.SERVICE, name);
}
/**
* Creates a service. A Kubernetes service name must be a valid RFC-1123 DNS label.
*
* @include DNS_1123_LABEL
*
* @param name The name of the service.
* @returns An instance of ServiceName.
* @throws InvalidResourceNameError if the service name is invalid.
*/
static of(name) {
return new ServiceName(name);
}
}
//# sourceMappingURL=service-name.js.map