MCPcopy
hub / github.com/kubernetes-sigs/kwok / Add

Method Add

pkg/utils/queue/queue.go:27–27  ·  view source on GitHub ↗

Add adds an item to the queue.

(item T)

Source from the content-addressed store, hash-verified

25type Queue[T any] interface {
26 // Add adds an item to the queue.
27 Add(item T)
28 // Get returns an item from the queue.
29 Get() (T, bool)
30 // GetOrWait returns an item from the queue or waits until an item is added.

Callers 15

TestSimpleFunction · 0.95
TestBlockFunction · 0.95
NewSimpleClientsetFunction · 0.65
watchResourcesMethod · 0.65
TestNodeLeaseControllerFunction · 0.65
Test_tryAcquireOrRenewFunction · 0.65
TestExpireTimeFunction · 0.65
TryHoldMethod · 0.65
tryAcquireOrRenewFunction · 0.65
expireTimeFunction · 0.65

Calls

no outgoing calls

Tested by 11

TestSimpleFunction · 0.76
TestBlockFunction · 0.76
TestNodeLeaseControllerFunction · 0.52
Test_tryAcquireOrRenewFunction · 0.52
TestExpireTimeFunction · 0.52
TestNodeEvaluationFunction · 0.52
TestInformerWatchFunction · 0.52
Test_newDurationFrom_GetFunction · 0.52
TestGeneratePkiFunction · 0.52