File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 97
97
// )
98
98
//
99
99
// func injectCDIDevices(spec *specs.Spec, devices []string) error {
100
- // cache := cdi.GetDefaultCache()
100
+ // cache := cdi.GetDefaultCache()
101
101
//
102
102
// if err := cache.Refresh(); err != nil {
103
103
// // Note:
169
169
// Generating a Spec file for a vendor/device class can be done with a
170
170
// code snippet similar to the following:
171
171
//
172
- // import (
172
+ // import (
173
173
//
174
174
// "fmt"
175
175
// ...
176
176
// "tags.cncf.io/container-device-interface/specs-go"
177
177
// "tags.cncf.io/container-device-interface/pkg/cdi"
178
178
//
179
- // )
179
+ // )
180
180
//
181
181
// func generateDeviceSpecs() error {
182
182
// cache := specs.GetDefaultCache()
206
206
// They are typically created before the associated container is created
207
207
// and removed once that container is removed.
208
208
//
209
- // import (
209
+ // import (
210
210
//
211
211
// "fmt"
212
- //
212
+ // ...
213
213
// "tags.cncf.io/container-device-interface/specs-go"
214
214
// "tags.cncf.io/container-device-interface/pkg/cdi"
215
215
//
216
- // )
216
+ // )
217
217
//
218
218
// func generateTransientSpec(ctr Container) error {
219
219
// cache := specs.GetDefaultCache()
You can’t perform that action at this time.
0 commit comments