Documentation ¶
Index ¶
- Constants
- 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
- type Instance
- type Session
- type ViewPort
Constants ¶
View Source
const ( Byte = 1 Kilobyte = 1024 * Byte Megabyte = 1024 * Kilobyte )
Variables ¶
This section is empty.
Functions ¶
func CloseSession ¶
func CloseSessionAfter ¶
func ConnectNetwork ¶
func CreateAttachConnection ¶
func CreateNetwork ¶
func CreateWSServer ¶
func CreateWSServer() *socketio.Server
func DeleteContainer ¶
func DeleteInstance ¶
func DeleteNetwork ¶
func DisconnectNetwork ¶
func GetContainerInfo ¶
func GetContainerInfo(id string) (types.ContainerJSON, error)
func GetContainerStats ¶
func GetContainerStats(id string) (io.ReadCloser, error)
func GetGoogleRecaptchaSiteKey ¶
func GetGoogleRecaptchaSiteKey() string
func GetGoogleRecaptchaSiteSecret ¶
func GetGoogleRecaptchaSiteSecret() string
func GetUsedPorts ¶
func LoadSessionsFromDisk ¶
func LoadSessionsFromDisk() error
func ResizeConnection ¶
func SetInstanceSwarmPorts ¶
Types ¶
type Client ¶
func (*Client) ResizeViewPort ¶
type Instance ¶
type Instance struct { Name string `json:"name"` Hostname string `json:"hostname"` IP string `json:"ip"` IsManager *bool `json:"is_manager"` Mem string `json:"mem"` Cpu string `json:"cpu"` Ports []uint16 `json:"ports"` // contains filtered or unexported fields }
func GetInstance ¶
func NewInstance ¶
func (*Instance) IsConnected ¶
func (*Instance) ResizeTerminal ¶
func (*Instance) SetSession ¶
type Session ¶
type Session struct { Id string `json:"id"` Instances map[string]*Instance `json:"instances"` CreatedAt time.Time `json:"created_at"` ExpiresAt time.Time `json:"expires_at"` // contains filtered or unexported fields }
func GetSession ¶
func NewSession ¶
func (*Session) AddNewClient ¶
func (*Session) GetSmallestViewPort ¶
func (*Session) SchedulePeriodicTasks ¶
func (s *Session) SchedulePeriodicTasks()
Click to show internal directories.
Click to hide internal directories.