migrate

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 6 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
	BindService(appName, serviceName string) error
	DeleteApp(appName string) error
	DeleteServiceInstance(instanceName string) error
	GetLogs(appName, filter string) ([]string, error)
	PushApp(path, appName string) error
	RenameService(oldName, newName string) error
	RunTask(appName, command string) error
	StartApp(appName string) error
}

type MigrateOptions added in v0.7.1

type MigrateOptions struct {
	DonorInstanceName     string
	RecipientInstanceName string
	Cleanup               bool
	SkipTLSValidation     bool
}

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) CreateServiceInstance added in v0.8.0

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

func (*Migrator) MigrateData

func (m *Migrator) MigrateData(opts MigrateOptions) error

func (*Migrator) RenameServiceInstances

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

type Unpacker added in v0.7.1

type Unpacker interface {
	Unpack(destDir 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