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:
@@ -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:"-"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user