@hashgraph/solo
Version:
An opinionated CLI tool to deploy and manage private Hedera Networks.
26 lines (25 loc) • 796 B
TypeScript
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>;
}