cp

package
v0.25.0-beta.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2022 License: Apache-2.0 Imports: 19 Imported by: 27

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdCp

func NewCmdCp(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdCp creates a new Copy command.

Types

type CopyOptions

type CopyOptions struct {
	Container  string
	Namespace  string
	NoPreserve bool
	MaxTries   int

	ClientConfig      *restclient.Config
	Clientset         kubernetes.Interface
	ExecParentCmdName string

	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

CopyOptions have the data required to perform the copy operation

func NewCopyOptions

func NewCopyOptions(ioStreams genericclioptions.IOStreams) *CopyOptions

NewCopyOptions creates the options for copy

func (*CopyOptions) Complete

func (o *CopyOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete completes all the required options

func (*CopyOptions) Run

func (o *CopyOptions) Run() error

Run performs the execution

func (*CopyOptions) Validate

func (o *CopyOptions) Validate() error

Validate makes sure provided values for CopyOptions are valid

type TarPipe added in v0.23.0

type TarPipe struct {
	// contains filtered or unexported fields
}

func (*TarPipe) Read added in v0.23.0

func (t *TarPipe) Read(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL