package
Version:
v1.14.0-rc.1
Opens a new window with list of versions in this module.
Published: Mar 19, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 19
Opens a new window with list of imports.
Imported by: 0
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
ClientConfig *restclient.Config
Clientset kubernetes.Interface
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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.