Affected by GO-2024-2669
and 3 other vulnerabilities
GO-2024-2669 : API token secret ID leak to Sentinel 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
GO-2024-3354 : Hashicorp Nomad Incorrect Privilege Assignment vulnerability in github.com/hashicorp/nomad
Discover Packages
github.com/hashicorp/nomad
helper
pointer
package
Version:
v1.5.6
Opens a new window with list of versions in this module.
Published: May 19, 2023
License: MPL-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 27
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package pointer provides helper functions related to Go pointers.
func Copy[A any ](a *A) *A
Copy returns a new pointer to a.
Eq returns whether a and b are equal in underlying value.
May only be used on pointers to primitive types, where the comparison is
guaranteed to be sensible. For complex types (i.e. structs) consider implementing
an Equal method.
func Merge[P Primitive ](previous, next *P) *P
Merge will return Copy(next) if next is not nil, otherwise return Copy(previous).
Of returns a pointer to a.
Primitive represents basic types that are safe to do basic comparisons by
pointer dereference (checking nullity first).
Source Files
¶
Click to show internal directories.
Click to hide internal directories.