src/cp

On This Page
CpcpFromPodcpToPod

Cp

class Cp 

cpFromPod

Parameters

string namespace - The namespace of the pod to exec the command inside.

string podName - The name of the pod to exec the command inside.

string containerName - The name of the container in the pod to exec the command inside.

string srcPath - The source path in the pod

string tgtPath - The target path in local

string [cwd] - The directory that is used as the parent in the pod when downloading

public async cpFromPod(
        namespace: string,        podName: string,        containerName: string,        srcPath: string,        tgtPath: string,        cwd?: string,    ): Promise<void> 

cpToPod

Parameters

string namespace - The namespace of the pod to exec the command inside.

string podName - The name of the pod to exec the command inside.

string containerName - The name of the container in the pod to exec the command inside.

string srcPath - The source path in local

string tgtPath - The target path in the pod

public async cpToPod(
        namespace: string,        podName: string,        containerName: string,        srcPath: string,        tgtPath: string,    ): Promise<void> 
Start typing to search the documentation Press ESC to close