@hashgraph/solo
Version:
An opinionated CLI tool to deploy and manage private Hedera Networks.
32 lines (26 loc) • 794 B
text/typescript
// SPDX-License-Identifier: Apache-2.0
import {type NamespaceName} from './namespace-name.js';
export interface Namespaces {
/**
* Create a new namespace
* @param namespace - the name of the namespace
*/
create(namespace: NamespaceName): Promise<boolean>;
/**
* Delete a namespace
* @param namespace - the name of the namespace
*/
delete(namespace: NamespaceName): Promise<boolean>;
/**
* List all namespaces
* @returns a list of namespace names
* @throws SoloError if the response from the kubernetes API is incorrect
*/
list(): Promise<NamespaceName[]>;
/**
* Check if a namespace exists
* @param namespace - the name of the namespace
* @returns true if the namespace exists
*/
has(namespace: NamespaceName): Promise<boolean>;
}