package capabilities

import "github.com/docker/docker/pkg/capabilities"

Package capabilities allows to generically handle capabilities.

Index

Types

type Set

type Set map[string]struct{}

Set represents a set of capabilities.

func (Set) Match

func (set Set) Match(caps [][]string) []string

Match tries to match set with caps, which is an OR list of AND lists of capabilities. The matched AND list of capabilities is returned; or nil if none are matched.

Source Files

caps.go

Version
v23.0.9+incompatible
Published
Jan 3, 2024
Platform
js/wasm
Last checked
1 minute ago

Tools for package owners.