migration

package
v0.0.0-...-045538f Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2016 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

func NewManager

func NewManager(
	logger lager.Logger,
	db db.DB,
	cryptor encryption.Cryptor,
	storeClient etcd.StoreClient,
	migrations Migrations,
	migrationsDone chan<- struct{},
	clock clock.Clock,
) Manager

func (Manager) Run

func (m Manager) Run(signals <-chan os.Signal, ready chan<- struct{}) error

type Migration

type Migration interface {
	Version() int64
	Up(logger lager.Logger) error
	Down(logger lager.Logger) error
	SetStoreClient(storeClient etcd.StoreClient)
	SetCryptor(cryptor encryption.Cryptor)
}

type Migrations

type Migrations []Migration

func (Migrations) Len

func (m Migrations) Len() int

func (Migrations) Less

func (m Migrations) Less(i, j int) bool

func (Migrations) Swap

func (m Migrations) Swap(i, j int)

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