{"modulePath":"github.com/2lambda123/openshift-origin","version":"v3.10.0+incompatible","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package rsync\n\n## Constants\n\n```go\nconst (\n\tRsyncDaemonStartTimeOut = 10 * time.Second\n)\n```\n\n```go\nconst (\n\t// RsyncRecommendedName is the recommended name for the rsync command\n\tRsyncRecommendedName = \"rsync\"\n)\n```\n\n## Functions\n\n```go\nfunc NewCmdRsync(name, parent string, f *clientcmd.Factory, out, errOut io.Writer) *cobra.Command\n```\nNewCmdRsync creates a new sync command\n\n## Types\n\n```go\ntype RsyncOptions struct {\n\tNamespace         string\n\tContainerName     string\n\tSource            *pathSpec\n\tDestination       *pathSpec\n\tStrategy          copyStrategy\n\tStrategyName      string\n\tQuiet             bool\n\tDelete            bool\n\tWatch             bool\n\tCompress          bool\n\tSuggestedCmdUsage string\n\n\tRsyncInclude  []string\n\tRsyncExclude  []string\n\tRsyncProgress bool\n\tRsyncNoPerms  bool\n\n\tOut    io.Writer\n\tErrOut io.Writer\n}\n```\nRsyncOptions holds the options to execute the sync command\n\n```go\nfunc (o *RsyncOptions) Complete(f *clientcmd.Factory, cmd *cobra.Command, args []string) error\n```\nComplete verifies command line arguments and loads data from the command environment\n\n```go\nfunc (o *RsyncOptions) PodName() string\n```\nPodName returns the name of the pod as specified in either the the source or destination arguments\n\n```go\nfunc (o *RsyncOptions) RunRsync() error\n```\nRunRsync copies files from source to destination\n\n```go\nfunc (o *RsyncOptions) Validate() error\n```\nValidate checks that SyncOptions has all necessary fields\n\n```go\nfunc (o *RsyncOptions) WatchAndSync() error\n```\nWatchAndSync sets up a recursive filesystem watch on the sync path and invokes rsync each time the path changes.\n\n","path":"github.com/2lambda123/openshift-origin/pkg/oc/cli/cmd/rsync","name":"rsync","synopsis":"","isRedistributable":true}
