Versions in this module Expand all Collapse all v0 v0.0.1 Dec 22, 2016 Changes in this version + const Byte + const Kilobyte + const Megabyte + func CloseSession(s *Session) error + func CloseSessionAfter(s *Session, d time.Duration) + func ConnectNetwork(containerId, networkId string) error + func CreateAttachConnection(id string, ctx context.Context) (*types.HijackedResponse, error) + func CreateNetwork(name string) error + func CreateWSServer() *socketio.Server + func DeleteContainer(id string) error + func DeleteInstance(session *Session, instance *Instance) error + func DeleteNetwork(id string) error + func DisconnectNetwork(containerId, networkId string) error + func GetContainerInfo(id string) (types.ContainerJSON, error) + func GetContainerStats(id string) (io.ReadCloser, error) + func GetDaemonInfo(i *Instance) (types.Info, error) + func GetGoogleRecaptchaSiteKey() string + func GetGoogleRecaptchaSiteSecret() string + func GetUsedPorts(i *Instance) ([]uint16, error) + func IsHuman(req *http.Request) bool + func LoadSessionsFromDisk() error + func ResizeConnection(name string, cols, rows uint) error + func SetInstanceSwarmPorts(i *Instance) error + type Client struct + Id string + ViewPort ViewPort + func NewClient(so socketio.Socket, session *Session) *Client + func (c *Client) ResizeViewPort(cols, rows uint) + type Instance struct + Cpu string + Hostname string + IP string + IsManager *bool + Mem string + Name string + Ports []uint16 + func CreateInstance(session *Session, dindImage string) (*Instance, error) + func GetInstance(session *Session, name string) *Instance + func NewInstance(session *Session) (*Instance, error) + func (i *Instance) Attach() + func (i *Instance) IsConnected() bool + func (i *Instance) ResizeTerminal(cols, rows uint) error + func (i *Instance) SetSession(s *Session) + type Session struct + CreatedAt time.Time + ExpiresAt time.Time + Id string + Instances map[string]*Instance + func GetSession(sessionId string) *Session + func NewSession() (*Session, error) + func (s *Session) AddNewClient(c *Client) + func (s *Session) GetSmallestViewPort() ViewPort + func (s *Session) Lock() + func (s *Session) SchedulePeriodicTasks() + func (s *Session) Unlock() + type ViewPort struct + Cols uint + Rows uint