Affected by GO-2022-0732
and 5 other vulnerabilities
GO-2022-0732: Privilege escalation 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
GO-2024-3354: Hashicorp Nomad Incorrect Privilege Assignment vulnerability in github.com/hashicorp/nomad
package
Version:
v1.1.12
Opens a new window with list of versions in this module.
Published: Feb 10, 2022
License: MPL-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 52
Opens a new window with list of known importers.
Documentation
¶
-
func CPUProfile(ctx context.Context, sec int) ([]byte, map[string]string, error)
-
func Cmdline() ([]byte, map[string]string, error)
-
func IsErrProfileNotFound(err error) bool
-
func NewErrProfileNotFound(profile string) error
-
func Profile(profile string, debug, gc int) ([]byte, map[string]string, error)
-
func Trace(ctx context.Context, sec int) ([]byte, map[string]string, error)
-
type ReqType
CPUProfile generates a CPU Profile for a given duration
Cmdline responds with the running program's
command line, with arguments separated by NUL bytes.
IsErrProfileNotFound returns whether the error is due to a pprof profile
being invalid
NewErrProfileNotFound returns a new error caused by a pprof.Lookup
profile not being found
Profile generates a pprof.Profile report for the given profile name
see runtime/pprof/pprof.go for available profiles.
Trace runs a trace profile for a given duration
const (
CmdReq ReqType = "cmdline"
CPUReq ReqType = "cpu"
TraceReq ReqType = "trace"
LookupReq ReqType = "lookup"
ErrProfileNotFoundPrefix = "Pprof profile not found profile:"
)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.