multisite

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Dir string
}

func NewConfig

func NewConfig() Config

func (Config) ConfigDir

func (c Config) ConfigDir(name string) string

func (Config) ListConfigs

func (c Config) ListConfigs() (targets []Target, errs error)

func (Config) RemoveConfig

func (c Config) RemoveConfig(name string) error

func (Config) SaveConfig

func (c Config) SaveConfig(path, name string) (Target, error)

type Logger

type Logger interface {
	Printf(format string, v ...any)
}

type ServiceAPI

type ServiceAPI interface {
	ID() string
	UpdateServiceAndWait(instanceName string, arbitraryParams string, planName *string) error
	CreateHostInfoKey(instanceName string) (key string, err error)
	CreateCredentialsKey(instanceName string) (key string, err error)
	InstanceExists(instanceName string) error
	InstancePlanName(instanceName string) (planName string, err error)
	PlanExists(planName string) (err error)
}

type Target

type Target struct {
	Name         string
	Organization string
	Space        string
	API          string
}

func (*Target) UnmarshalJSON

func (t *Target) UnmarshalJSON(b []byte) error

func (*Target) Validate

func (t *Target) Validate() error

type Workflow

type Workflow struct {
	Foundation1 ServiceAPI
	Foundation2 ServiceAPI
	Logger      Logger
}

func NewWorkflow

func NewWorkflow(foundation1, foundation2 ServiceAPI, logger Logger) Workflow

func (Workflow) SetupReplication

func (w Workflow) SetupReplication(primaryInstance string, secondaryInstance string) error

func (Workflow) SwitchoverReplication

func (w Workflow) SwitchoverReplication(primaryInstance string, secondaryInstance string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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