Merge pull request #13974 from containers/dependabot/go_modules/github.com/container-orchestrated-devices/container-device-interface-0.4.0

Bump github.com/container-orchestrated-devices/container-device-interface from 0.3.2 to 0.4.0
This commit is contained in:
OpenShift Merge Robot
2022-04-22 10:47:32 -04:00
committed by GitHub
6 changed files with 8 additions and 5 deletions

View File

@ -34,6 +34,7 @@ var (
"0.1.0": {},
"0.2.0": {},
"0.3.0": {},
"0.4.0": {},
}
// Externally set CDI Spec validation function.

View File

@ -3,7 +3,7 @@ package specs
import "os"
// CurrentVersion is the current version of the Spec.
const CurrentVersion = "0.3.0"
const CurrentVersion = "0.4.0"
// Spec is the base configuration for CDI
type Spec struct {
@ -45,6 +45,7 @@ type Mount struct {
HostPath string `json:"hostPath"`
ContainerPath string `json:"containerPath"`
Options []string `json:"options,omitempty"`
Type string `json:"type,omitempty"`
}
// Hook represents a hook that needs to be added to the OCI spec.

View File

@ -95,6 +95,7 @@ func (m *Mount) ToOCI() spec.Mount {
Source: m.HostPath,
Destination: m.ContainerPath,
Options: m.Options,
Type: m.Type,
}
}