Skip to content

Commit 5f260b4

Browse files
committed
driver(internal): use existing driver.Driver as plugin interface
Signed-off-by: Ansuman Sahoo <[email protected]>
1 parent ca17b25 commit 5f260b4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkg/driver/driver.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ type Driver interface {
7171

7272
// GuestAgentConn returns the guest agent connection, or nil (if forwarded by ssh).
7373
GuestAgentConn(_ context.Context) (net.Conn, error)
74+
75+
// Returns the driver name.
76+
Name() string
7477
}
7578

7679
type BaseDriver struct {
@@ -152,3 +155,7 @@ func (d *BaseDriver) GuestAgentConn(_ context.Context) (net.Conn, error) {
152155
// use the unix socket forwarded by host agent
153156
return nil, nil
154157
}
158+
159+
func (d *BaseDriver) Name() string {
160+
return ""
161+
}

0 commit comments

Comments
 (0)