MCPcopy Create free account
hub / github.com/containers/image / UnmarshalText

Method UnmarshalText

docker/reference/reference.go:98–106  ·  view source on GitHub ↗

UnmarshalText parses text bytes by invoking the reference parser to ensure the appropriately typed reference object is wrapped by field.

(p []byte)

Source from the content-addressed store, hash-verified

96// reference parser to ensure the appropriately
97// typed reference object is wrapped by field.
98func (f *Field) UnmarshalText(p []byte) error {
99 r, err := Parse(string(p))
100 if err != nil {
101 return err
102 }
103
104 f.reference = r
105 return nil
106}
107
108// Named is an object with a full name
109type Named interface {

Callers

nothing calls this directly

Calls 1

ParseFunction · 0.85

Tested by

no test coverage detected