containerd / imgcrypt

OCI Image Encryption Package
Apache License 2.0
364 stars 47 forks source link

Use reflect to support diff.ApplyConfig with/without gogo's types.Any #75

Closed kzys closed 2 years ago

kzys commented 2 years ago

containerd is migrating off from github.com/gogo/protobuf (see https://github.com/containerd/containerd/issues/6564).

However imgcrypt depends containerd and containerd also depends imgcrypt, which makes changing this signature complicated.

This change workarounds the issue by using Go's reflect package.