migrate

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	ServiceExists(serviceName string) bool
	CreateServiceInstance(planType, instanceName string) error
	GetHostnames(instanceName string) ([]string, error)
	UpdateServiceConfig(instanceName string, jsonParams string) error
	BindService(appName, serviceName string) error
	DeleteApp(appName string) error
	DeleteServiceInstance(instanceName string) error
	DumpLogs(appName string)
	PushApp(path, appName string) error
	RenameService(oldName, newName string) error
	RunTask(appName, command string) error
	StartApp(appName string) error
}

type Migrator

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

func NewMigrator

func NewMigrator(client Client, unpacker unpacker) *Migrator

func (*Migrator) CheckServiceExists

func (m *Migrator) CheckServiceExists(donorInstanceName string) error

func (*Migrator) CleanupOnError

func (m *Migrator) CleanupOnError(recipientServiceInstance string) error

func (*Migrator) CreateAndConfigureServiceInstance

func (m *Migrator) CreateAndConfigureServiceInstance(planType, serviceName string) error

func (*Migrator) MigrateData

func (m *Migrator) MigrateData(donorInstanceName, recipientInstanceName string, cleanup bool) error

func (*Migrator) RenameServiceInstances

func (m *Migrator) RenameServiceInstances(donorInstanceName, recipientInstanceName string) error

Directories

Path Synopsis
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