package cp
import "k8s.io/kubectl/pkg/cmd/cp"
Index ¶
- func NewCmdCp(f cmdutil.Factory, ioStreams genericiooptions.IOStreams) *cobra.Command
- type CopyOptions
- func NewCopyOptions(ioStreams genericiooptions.IOStreams) *CopyOptions
- func (o *CopyOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error
- func (o *CopyOptions) Run() error
- func (o *CopyOptions) Validate() error
- type TarPipe
Functions ¶
func NewCmdCp ¶
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 genericiooptions.IOStreams // contains filtered or unexported fields }
CopyOptions have the data required to perform the copy operation
func NewCopyOptions ¶
func NewCopyOptions(ioStreams genericiooptions.IOStreams) *CopyOptions
NewCopyOptions creates the options for copy
func (*CopyOptions) Complete ¶
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 ¶
type TarPipe struct {
// contains filtered or unexported fields
}
func (*TarPipe) Read ¶
Source Files ¶
cp.go filespec.go
- Version
- v0.32.3 (latest)
- Published
- Mar 12, 2025
- Platform
- linux/amd64
- Imports
- 19 packages
- Last checked
- 6 days ago –
Tools for package owners.