container

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerDaemon

type ContainerDaemon interface {
	InitDocker() bool

	PullImage(imageName string) bool

	BuildImage(imageName string, containerName string) string

	StartContainer(containerId string) bool

	StopContainer(containerId string) bool

	StopAllContainer()

	DeleteContainer(containerId string)

	SetupLogOfContainer(containerId string)

	WaitRun(containerId string)

	StartEmbeddedMysql() string

	FinishEmbeddedMysql(containerId string)
}

type ContainerDaemonImpl

type ContainerDaemonImpl struct {
	// contains filtered or unexported fields
}

func (ContainerDaemonImpl) BuildImage

func (c ContainerDaemonImpl) BuildImage(imageName string, containerName string) string

func (ContainerDaemonImpl) DeleteContainer

func (c ContainerDaemonImpl) DeleteContainer(containerId string)

func (ContainerDaemonImpl) FinishEmbeddedMysql

func (c ContainerDaemonImpl) FinishEmbeddedMysql(containerId string)

func (ContainerDaemonImpl) InitDocker

func (c ContainerDaemonImpl) InitDocker() bool

func (ContainerDaemonImpl) New

func (ContainerDaemonImpl) PullImage

func (c ContainerDaemonImpl) PullImage(imageName string) bool

func (ContainerDaemonImpl) SetupLogOfContainer

func (c ContainerDaemonImpl) SetupLogOfContainer(containerId string)

func (ContainerDaemonImpl) StartContainer

func (c ContainerDaemonImpl) StartContainer(containerId string) bool

func (ContainerDaemonImpl) StartEmbeddedMysql

func (c ContainerDaemonImpl) StartEmbeddedMysql() string

func (ContainerDaemonImpl) StopAllContainer

func (c ContainerDaemonImpl) StopAllContainer()

func (ContainerDaemonImpl) StopContainer

func (c ContainerDaemonImpl) StopContainer(containerId string) bool

func (ContainerDaemonImpl) WaitRun

func (c ContainerDaemonImpl) WaitRun(containerId string)

type ErrorContainer

type ErrorContainer struct {
	// contains filtered or unexported fields
}

func (ErrorContainer) ErrorMessage

func (e ErrorContainer) ErrorMessage()

type MysqlConfig

type MysqlConfig interface {
	AddSchema(dbName string)

	CreateTable(query string)
}

type MysqlConfigImpl

type MysqlConfigImpl struct {
	// contains filtered or unexported fields
}

func (MysqlConfigImpl) AddSchema

func (m MysqlConfigImpl) AddSchema(name string)

func (MysqlConfigImpl) CreateTable

func (m MysqlConfigImpl) CreateTable(query string)

func (MysqlConfigImpl) New

func (m MysqlConfigImpl) New() MysqlConfig

Jump to

Keyboard shortcuts

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