newInstanceMigration returns a new InstanceMigration.
(ctx context.Context, server incus.InstanceServer, asker ask.Asker, flafRsyncArgs string, migraionType MigrationType)
| 33 | |
| 34 | // newInstanceMigration returns a new InstanceMigration. |
| 35 | func 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. |
| 48 | func (m *InstanceMigration) gatherInfo() error { |
no outgoing calls
no test coverage detected
searching dependent graphs…