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"
strings "strings"
)
@@ -43,7 +43,7 @@ func (m *ContainerCreate_Runtime) Field(fieldpath []string) (string, bool) {
case "name":
return string(m.Name), len(m.Name) > 0
case "options":
decoded, err := typeurl.UnmarshalAny(m.Options)
decoded, err := v2.UnmarshalAny(m.Options)
if err != nil {
return "", false
}