1
0
mirror of https://github.com/bingohuang/docker-labs.git synced 2025-10-05 18:03:21 +08:00

Make session replication

This commit is contained in:
Marcos Lilljedahl
2016-10-08 14:26:25 +02:00
parent 02d50073c5
commit b3e7dcae3b
4 changed files with 114 additions and 21 deletions

View File

@@ -1,12 +1,18 @@
package types
import (
"github.com/docker/docker/api/types"
"github.com/franela/play-with-docker/cookoo"
)
type Session struct {
Id string `json:"id"`
Instances map[string]*Instance `json:"instances"`
}
type Instance struct {
Name string `json:"name"`
IP string `json:"ip"`
ExecId string `json:"-"`
Name string `json:"name"`
IP string `json:"ip"`
Stdout *cookoo.MultiWriter `json:"-"`
Conn *types.HijackedResponse `json:"-"`
}