batch

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPriorityManager

func NewPriorityManager(config PriorityManagerConfig) (manage.ResourceManager, error)

NewPriorityManager returns a batch func that batches the resources by priority. If priorities enabled (default), batchManager will manage `apply` state resources (not on `deletes`) in sorted batches of priority, priorities can be set using group configuration.

Types

type PriorityManagerConfig

type PriorityManagerConfig struct {
	// DisablePriorities will disable batching by priorities.
	DisablePriorities bool
	// Manager is the original manager used to apply and delete.
	Manager         manage.ResourceManager
	GroupRepository storage.GroupRepository
	Logger          log.Logger
}

PriorityManagerConfig is the configuration of the priority batch manager.

Jump to

Keyboard shortcuts

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