UNPKG

@hashgraph/solo

Version:

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

38 lines (33 loc) 1.08 kB
// SPDX-License-Identifier: Apache-2.0 import {type NamespaceName} from '../../../../types/namespace/namespace-name.js'; import {type Service} from './service.js'; import {type ServiceReference} from './service-reference.js'; export interface Services { /** * Get a svc by name * @param namespace - namespace * @param name - service name */ read(namespace: NamespaceName, name: string): Promise<Service>; /** * List all services in a namespace * @param namespace - namespace * @param labels - labels */ list(namespace: NamespaceName, labels?: string[]): Promise<Service[]>; /** * Create a service * @param serviceReference - service reference * @param labels - the labels for the service * @param servicePort - the service port * @param podTargetPort - the target port * @returns the service * @throws {SoloError} if the service could not be created */ create( serviceReference: ServiceReference, labels: Record<string, string>, servicePort: number, podTargetPort: number, ): Promise<Service>; }