Documentation ¶
Overview ¶
nolint
Index ¶
- func NewCmdCp(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
- type CopyOptions
- func (o *CopyOptions) Complete(f cmdutil.Factory, cmd *cobra.Command) error
- func (o *CopyOptions) CopyFromPod(src, dest FileSpec) error
- func (o *CopyOptions) CopyToPod(src, dest FileSpec, options *exec.ExecOptions) error
- func (o *CopyOptions) Run(args []string) error
- func (o *CopyOptions) Validate(cmd *cobra.Command, args []string) error
- type FileSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CopyOptions ¶
type CopyOptions struct { Container string Namespace string NoPreserve bool ClientConfig *restclient.Config Clientset kubernetes.Interface ExecParentCmdName string genericclioptions.IOStreams }
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) CopyFromPod ¶
func (o *CopyOptions) CopyFromPod(src, dest FileSpec) error
func (*CopyOptions) CopyToPod ¶
func (o *CopyOptions) CopyToPod(src, dest FileSpec, options *exec.ExecOptions) error
Click to show internal directories.
Click to hide internal directories.