migrations

package
v0.0.0-...-afc9d75 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: BSD-2-Clause Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMigrationFromVersion

func CreateMigrationFromVersion(version string, path string) error

func GetExistingMigrations

func GetExistingMigrations(path string) ([]string, error)

Types

type MigrationPart

type MigrationPart struct {
	ProductVersion string
}

func (*MigrationPart) Write

func (m *MigrationPart) Write(dir string) error

type Migrations

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

func New

func New(api api.Api, versionFetcher ProductVersionFetcher, path string) (*Migrations, error)

func (*Migrations) WriteMissingMigrations

func (m *Migrations) WriteMissingMigrations(productName string) error

type ProductVersionFetcher

type ProductVersionFetcher interface {
	FetchProductVersion(productPath string) (string, error)
}

func NewProductVersionFetcher

func NewProductVersionFetcher() ProductVersionFetcher

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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