Affected by GO-2023-1581
and 4 other vulnerabilities
GO-2023-1581 : Uncontrolled Resource Consumption in Hashicorp Nomad in github.com/hashicorp/nomad
GO-2024-2669 : API token secret ID leak to Sentinel 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
helper
pointer
package
Version:
v1.3.8
Opens a new window with list of versions in this module.
Published: Nov 21, 2022
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 Equals method.
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.