Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dcontainer ¶
type Dcontainer struct { ID string Ctx context.Context LogFd *os.File HijackedRes types.HijackedResponse Cli *client.Client }
A Package wrapper for handling docker containers
func (*Dcontainer) Close ¶
func (d *Dcontainer) Close(HijackRes bool)
func (*Dcontainer) GetStats ¶
func (d *Dcontainer) GetStats() (typ.StatsInfo, error)
Getstats get the docker container stats and stores into StatsInfo
func (*Dcontainer) Kill ¶
func (d *Dcontainer) Kill() error
Kill will kill the docker container using container id
func (*Dcontainer) Run ¶
Run will PUll an image if its not available and start a container and attach to it It will also set the max memory limit of the image.
func (*Dcontainer) Wait ¶
func (d *Dcontainer) Wait() int64
Click to show internal directories.
Click to hide internal directories.