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 ¶
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 ¶
ValidateCapabilities validates if caps only contains valid capabilities.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.