UNPKG

@hashgraph/solo

Version:

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

29 lines (25 loc) 871 B
// SPDX-License-Identifier: Apache-2.0 import {ResourceName} from '../resource-name.js'; import {ResourceType} from '../resource-type.js'; /** * Represents a Kubernetes PVC (persistent volume claim) name. A Kubernetes PVC name must be a valid RFC-1123 DNS label. * * @include DNS_1123_LABEL */ export class PvcName extends ResourceName { private constructor(name: string) { super(ResourceType.PERSISTENT_VOLUME_CLAIM, name); } /** * Creates a PVC (persistent volume claim). A Kubernetes PVC name must be a valid RFC-1123 DNS label. * * @include DNS_1123_LABEL * * @param name The name of the PVC (persistent volume claim). * @returns An instance of PvcName. * @throws InvalidResourceNameError if the PVC (persistent volume claim) name is invalid. */ public static of(name: string): PvcName { return new PvcName(name); } }