UNPKG

@hashgraph/solo

Version:

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

33 lines (32 loc) 930 B
/** * SPDX-License-Identifier: Apache-2.0 */ import { type NamespaceName } from '../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; /** * 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>; }