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

package cp

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

Index

Package Files

cp.go

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

    genericclioptions.IOStreams
}

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) and is imported by 10 packages. Updated 2019-07-17. Refresh now. Tools for package owners.