Files
k8s-set-context/node_modules/@kubernetes/client-node/dist/cp.d.ts
github-actions[bot] 52d71d28bd Add node modules and compiled JavaScript from main (#54)
Co-authored-by: Oliver King <oking3@uncc.edu>
2022-06-29 15:41:55 -04:00

23 lines
1.2 KiB
TypeScript

import { KubeConfig } from './config';
import { Exec } from './exec';
export declare class Cp {
execInstance: Exec;
constructor(config: KubeConfig, execInstance?: Exec);
/**
* @param {string} namespace - The namespace of the pod to exec the command inside.
* @param {string} podName - The name of the pod to exec the command inside.
* @param {string} containerName - The name of the container in the pod to exec the command inside.
* @param {string} srcPath - The source path in the pod
* @param {string} tgtPath - The target path in local
*/
cpFromPod(namespace: string, podName: string, containerName: string, srcPath: string, tgtPath: string): Promise<void>;
/**
* @param {string} namespace - The namespace of the pod to exec the command inside.
* @param {string} podName - The name of the pod to exec the command inside.
* @param {string} containerName - The name of the container in the pod to exec the command inside.
* @param {string} srcPath - The source path in local
* @param {string} tgtPath - The target path in the pod
*/
cpToPod(namespace: string, podName: string, containerName: string, srcPath: string, tgtPath: string): Promise<void>;
}