package entitlements
import "github.com/moby/buildkit/util/entitlements"
Index ¶
- type Entitlement
- type Set
- func WhiteList(allowed, supported []Entitlement) (Set, error)
- func (s Set) Allowed(e Entitlement) bool
- func (s Set) Check(v Values) error
- type Values
Types ¶
type Entitlement ¶
type Entitlement string
const ( EntitlementSecurityInsecure Entitlement = "security.insecure" EntitlementNetworkHost Entitlement = "network.host" )
func Parse ¶
func Parse(s string) (Entitlement, error)
type Set ¶
type Set map[Entitlement]struct{}
func WhiteList ¶
func WhiteList(allowed, supported []Entitlement) (Set, error)
func (Set) Allowed ¶
func (s Set) Allowed(e Entitlement) bool
func (Set) Check ¶
type Values ¶
Source Files ¶
- Version
- v0.16.0-rc1
- Published
- Sep 4, 2024
- Platform
- js/wasm
- Imports
- 1 packages
- Last checked
- 2 seconds ago –
Tools for package owners.