capabilities

package
v1.8.1-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2020 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const All = "ALL"

All is a special value used to add/drop all known capababilities. Useful on the CLI for `--cap-add=all` etc.

Variables

View Source
var (

	// ErrUnknownCapability is thrown when an unknown capability is processed.
	ErrUnknownCapability = errors.New("unknown capability")
)

Functions

func AllCapabilities

func AllCapabilities() []string

AllCapabilities returns all known capabilities.

func MergeCapabilities

func MergeCapabilities(base, adds, drops []string) ([]string, error)

MergeCapabilities computes a set of capabilities by adding capapbitilities to or dropping them from base.

Note that "ALL" will cause all known capabilities to be added/dropped but the ones specified to be dropped/added.

func ValidateCapabilities

func ValidateCapabilities(caps []string) error

ValidateCapabilities validates if caps only contains valid capabilities.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL