MCPcopy
hub / github.com/lxc/incus / newInstanceMigration

Function newInstanceMigration

cmd/incus-migrate/migrate_instance.go:35–45  ·  view source on GitHub ↗

newInstanceMigration returns a new InstanceMigration.

(ctx context.Context, server incus.InstanceServer, asker ask.Asker, flafRsyncArgs string, migraionType MigrationType)

Source from the content-addressed store, hash-verified

33
34// newInstanceMigration returns a new InstanceMigration.
35func newInstanceMigration(ctx context.Context, server incus.InstanceServer, asker ask.Asker, flafRsyncArgs string, migraionType MigrationType) Migrator {
36 return &InstanceMigration{
37 Migration: &Migration{
38 asker: asker,
39 ctx: ctx,
40 server: server,
41 migrationType: migraionType,
42 },
43 flagRsyncArgs: flafRsyncArgs,
44 }
45}
46
47// gatherInfo collects information from the user about the instance to be created.
48func (m *InstanceMigration) gatherInfo() error {

Callers 2

runMethod · 0.85
newOVAMigrationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…