@hashgraph/solo
Version:
An opinionated CLI tool to deploy and manage private Hedera Networks.
37 lines (30 loc) • 957 B
text/typescript
// SPDX-License-Identifier: Apache-2.0
import {type NamespaceName} from '../../../../types/namespace/namespace-name.js';
export interface Contexts {
/**
* List all contexts in the kubeconfig
* @returns a list of context names
*/
list(): string[];
/**
* Read the current context in the kubeconfig
* @returns the current context name
*/
readCurrent(): string;
/**
* Read the current namespace in the kubeconfig
* @returns the current namespace name
*/
readCurrentNamespace(): NamespaceName;
/**
* Set the current context in the kubeconfig
* @param context - the context name to set
*/
updateCurrent(context: string): void; // TODO delete this once we are instantiating multiple K8 instances
/**
* Test the connection to a context
* @param context - the context name to test
* @returns true if the connection is successful
*/
testContextConnection(context: string): Promise<boolean>;
}