kubernetes: k8s.io/kubernetes/staging/src/k8s.io/kubectl/pkg/cmd/cp Index | Files

package cp

import "k8s.io/kubernetes/staging/src/k8s.io/kubectl/pkg/cmd/cp"


Package Files


func NewCmdCp Uses

func NewCmdCp(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdCp creates a new Copy command.

type CopyOptions Uses

type CopyOptions struct {
    Container  string
    Namespace  string
    NoPreserve bool

    ClientConfig      *restclient.Config
    Clientset         kubernetes.Interface
    ExecParentCmdName string


CopyOptions have the data required to perform the copy operation

func NewCopyOptions Uses

func NewCopyOptions(ioStreams genericclioptions.IOStreams) *CopyOptions

NewCopyOptions creates the options for copy

func (*CopyOptions) Complete Uses

func (o *CopyOptions) Complete(f cmdutil.Factory, cmd *cobra.Command) error

Complete completes all the required options

func (*CopyOptions) Run Uses

func (o *CopyOptions) Run(args []string) error

Run performs the execution

func (*CopyOptions) Validate Uses

func (o *CopyOptions) Validate(cmd *cobra.Command, args []string) error

Validate makes sure provided values for CopyOptions are valid

Package cp imports 19 packages (graph). Updated 2020-11-27. Refresh now. Tools for package owners.