Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API struct with containerManager field
func (*API) EnsureImages ¶ added in v1.2.0
func (*API) RunContainer ¶
func (api *API) RunContainer(config container.ContainerConfig, showStats bool) (string, string, error)
RunContainer запускает контейнер, агрессивно «поллит» его stats в tight‐loop, пока контейнер не завершится, и возвращает stdout+stderr и JSON со статистикой. Даже если контейнер прожил 5 мс, первый же вызов GetStatsOneShot после Start гарантированно успеет вернуть хоть один снимок, прежде чем контейнер полностью уйдёт.
func (*API) RunContainerParallel ¶ added in v0.9.0
func (api *API) RunContainerParallel(config container.ContainerConfig, wg *sync.WaitGroup, c chan string) error
Function to run containers in parallel using goroutines and channels. The container logs are sent to the channel. Creates. Starts, Waits and Removes the container.
Click to show internal directories.
Click to hide internal directories.