api

package
v0.13.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2025 License: GPL-3.0 Imports: 3 Imported by: 2

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 NewAPI

func NewAPI(mgr container.Manager) *API

Function to create a new API instance

func (*API) RunContainer

func (api *API) RunContainer(config container.ContainerConfig, showStats bool) (string, string, error)

Function to run a container and return the logs Creates. Starts, Waits and Removes the container. The showStats flag is for executing stats reader or not

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL