@hashgraph/solo
Version:
An opinionated CLI tool to deploy and manage private Hedera Networks.
35 lines (30 loc) • 1.43 kB
text/typescript
// SPDX-License-Identifier: Apache-2.0
import {type NamespaceName} from '../../../../types/namespace/namespace-name.js';
import {type Pvc} from './pvc.js';
import {type PvcReference} from './pvc-reference.js';
export interface Pvcs {
/**
* Delete a persistent volume claim
* @param pvcReference - the persistent volume claim reference
* @returns true if the persistent volume claim was deleted
* @throws {SoloError} if the persistent volume claim could not be deleted
*/
delete(pvcReference: PvcReference): Promise<boolean>;
/**
* Get a list of persistent volume claim names for the given namespace
* @param namespace - the namespace of the persistent volume claims to return
* @param [labels] - labels
* @returns list of persistent volume claim names
* @throws {SoloError} if the persistent volume claims could not be listed
*/
list(namespace: NamespaceName, labels?: string[]): Promise<string[]>;
/**
* Create a persistent volume claim
* @param pvcReference - the persistent volume claim reference
* @param labels - the labels to apply to the persistent volume claim
* @param accessModes - the access modes for the persistent volume claim
* @returns the persistent volume claim
* @throws {SoloError} if the persistent volume claim could not be created
*/
create(pvcReference: PvcReference, labels: Record<string, string>, accessModes: string[]): Promise<Pvc>;
}