MCPcopy
hub / github.com/docker/docker-agent / sourceLoader

Struct sourceLoader

pkg/server/source_loader.go:12–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10)
11
12type sourceLoader struct {
13 inner config.Source
14 refreshInterval time.Duration
15
16 mu sync.RWMutex
17 data []byte
18 err error
19}
20
21// NewSourceLoader creates a new source loader that caches and periodically refreshes a config source.
22func NewSourceLoader(ctx context.Context, inner config.Source, refreshInterval time.Duration) *sourceLoader {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected