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

Method InitUpstream

pkg/devspace/sync/sync.go:144–152  ·  view source on GitHub ↗

InitUpstream inits the upstream

(reader io.ReadCloser, writer io.WriteCloser)

Source from the content-addressed store, hash-verified

142
143// InitUpstream inits the upstream
144func (s *Sync) InitUpstream(reader io.ReadCloser, writer io.WriteCloser) error {
145 upstream, err := newUpstream(reader, writer, s)
146 if err != nil {
147 return errors.Wrap(err, "new upstream")
148 }
149
150 s.upstream = upstream
151 return nil
152}
153
154// InitDownstream inits the downstream
155func (s *Sync) InitDownstream(reader io.ReadCloser, writer io.WriteCloser) error {

Callers 3

initClientMethod · 0.95
TestInitialSyncFunction · 0.80
TestNormalSyncFunction · 0.80

Calls 1

newUpstreamFunction · 0.85

Tested by 2

TestInitialSyncFunction · 0.64
TestNormalSyncFunction · 0.64