MCPcopy Create free account
hub / github.com/devfile/devworkspace-operator / PutString

Method PutString

apis/controller/v1alpha1/attributes.go:320–326  ·  view source on GitHub ↗

PutString allows adding a string attribute to the current map of attributes

(key string, value string)

Source from the content-addressed store, hash-verified

318// PutString allows adding a string attribute to the
319// current map of attributes
320func (attributes Attributes) PutString(key string, value string) Attributes {
321 rawJSON, _ := json.Marshal(value)
322 attributes[key] = apiext.JSON{
323 Raw: rawJSON,
324 }
325 return attributes
326}
327
328// FromStringMap allows adding into the current map of attributes all
329// the attributes contained in the given string map

Calls

no outgoing calls

Tested by 4

createDWRFunction · 0.76
markRoutingReadyFunction · 0.76
TestInferWorkspaceImageFunction · 0.64