commands

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: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	SaveTargetUsage   = `cf mysql-tools save-target <target-name>`
	RemoveTargetUsage = `Usage: cf mysql-tools remove-target <target-name>`
)
View Source
const (
	SetupReplicationUsage = `` /* 144-byte string literal not displayed */
)
View Source
const (
	SwitchoverReplicationUsage = `` /* 154-byte string literal not displayed */
)

Variables

This section is empty.

Functions

func FindBindings

func FindBindings(args []string, bf BindingFinder) error

func ListTargets

func ListTargets(cfg MultisiteConfig) error

func Migrate

func Migrate(args []string, migrator Migrator) error

func RemoveTarget

func RemoveTarget(args []string, cfg MultisiteConfig) error

func SaveTarget

func SaveTarget(args []string, cfg MultisiteConfig) error

func SetupReplication

func SetupReplication(args []string, cfg MultisiteConfig) error

func SwitchoverReplication

func SwitchoverReplication(args []string, cfg MultisiteConfig, out io.Writer, in io.Reader) error

func Version

func Version() error

Types

type BindingFinder

type BindingFinder interface {
	FindBindings(serviceLabel string) ([]findbindings.Binding, error)
}

type Migrator

type Migrator interface {
	CheckServiceExists(instanceName string) error
	CreateServiceInstance(planName, instanceName string) error
	CleanupOnError(instanceName string) error
	MigrateData(opts migrate.MigrateOptions) error
	RenameServiceInstances(donorInstanceName, recipientInstanceName string) error
}

type MultisiteConfig

type MultisiteConfig interface {
	ListConfigs() ([]multisite.Target, error)
	SaveConfig(configPath, targetName string) (multisite.Target, error)
	RemoveConfig(targetName string) error
	ConfigDir(targetName string) (path string)
}

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