services

package
v0.0.0-...-aecab60 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DbConn *sqlx.DB
View Source
var DockerCli *client.Client

Functions

func CreateContainerForDockbox

func CreateContainerForDockbox(mountPath string) (string, error)

func GetContainerStatus

func GetContainerStatus(containerID string) (*types.ContainerState, error)

func Init

func Init()

func StartContainer

func StartContainer(containerID string) error

func StopContainer

func StopContainer(containerID string) error

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

Jump to

Keyboard shortcuts

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