Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DbConn *sqlx.DB
View Source
var DockerCli *client.Client
Functions ¶
func GetContainerStatus ¶
func GetContainerStatus(containerID string) (*types.ContainerState, error)
func StartContainer ¶
func StopContainer ¶
Types ¶
type Connection ¶
type Connection struct { Members int // contains filtered or unexported fields }
Connection Manager
type ConnectionManager ¶
type ConnectionManager struct { OnDeleteConnection func(string) error // contains filtered or unexported fields }
var ContainerManager *ConnectionManager
func NewConnectionManager ¶
func NewConnectionManager(onDeleteConnection func(string) error) *ConnectionManager
func (*ConnectionManager) GetConnection ¶
func (m *ConnectionManager) GetConnection(id string) (*Connection, error)
func (*ConnectionManager) NewConnection ¶
func (m *ConnectionManager) NewConnection(id string) error
Container ID should be full length
func (*ConnectionManager) RemoveConnection ¶
func (m *ConnectionManager) RemoveConnection(id string) error
func (*ConnectionManager) StartedContainer ¶
func (m *ConnectionManager) StartedContainer(id string) error
Click to show internal directories.
Click to hide internal directories.