Documentation ¶
Overview ¶
Package sync contains logic for establishing a file sync between a local machine and a Coder workspace.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRestartSync = errors.New("the sync exited because it was overloaded, restart it")
ErrRestartSync describes a known error case that can be solved by re-starting the command.
Functions ¶
Types ¶
type Sync ¶
type Sync struct { // Init sets whether the sync will do the initial init and then return fast. Init bool // LocalDir is an absolute path. LocalDir string // RemoteDir is an absolute path. RemoteDir string // DisableMetrics disables activity metric pushing. DisableMetrics bool Workspace coder.Workspace Client coder.Client OutW io.Writer ErrW io.Writer InputReader io.Reader IsInteractiveOutput bool }
Sync runs a live sync daemon.
Click to show internal directories.
Click to hide internal directories.