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

Method InitDownstream

pkg/devspace/sync/sync.go:155–163  ·  view source on GitHub ↗

InitDownstream inits the downstream

(reader io.ReadCloser, writer io.WriteCloser)

Source from the content-addressed store, hash-verified

153
154// InitDownstream inits the downstream
155func (s *Sync) InitDownstream(reader io.ReadCloser, writer io.WriteCloser) error {
156 downstream, err := newDownstream(reader, writer, s)
157 if err != nil {
158 return errors.Wrap(err, "new upstream")
159 }
160
161 s.downstream = downstream
162 return nil
163}
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 {

Callers 3

initClientMethod · 0.95
TestInitialSyncFunction · 0.80
TestNormalSyncFunction · 0.80

Calls 1

newDownstreamFunction · 0.85

Tested by 2

TestInitialSyncFunction · 0.64
TestNormalSyncFunction · 0.64