MCPcopy Index your code
hub / github.com/containerd/containerd / validateInfo

Function validateInfo

core/metadata/content.go:777–785  ·  view source on GitHub ↗
(info *content.Info)

Source from the content-addressed store, hash-verified

775}
776
777func validateInfo(info *content.Info) error {
778 for k, v := range info.Labels {
779 if err := labels.Validate(k, v); err != nil {
780 return fmt.Errorf("info.Labels: %w", err)
781 }
782 }
783
784 return nil
785}
786
787func readInfo(info *content.Info, bkt *bolt.Bucket) error {
788 if err := boltutil.ReadTimestamps(bkt, &info.CreatedAt, &info.UpdatedAt); err != nil {

Callers 2

UpdateMethod · 0.85
commitMethod · 0.85

Calls 1

ValidateFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…