Lines Matching refs:capability
1 package capability package
79 func (l *List) Get(capability Capability) []string {
80 if _, ok := l.m[capability]; !ok {
84 return l.m[capability].Values
88 func (l *List) Set(capability Capability, values ...string) error {
89 delete(l.m, capability)
90 return l.Add(capability, values...)
144 func (l *List) Supports(capability Capability) bool {
145 _, ok := l.m[capability]
150 func (l *List) Delete(capability Capability) {
151 if !l.Supports(capability) {
155 delete(l.m, capability)
157 if c != string(capability) {