rsync

package
v1.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2015 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RsyncRecommendedName is the recommended name for the rsync command
	RsyncRecommendedName = "rsync"
)

Variables

This section is empty.

Functions

func NewCmdRsync

func NewCmdRsync(name, parent string, f *clientcmd.Factory, out, errOut io.Writer) *cobra.Command

NewCmdRsync creates a new sync command

Types

type RsyncOptions

type RsyncOptions struct {
	Namespace     string
	ContainerName string
	Source        *pathSpec
	Destination   *pathSpec
	Strategy      copyStrategy
	StrategyName  string
	Quiet         bool
	Delete        bool

	Out    io.Writer
	ErrOut io.Writer
}

RsyncOptions holds the options to execute the sync command

func (*RsyncOptions) Complete

func (o *RsyncOptions) Complete(f *clientcmd.Factory, cmd *cobra.Command, args []string) error

Complete verifies command line arguments and loads data from the command environment

func (*RsyncOptions) PodName

func (o *RsyncOptions) PodName() string

PodName returns the name of the pod as specified in either the the source or destination arguments

func (*RsyncOptions) RunRsync

func (o *RsyncOptions) RunRsync() error

RunRsync copies files from source to destination

func (*RsyncOptions) Validate

func (o *RsyncOptions) Validate() error

Validate checks that SyncOptions has all necessary fields

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL