package
1.6.112
Repository: https://github.com/hernad/nomad.git
Documentation: pkg.go.dev

# Functions

Calculate the resulting set of linux capabilities to enable for a task, taking into account: - default capability basis - driver allowable capabilities - task capability drops - task capability adds Nomad establishes a standard set of enabled capabilities allowed by the task driver if allow_caps is not set.
Delta calculates the set of capabilities that must be added and dropped relative to a basis to achieve a desired result.
DockerDefaults is a list of Linux capabilities enabled by Docker by default and is used to compute the set of capabilities to add/drop given docker driver configuration.
LegacySupported returns the historical set of capabilities used when a task is configured to run as root using the exec task driver.
New creates a new Set setting caps as the initial elements.
NomadDefaults is the set of Linux capabilities that Nomad enables by default.
Supported returns the set of capabilities supported by the operating system.

# Constants

HCLSpecLiteral is an equivalent list to NomadDefaults, expressed as a literal HCL string for use in HCL config parsing.

# Structs

Set represents a group linux capabilities, implementing some useful set operations, taking care of name normalization, and sentinel value expansions.