var cpExample …
type CopyOptions …
func NewCopyOptions(ioStreams genericiooptions.IOStreams) *CopyOptions { … }
func NewCmdCp(f cmdutil.Factory, ioStreams genericiooptions.IOStreams) *cobra.Command { … }
var errFileSpecDoesntMatchFormat …
func extractFileSpec(arg string) (fileSpec, error) { … }
func (o *CopyOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error { … }
func (o *CopyOptions) Validate() error { … }
func (o *CopyOptions) Run() error { … }
func (o *CopyOptions) checkDestinationIsDir(dest fileSpec) error { … }
func (o *CopyOptions) copyToPod(src, dest fileSpec, options *exec.ExecOptions) error { … }
func (o *CopyOptions) copyFromPod(src, dest fileSpec) error { … }
type TarPipe …
func newTarPipe(src fileSpec, o *CopyOptions) *TarPipe { … }
func (t *TarPipe) initReadFrom(n uint64) { … }
func (t *TarPipe) Read(p []byte) (n int, err error) { … }
func makeTar(src localPath, dest remotePath, writer io.Writer) error { … }
func recursiveTar(srcDir, srcFile localPath, destDir, destFile remotePath, tw *tar.Writer) error { … }
func (o *CopyOptions) untarAll(ns, pod string, prefix string, src remotePath, dest localPath, reader io.Reader) error { … }
func (o *CopyOptions) execute(options *exec.ExecOptions) error { … }