Files
containerd/api/events/content_fieldpath.pb.go
Maksym Pavlenko 6a6283193b Update pb files
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2026-01-08 16:47:41 -08:00

31 lines
852 B
Go

// Code generated by protoc-gen-go-fieldpath. DO NOT EDIT.
// source: events/content.proto
package events
// Field returns the value for the given fieldpath as a string, if defined.
// If the value is not defined, the second value will be false.
func (m *ContentCreate) Field(fieldpath []string) (string, bool) {
if len(fieldpath) == 0 {
return "", false
}
switch fieldpath[0] {
// unhandled: size
case "digest":
return string(m.Digest), len(m.Digest) > 0
}
return "", false
}
// Field returns the value for the given fieldpath as a string, if defined.
// If the value is not defined, the second value will be false.
func (m *ContentDelete) Field(fieldpath []string) (string, bool) {
if len(fieldpath) == 0 {
return "", false
}
switch fieldpath[0] {
case "digest":
return string(m.Digest), len(m.Digest) > 0
}
return "", false
}