@@ -10,7 +10,7 @@ import (
10
10
"github.com/lima-vm/lima/pkg/store"
11
11
)
12
12
13
- // Basic lifecycle operations
13
+ // Basic lifecycle operations.
14
14
type Lifecycle interface {
15
15
// Validate returns error if the current driver isn't support for given config
16
16
Validate () error
@@ -36,7 +36,7 @@ type Lifecycle interface {
36
36
Stop (_ context.Context ) error
37
37
}
38
38
39
- // GUI-related operations
39
+ // GUI-related operations.
40
40
type GUI interface {
41
41
// CanRunGUI returns bool to indicate if the hostagent need to run GUI synchronously
42
42
CanRunGUI () bool
@@ -49,21 +49,21 @@ type GUI interface {
49
49
GetDisplayConnection (ctx context.Context ) (string , error )
50
50
}
51
51
52
- // Snapshot operations
52
+ // Snapshot operations.
53
53
type Snapshot interface {
54
54
CreateSnapshot (ctx context.Context , tag string ) error
55
55
ApplySnapshot (ctx context.Context , tag string ) error
56
56
DeleteSnapshot (ctx context.Context , tag string ) error
57
57
ListSnapshots (ctx context.Context ) (string , error )
58
58
}
59
59
60
- // Registration operations
60
+ // Registration operations.
61
61
type Registration interface {
62
62
Register (ctx context.Context ) error
63
63
Unregister (ctx context.Context ) error
64
64
}
65
65
66
- // Guest agent operations
66
+ // Guest agent operations.
67
67
type GuestAgent interface {
68
68
// ForwardGuestAgent returns if the guest agent sock needs forwarding by host agent.
69
69
ForwardGuestAgent () bool
@@ -76,7 +76,7 @@ type Plugin interface {
76
76
// Name returns the name of the driver
77
77
Name () string
78
78
79
- // NewDriver returns a new driver instance. Only to be used to embed internal drivers
79
+ // SetConfig sets the configuration for the instance.
80
80
SetConfig (inst * store.Instance , sshLocalPort int )
81
81
}
82
82
0 commit comments