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

Struct bytesSource

pkg/config/sources.go:73–76  ·  view source on GitHub ↗

bytesSource is used to load an agent configuration from a []byte.

Source from the content-addressed store, hash-verified

71
72// bytesSource is used to load an agent configuration from a []byte.
73type bytesSource struct {
74 name string
75 data []byte
76}
77
78func NewBytesSource(name string, data []byte) Source {
79 return bytesSource{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected