MCPcopy Index your code
hub / github.com/devspace-sh/devspace / Start

Method Start

pkg/devspace/sync/sync.go:166–176  ·  view source on GitHub ↗

Start starts a new sync instance

(onInitUploadDone chan struct{}, onInitDownloadDone chan struct{}, onDone chan struct{}, onError chan error)

Source from the content-addressed store, hash-verified

164
165// Start starts a new sync instance
166func (s *Sync) Start(onInitUploadDone chan struct{}, onInitDownloadDone chan struct{}, onDone chan struct{}, onError chan error) error {
167 s.onError = onError
168 s.onDone = onDone
169
170 // start pinging the underlying connection
171 s.downstream.startPing(onDone)
172 s.upstream.startPing(onDone)
173
174 s.mainLoop(onInitUploadDone, onInitDownloadDone)
175 return nil
176}
177
178func (s *Sync) initIgnoreParsers() error {
179 if s.Options.ExcludePaths != nil {

Callers

nothing calls this directly

Calls 2

mainLoopMethod · 0.95
startPingMethod · 0.45

Tested by

no test coverage detected