mirror of
https://github.com/containers/podman.git
synced 2025-12-07 22:32:46 +08:00
fix(deps): update module github.com/crc-org/vfkit to v0.6.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
16
vendor/github.com/crc-org/vfkit/pkg/config/json.go
generated
vendored
16
vendor/github.com/crc-org/vfkit/pkg/config/json.go
generated
vendored
@@ -22,6 +22,7 @@ const (
|
||||
vfBlk vmComponentKind = "virtioblk"
|
||||
vfFs vmComponentKind = "virtiofs"
|
||||
vfRng vmComponentKind = "virtiorng"
|
||||
vfBalloon vmComponentKind = "virtioballoon"
|
||||
vfSerial vmComponentKind = "virtioserial"
|
||||
vfGpu vmComponentKind = "virtiogpu"
|
||||
vfInput vmComponentKind = "virtioinput"
|
||||
@@ -159,6 +160,10 @@ func unmarshalDevice(rawMsg json.RawMessage) (VirtioDevice, error) {
|
||||
var newDevice VirtioRng
|
||||
err = json.Unmarshal(rawMsg, &newDevice)
|
||||
dev = &newDevice
|
||||
case vfBalloon:
|
||||
var newDevice VirtioBalloon
|
||||
err = json.Unmarshal(rawMsg, &newDevice)
|
||||
dev = &newDevice
|
||||
case vfSerial:
|
||||
var newDevice VirtioSerial
|
||||
err = json.Unmarshal(rawMsg, &newDevice)
|
||||
@@ -346,6 +351,17 @@ func (dev *VirtioRng) MarshalJSON() ([]byte, error) {
|
||||
})
|
||||
}
|
||||
|
||||
func (dev *VirtioBalloon) MarshalJSON() ([]byte, error) {
|
||||
type devWithKind struct {
|
||||
jsonKind
|
||||
VirtioBalloon
|
||||
}
|
||||
return json.Marshal(devWithKind{
|
||||
jsonKind: kind(vfBalloon),
|
||||
VirtioBalloon: *dev,
|
||||
})
|
||||
}
|
||||
|
||||
func (dev *VirtioSerial) MarshalJSON() ([]byte, error) {
|
||||
type devWithKind struct {
|
||||
jsonKind
|
||||
|
||||
Reference in New Issue
Block a user