driver

package
v0.0.0-...-09bd25a Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionDetails

type ConnectionDetails map[string]string

type Container

type Container struct {
	Namespace string
	Database  string
	Backup    string
	// contains filtered or unexported fields
}

func (*Container) RegisterDriver

func (p *Container) RegisterDriver(d *Driver) error

RegisterDriver registers your driver with the provider

func (*Container) Run

func (p *Container) Run() error

Run the provider, which will reconcile the provided database/backup using the registered drivers

type Credentials

type Credentials struct {
	Username string
	Password string
}

type Driver

type Driver struct {
	Name     string
	Connect  ConnectionDetails
	Master   Credentials
	Database Credentials
	Create   func(*Driver) error
	Drop     func(*Driver) error
	Backup   func(*Driver, *io.Writer) error
}

Jump to

Keyboard shortcuts

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