package apicaps
import "github.com/moby/buildkit/util/apicaps"
Index ¶
- Variables
- type Cap
- type CapError
- type CapID
- type CapList
- func (l *CapList) All() []pb.APICap
- func (l *CapList) CapSet(caps []pb.APICap) CapSet
- func (l *CapList) Init(cc ...Cap)
- type CapSet
- type CapStatus
- type PBCap
Variables ¶
var ExportedProduct string
ExportedProduct is the name of the product using this package. Users vendoring this library may override it to provide better versioning hints for their users (or set it with a flag to buildkitd).
Types ¶
type Cap ¶
type Cap struct { ID CapID Name string // readable name, may contain spaces but keep in one sentence Status CapStatus Enabled bool Deprecated bool SupportedHint map[string]string DisabledReason string DisabledReasonMsg string DisabledAlternative string }
Cap describes an API feature
type CapError ¶
CapError is an error for unsupported capability
func (CapError) Error ¶
type CapID ¶
type CapID string
CapID is type for capability identifier
type CapList ¶
type CapList struct {
// contains filtered or unexported fields
}
CapList is a collection of capability definitions
func (*CapList) All ¶
All reports the configuration of all known capabilities
func (*CapList) CapSet ¶
CapSet returns a CapSet for an capability configuration
func (*CapList) Init ¶
Init initializes definition for a new capability. Not safe to be called concurrently with other methods.
type CapSet ¶
type CapSet struct {
// contains filtered or unexported fields
}
CapSet is a configuration for detecting supported capabilities
func (*CapSet) Supports ¶
Supports returns an error if capability is not supported
type CapStatus ¶
type CapStatus int
CapStatus defines the stability properties of a capability
const ( // CapStatusStable refers to a capability that should never be changed in // backwards incompatible manner unless there is a serious security issue. CapStatusStable CapStatus = iota // CapStatusExperimental refers to a capability that may be removed in the future. // If incompatible changes are made the previous ID is disabled and new is added. CapStatusExperimental // CapStatusPrerelease is same as CapStatusExperimental that can be used for new // features before they move to stable. CapStatusPrerelease )
type PBCap ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
util/apicaps/pb |
- Version
- v0.7.2
- Published
- Jul 27, 2020
- Platform
- js/wasm
- Imports
- 5 packages
- Last checked
- 1 minute ago –
Tools for package owners.