UNPKG

@hashgraph/solo

Version:

An opinionated CLI tool to deploy and manage private Hedera Networks.

28 lines 830 B
/** * 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