Affected by GO-2022-0573
and 12 other vulnerabilities
GO-2022-0573 : Improper Authentication in HashiCorp Nomad in github.com/hashicorp/nomad
GO-2022-0591 : Privilege escalation in Hashicorp Nomad in github.com/hashicorp/nomad
GO-2022-0600 : HashiCorp Nomad Artifact Download Race Condition in github.com/hashicorp/nomad
GO-2022-0622 : Improper Privilege Management in HashiCorp Nomad in github.com/hashicorp/nomad
GO-2022-0634 : Hashicorp Nomad Information Exposure Through Environmental Variables in github.com/hashicorp/nomad
GO-2022-0709 : Improper network isolation in Hashicorp Nomad in github.com/hashicorp/nomad
GO-2022-0732 : Privilege escalation in Hashicorp Nomad in github.com/hashicorp/nomad
GO-2022-0821 : Improper Certificate Validation in HashiCorp Nomad in github.com/hashicorp/nomad
GO-2022-0840 : Allocation of Resources Without Limits or Throttling in HashiCorp Nomad in github.com/hashicorp/nomad
GO-2022-1062 : Nomad Panics On Job Submission With Bad Artifact Stanza Source URL in github.com/hashicorp/nomad
GO-2024-2670 : ACL security vulnerability in github.com/hashicorp/nomad
GO-2024-3073 : Nomad Vulnerable to Allocation Directory Escape On Non-Existing File Paths Through Archive Unpacking in github.com/hashicorp/nomad
GO-2024-3262 : Hashicorp Nomad Incorrect Authorization vulnerability in github.com/hashicorp/nomad
Discover Packages
github.com/hashicorp/nomad
lib
kheap
package
Version:
v0.9.0-beta1
Opens a new window with list of versions in this module.
Published: Jan 30, 2019
License: MPL-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 19
Opens a new window with list of known importers.
Documentation
Documentation
¶
type HeapItem interface {
Data() interface{}
Score() float64
}
HeapItem is an interface type implemented by objects stored in the ScoreHeap
type ScoreHeap struct {
}
A ScoreHeap implements heap.Interface and is a min heap
that keeps the top K elements by Score. Push can be called
with an arbitrary number of values but only the top K are stored
func (pq *ScoreHeap ) GetItemsReverse() []interface{}
GetItemsReverse returns the items in this min heap in reverse order
sorted by score descending
Push implements heap.Interface and returns the top K scoring
elements in increasing order of Score. Callers must reverse the order
of returned elements to get the top K scoring elements in descending order
Push implements heap.Interface and only stores
the top K elements by Score
Source Files
¶
Click to show internal directories.
Click to hide internal directories.