parallel

package
v2.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainerOp

func ContainerOp(ctx context.Context, ctrs []*libpod.Container, applyFunc func(*libpod.Container) error) (map[*libpod.Container]error, error)

ContainerOp performs the given function on the given set of containers, using a number of parallel threads. If no error is returned, each container specified in ctrs will have an entry in the resulting map; containers with no error will be set to nil.

func GetMaxThreads

func GetMaxThreads() uint

GetMaxThreads returns the current number of threads that will be used for parallel jobs.

func SetMaxThreads

func SetMaxThreads(threads uint) error

SetMaxThreads sets the number of threads that will be used for parallel jobs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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