migrator

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Migrator

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

func NewMigrator

func NewMigrator(retriever Retriever, populator Populator, reporter Reporter, namespace string) *Migrator

func (*Migrator) Migrate

func (m *Migrator) Migrate(logger lager.Logger, progressLogger *log.Logger, writer io.Writer, dryRun bool)

type Populator

type Populator interface {
	PopulateOrganization(logger lager.Logger, org models.Organization, namespace string) []error
	PopulateSpace(logger lager.Logger, space models.Space, namespace string) []error
}

type Reporter

type Reporter interface {
	GenerateReport(w io.Writer, orgs []models.Organization, spaces []models.Space, errs []error)
}

type Retriever

type Retriever interface {
	FetchResources(logger lager.Logger, progressLogger *log.Logger, orgs chan<- models.Organization, spaces chan<- models.Space, errs chan<- error)
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.
reporterfakes
Code generated by counterfeiter.
Code generated by counterfeiter.
retrieverfakes
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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