1
0
mirror of https://github.com/bingohuang/docker-labs.git synced 2025-07-14 01:57:32 +08:00
docker-labs/types/session.go
2016-10-14 12:54:25 -03:00

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:"-"`
}