migration

package
v0.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package migration handles the migration of volumes and snapshots from the Instance API to the new Block API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Migration

type Migration struct {
	// contains filtered or unexported fields
}

The Migration struct holds a Kubernetes and Scaleway client.

func New

New returns a new instance of Migration with the specified k8s/scw clients.

func (*Migration) Do

func (m *Migration) Do(ctx context.Context) error

Do runs the migration of all Scaleway PersistentVolumes and VolumeSnapshotContents from the Instance API to the new Block API.

type Options

type Options struct {
	DryRun                   bool
	DisableVolumeMigration   bool
	DisableSnapshotMigration bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL