mirror of
https://github.com/bingohuang/docker-labs.git
synced 2025-07-14 01:57:32 +08:00
22 lines
453 B
Go
22 lines
453 B
Go
package types
|
|
|
|
import (
|
|
"sync"
|
|
|
|
"github.com/docker/docker/api/types"
|
|
"github.com/franela/play-with-docker/cookoo"
|
|
)
|
|
|
|
type Session struct {
|
|
sync.Mutex
|
|
Id string `json:"id"`
|
|
Instances map[string]*Instance `json:"instances"`
|
|
}
|
|
|
|
type Instance struct {
|
|
Name string `json:"name"`
|
|
IP string `json:"ip"`
|
|
Stdout *cookoo.MultiWriter `json:"-"`
|
|
Conn *types.HijackedResponse `json:"-"`
|
|
}
|