Skip to content

Commit 1c526cb

Browse files
committed
driver(internal): refactor Snapshot to SnapshotManager in driver interface
Signed-off-by: Ansuman Sahoo <anshumansahoo500@gmail.com>
1 parent 974ff07 commit 1c526cb

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
@@ -56,8 +56,6 @@ $ limactl create --set='.cpus = 2 | .memory = "2GiB"'
5656
To see the template list:
5757
$ limactl create --list-templates
5858
59-
To see the drivers list:
60-
$ limactl create --list-drivers
6159
6260
To create an instance "default" from a local file:
6361
$ 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)