UNPKG

@fbl-plugins/k8s-kubectl

Version:
46 lines (45 loc) 1.49 kB
import { ActionProcessor } from 'fbl'; export declare abstract class BaseActionProcessor extends ActionProcessor { /** * Execute "helm" command * @return {Promise<IExecOutput>} */ execKubectlCommand(args: string[], debug: boolean, joinWith?: string): Promise<{ code: number; stdout: string; stderr: string; }>; /** * Push argument with value if value exists */ protected pushWithValue(args: string[], name: string, value: any): void; /** * Push multiple arguments with value */ protected pushMultipleWithValue(args: string[], name: string, values: any[], transformer?: Function): Promise<void>; /** * Push argument only if value is true */ protected pushWithoutValue(args: string[], name: string, value: boolean): void; /** * Write string to temp file * @returns temp file path */ protected writeStringToTempFile(data: string): Promise<string>; /** * Write YAML to temp file * @returns temp file path */ protected writeYamlToTempFile(data: any): Promise<string>; /** * Write JSON to temp file * @returns temp file path */ protected writeJsonToTempFile(data: any): Promise<string>; private getHash; /** * Process glob path */ protected processGlobPath(path: string, targetDir: string): Promise<void>; protected processTemplateFile(sourcePath: string, targetPath: string): Promise<void>; }