package cp
import "k8s.io/kubernetes/pkg/kubectl/cmd/cp"
Index ¶
- func NewCmdCp(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
- type CopyOptions
Functions ¶
func NewCmdCp ¶
NewCmdCp creates a new Copy command.
Types ¶
type CopyOptions ¶
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 ¶
func NewCopyOptions(ioStreams genericclioptions.IOStreams) *CopyOptions
NewCopyOptions creates the options for copy
func (*CopyOptions) Complete ¶
Complete completes all the required options
func (*CopyOptions) Run ¶
func (o *CopyOptions) Run(args []string) error
Run performs the execution
func (*CopyOptions) Validate ¶
func (o *CopyOptions) Validate(cmd *cobra.Command, args []string) error
Validate makes sure provided values for CopyOptions are valid
Source Files ¶
cp.go
- Version
- v1.14.6
- Published
- Aug 16, 2019
- Platform
- js/wasm
- Imports
- 19 packages
- Last checked
- 31 seconds ago –
Tools for package owners.