Skip to content

Commit 38dcc7e

Browse files
committed
driver(internal): refactor Snapshot to SnapshotManager in driver interface
Signed-off-by: Ansuman Sahoo <[email protected]>
1 parent 0f42995 commit 38dcc7e

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

cmd/limactl/start.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ $ limactl create --set='.cpus = 2 | .memory = "2GiB"'
5555
To see the template list:
5656
$ limactl create --list-templates
5757
58-
To see the drivers list:
59-
$ limactl create --list-drivers
6058
6159
To create an instance "default" from a local file:
6260
$ limactl create --name=default /usr/local/share/lima/templates/fedora.yaml

pkg/driver/driver.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ type GUI interface {
4949
GetDisplayConnection(ctx context.Context) (string, error)
5050
}
5151

52-
// Snapshot defines operations for managing snapshots.
53-
type Snapshot interface {
52+
// SnapshotManager defines operations for managing snapshots.
53+
type SnapshotManager interface {
5454
CreateSnapshot(ctx context.Context, tag string) error
5555
ApplySnapshot(ctx context.Context, tag string) error
5656
DeleteSnapshot(ctx context.Context, tag string) error
@@ -84,7 +84,7 @@ type Plugin interface {
8484
type Driver interface {
8585
Lifecycle
8686
GUI
87-
Snapshot
87+
SnapshotManager
8888
Registration
8989
GuestAgent
9090
Plugin

0 commit comments

Comments
 (0)