package
Version:
v0.23.10-rc.0
Opens a new window with list of versions in this module.
Published: Jul 13, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 19
Opens a new window with list of imports.
Imported by: 29
Opens a new window with list of known importers.
Documentation
¶
func NewCmdCp(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
NewCmdCp creates a new Copy command.
type CopyOptions struct {
Container string
Namespace string
NoPreserve bool
MaxTries int
ClientConfig *restclient.Config
Clientset kubernetes.Interface
ExecParentCmdName string
genericclioptions.IOStreams
}
CopyOptions have the data required to perform the copy operation
func NewCopyOptions(ioStreams genericclioptions.IOStreams) *CopyOptions
NewCopyOptions creates the options for copy
func (o *CopyOptions) Complete(f cmdutil.Factory, cmd *cobra.Command) error
Complete completes all the required options
func (o *CopyOptions) Run(args []string) error
Run performs the execution
func (o *CopyOptions) Validate(cmd *cobra.Command, args []string) error
Validate makes sure provided values for CopyOptions are valid
func (t *TarPipe) Read(p []byte) (n int, err error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.