@@ -26,7 +26,7 @@ import (
2626
2727	oci "github.com/opencontainers/runtime-spec/specs-go" 
2828	ocigen "github.com/opencontainers/runtime-tools/generate" 
29- 	"tags.cncf.io/container-device-interface/specs-go" 
29+ 	cdi  "tags.cncf.io/container-device-interface/specs-go" 
3030)
3131
3232const  (
6464// to all OCI Specs where at least one devices from the CDI Spec 
6565// is injected. 
6666type  ContainerEdits  struct  {
67- 	* specs .ContainerEdits 
67+ 	* cdi .ContainerEdits 
6868}
6969
7070// Apply edits to the given OCI Spec. Updates the OCI Spec in place. 
@@ -205,7 +205,7 @@ func (e *ContainerEdits) Append(o *ContainerEdits) *ContainerEdits {
205205		e  =  & ContainerEdits {}
206206	}
207207	if  e .ContainerEdits  ==  nil  {
208- 		e .ContainerEdits  =  & specs .ContainerEdits {}
208+ 		e .ContainerEdits  =  & cdi .ContainerEdits {}
209209	}
210210
211211	e .Env  =  append (e .Env , o .Env ... )
@@ -259,7 +259,7 @@ func ValidateEnv(env []string) error {
259259
260260// DeviceNode is a CDI Spec DeviceNode wrapper, used for validating DeviceNodes. 
261261type  DeviceNode  struct  {
262- 	* specs .DeviceNode 
262+ 	* cdi .DeviceNode 
263263}
264264
265265// Validate a CDI Spec DeviceNode. 
@@ -289,7 +289,7 @@ func (d *DeviceNode) Validate() error {
289289
290290// Hook is a CDI Spec Hook wrapper, used for validating hooks. 
291291type  Hook  struct  {
292- 	* specs .Hook 
292+ 	* cdi .Hook 
293293}
294294
295295// Validate a hook. 
@@ -308,7 +308,7 @@ func (h *Hook) Validate() error {
308308
309309// Mount is a CDI Mount wrapper, used for validating mounts. 
310310type  Mount  struct  {
311- 	* specs .Mount 
311+ 	* cdi .Mount 
312312}
313313
314314// Validate a mount. 
@@ -325,13 +325,13 @@ func (m *Mount) Validate() error {
325325// IntelRdt is a CDI IntelRdt wrapper. 
326326// This is used for validation and conversion to OCI specifications. 
327327type  IntelRdt  struct  {
328- 	* specs .IntelRdt 
328+ 	* cdi .IntelRdt 
329329}
330330
331331// ValidateIntelRdt validates the IntelRdt configuration. 
332332// 
333333// Deprecated: ValidateIntelRdt is deprecated use IntelRdt.Validate() instead. 
334- func  ValidateIntelRdt (i  * specs .IntelRdt ) error  {
334+ func  ValidateIntelRdt (i  * cdi .IntelRdt ) error  {
335335	return  (& IntelRdt {i }).Validate ()
336336}
337337
0 commit comments