UNPKG

@hashgraph/solo

Version:

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

30 lines (29 loc) 1.18 kB
import { type V1ObjectMeta } from '@kubernetes/client-node'; import { type ObjectMeta } from '../resources/object-meta.js'; /** * The abstract K8 Client Filter adds the `filterItem` method to the class that extends it. */ export declare abstract class K8ClientBase { /** * Apply filters to metadata * @param items - list of items * @param [filters] - an object with metadata fields and value * @returns a list of items that match the filters * @throws MissingArgumentError - filters are required */ private applyMetadataFilter; /** * Filter a single item using metadata filter * @param items - list of items * @param [filters] - an object with metadata fields and value * @throws SoloError - multiple items found with filters * @throws MissingArgumentError - filters are required */ protected filterItem(items: (object | any)[], filters?: Record<string, string>): any; /** * Wraps the V1ObjectMeta object instance into a ObjectMeta instance. * * @param v1meta - the V1ObjectMeta object from the K8S API client. */ protected wrapObjectMeta(v1meta: V1ObjectMeta): ObjectMeta; }