Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct { Name string ID string Image string IP string Proxy http.Handler Started bool StartedAt time.Time TTL time.Duration Config *dockerclient.ContainerConfig // contains filtered or unexported fields }
Container represents a ephemeral container.
type Ephemera ¶
func (*Ephemera) KillAll ¶
func (e *Ephemera) KillAll()
KillAll kills all the spawned containers still alive.
func (*Ephemera) NewContainer ¶
Spawn a new container with the given Docker image and TTL. The container will be killed only if WaitKill/Kill is called manually.
func (*Ephemera) RegisterHandler ¶
RegisterHandler registers /demo/new and /demo/{id} routes.
Click to show internal directories.
Click to hide internal directories.