Skip to content

Commit 13db654

Browse files
committed
driver(external): consolidate some functions to single GetInfo() rpc call
Signed-off-by: Ansuman Sahoo <[email protected]>
1 parent 80bf1d9 commit 13db654

File tree

6 files changed

+154
-509
lines changed

6 files changed

+154
-509
lines changed

pkg/driver/driver.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ type Driver interface {
8484
}
8585

8686
type Info struct {
87-
DriverName string
88-
CanRunGUI bool
89-
VsockPort int
90-
VirtioPort string
87+
DriverName string `json:"driverName"`
88+
CanRunGUI bool `json:"canRunGui,omitempty"`
89+
VsockPort int `json:"vsockPort"`
90+
VirtioPort string `json:"virtioPort"`
9191
}

0 commit comments

Comments
 (0)