Affected by GO-2022-0560
and 10 other vulnerabilities
GO-2022-0560 : Nomad Spread Job Stanza May Trigger Panic in Servers in github.com/hashicorp/nomad
GO-2022-0573 : Improper Authentication in HashiCorp Nomad in github.com/hashicorp/nomad
GO-2022-0577 : HashiCorp Nomad vulnerable to Allocation of Resources Without Limits or Throttling in github.com/hashicorp/nomad
GO-2022-0584 : Arbitrary file reads in HashiCorp Nomad in github.com/hashicorp/nomad
GO-2022-0600 : HashiCorp Nomad Artifact Download Race Condition in github.com/hashicorp/nomad
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
Discover Packages
github.com/hashicorp/nomad
helper
fields
package
Version:
v1.0.12
Opens a new window with list of versions in this module.
Published: Oct 5, 2021
License: MPL-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
FieldData contains the raw data and the schema that the data should adhere to
Get gets the value for the given field. If the key is an invalid field,
FieldData will panic. If you want a safer version of this method, use
GetOk. If the field k is not set, the default value (if set) will be
returned, otherwise the zero value will be returned.
GetOk gets the value for the given field. The second return value
will be false if the key is invalid or the key is not set at all.
GetOkErr is the most conservative of all the Get methods. It returns
whether key is set or not, but also an error value. The error value is
non-nil if the field doesn't exist or there was an error parsing the
field value.
Validate cycles through the raw data and validates conversions in the schema.
It also checks for the existence and value of required fields.
type FieldSchema struct {
Type FieldType
Default interface{}
Description string
Required bool
}
FieldSchema is a basic schema to describe the format of a configuration field
DefaultOrZero returns the default value if it is set, or otherwise
the zero value of the type.
FieldType is the enum of types that a field can be.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.