bufmigrate

package
v0.0.2 Latest Latest
Warning

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

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

Documentation

Overview

Package bufmigrate contains logic for migrating between different configuration file versions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Migrator

type Migrator interface {
	Migrate(dirPath string) error
}

Migrator describes the interface used to migrate a set of files in a directory from one version to another.

func NewV1Beta1Migrator

func NewV1Beta1Migrator(commandName string, options ...V1Beta1MigrateOption) Migrator

NewV1Beta1Migrator creates a new migrator that migrates files between version v1beta1 and v1.

type V1Beta1MigrateOption

type V1Beta1MigrateOption func(*v1beta1Migrator)

V1Beta1MigrateOption defines the type used to configure the v1beta1 migrator.

func V1Beta1MigratorWithNotifier

func V1Beta1MigratorWithNotifier(notifier func(message string) error) V1Beta1MigrateOption

V1Beta1MigratorWithNotifier instruments the migrator with a callback to call whenever an event that should notify the user occurs during the migration.

Jump to

Keyboard shortcuts

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