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

Function AsField

docker/reference/reference.go:77–79  ·  view source on GitHub ↗

AsField wraps a reference in a Field for encoding.

(reference Reference)

Source from the content-addressed store, hash-verified

75
76// AsField wraps a reference in a Field for encoding.
77func AsField(reference Reference) Field {
78 return Field{reference}
79}
80
81// Reference unwraps the reference type from the field to
82// return the Reference object. This object should be

Callers 1

TestSerializationFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestSerializationFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…