pool

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New added in v0.2.0

func New(ch chan struct{}, compareFunc structs.CompareFunc) *jobPool

New is a constructor for a jobPool

Types

type JobNode

type JobNode struct {
	*v1.IntegrationJob
}

JobNode is a node to be stored in jobMap and jobPool

func (*JobNode) DeepCopy

func (f *JobNode) DeepCopy() structs.Item

DeepCopy implements Item's method

func (*JobNode) Equals

func (f *JobNode) Equals(another structs.Item) bool

Equals implements Item's method

type JobPool

type JobPool interface {
	Lock()
	Unlock()
	SyncJob(job *v1.IntegrationJob)
	Running() structs.SortedUniqueList
	Pending() structs.SortedUniqueList
}

JobPool is an interface of jobPool

Jump to

Keyboard shortcuts

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