Documentation
¶
Index ¶
- Constants
- func DefaultRsyncRemoteShellToUse(cmd *cobra.Command) string
- func NewCmdRsync(name, parent string, f kcmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
- type CopyStrategy
- type PathSpec
- type RsyncOptions
- func (o *RsyncOptions) Complete(f kcmdutil.Factory, cmd *cobra.Command, args []string) error
- func (o *RsyncOptions) GetCopyStrategy(name string) (CopyStrategy, error)
- func (o *RsyncOptions) PodName() string
- func (o *RsyncOptions) RunRsync() error
- func (o *RsyncOptions) Validate() error
- func (o *RsyncOptions) WatchAndSync() error
Constants ¶
View Source
const (
RsyncDaemonStartTimeOut = 10 * time.Second
)
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 kcmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
NewCmdRsync creates a new sync command
Types ¶
type CopyStrategy ¶
type CopyStrategy interface {
Copy(source, destination *