go.mod: github.com/containerd/typeurl/v2 v2.1.0

Changes: https://github.com/containerd/typeurl/compare/7f6e6d160d67...v2.1.0

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
Akihiro Suda
2023-02-11 23:30:32 +09:00
parent cf7b705dcd
commit b61988670c
106 changed files with 702 additions and 175 deletions

View File

@@ -3,7 +3,7 @@
package events
import (
typeurl "github.com/containerd/typeurl"
v2 "github.com/containerd/typeurl/v2"
)
// Field returns the value for the given fieldpath as a string, if defined.
@@ -41,7 +41,7 @@ func (m *Envelope) Field(fieldpath []string) (string, bool) {
case "topic":
return string(m.Topic), len(m.Topic) > 0
case "event":
decoded, err := typeurl.UnmarshalAny(m.Event)
decoded, err := v2.UnmarshalAny(m.Event)
if err != nil {
return "", false
}