MCPcopy Create free account
hub / github.com/devfile/api / PutBoolean

Method PutBoolean

pkg/attributes/attributes.go:389–395  ·  view source on GitHub ↗

PutBoolean allows adding a boolean attribute to the current map of attributes

(key string, value bool)

Source from the content-addressed store, hash-verified

387// PutBoolean allows adding a boolean attribute to the
388// current map of attributes
389func (attributes Attributes) PutBoolean(key string, value bool) Attributes {
390 rawJSON, _ := json.Marshal(value)
391 attributes[key] = apiext.JSON{
392 Raw: rawJSON,
393 }
394 return attributes
395}
396
397// FromBooleanMap allows adding into the current map of attributes all
398// the attributes contained in the given map of booleans

Callers 1

attributes_test.goFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected