We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cebd7df commit fe3cc22Copy full SHA for fe3cc22
pkg/types/types.go
@@ -56,8 +56,8 @@ func (n *IPNet) UnmarshalJSON(data []byte) error {
56
return nil
57
}
58
59
-// NetConf describes a network.
60
-type NetConf struct {
+// NetConfType describes a network.
+type NetConfType struct {
61
CNIVersion string `json:"cniVersion,omitempty"`
62
63
Name string `json:"name,omitempty"`
@@ -73,6 +73,9 @@ type NetConf struct {
73
ValidAttachments []GCAttachment `json:"cni.dev/valid-attachments,omitempty"`
74
75
76
+// NetConf is defined as different type as custom MarshalJSON() and issue #1096
77
+type NetConf NetConfType
78
+
79
// GCAttachment is the parameters to a GC call -- namely,
80
// the container ID and ifname pair that represents a
81
// still-valid attachment.
0 commit comments