migrate

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildContainerConfig

func BuildContainerConfig(config MigrateConfig) (*docker.ContainerConfig, error)

Types

type Component

type Component struct {
	Container docker.Container
	// contains filtered or unexported fields
}

func New

func New(cli *docker.Docker, config MigrateConfig) (*Component, error)

func (*Component) Start

func (c *Component) Start(ctx context.Context) error

func (*Component) Stop

func (c *Component) Stop(ctx context.Context) error

type MigrateConfig

type MigrateConfig struct {
	Path     string
	Password string
	Port     string
	Hostname string
	Database string
	Labels   map[string]string
	// contains filtered or unexported fields
}

func (*MigrateConfig) Build

func (c *MigrateConfig) Build() error

func (*MigrateConfig) DBConnString

func (c *MigrateConfig) DBConnString() string

Jump to

Keyboard shortcuts

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