MCPcopy
hub / github.com/crowdsecurity/crowdsec / GetValue

Method GetValue

pkg/database/ent/configitem.go:96–98  ·  view source on GitHub ↗

GetValue returns the ent.Value that was dynamically selected and assigned to the ConfigItem. This includes values selected through modifiers, order, etc.

(name string)

Source from the content-addressed store, hash-verified

94// GetValue returns the ent.Value that was dynamically selected and assigned to the ConfigItem.
95// This includes values selected through modifiers, order, etc.
96func (_m *ConfigItem) GetValue(name string) (ent.Value, error) {
97 return _m.selectValues.Get(name)
98}
99
100// Update returns a builder for updating this ConfigItem.
101// Note that you need to call ConfigItem.Unwrap() before calling this method if this ConfigItem

Callers

nothing calls this directly

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected