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

Method GetValue

pkg/database/ent/allowlistitem.go:165–167  ·  view source on GitHub ↗

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

(name string)

Source from the content-addressed store, hash-verified

163// GetValue returns the ent.Value that was dynamically selected and assigned to the AllowListItem.
164// This includes values selected through modifiers, order, etc.
165func (_m *AllowListItem) GetValue(name string) (ent.Value, error) {
166 return _m.selectValues.Get(name)
167}
168
169// QueryAllowlist queries the "allowlist" edge of the AllowListItem entity.
170func (_m *AllowListItem) QueryAllowlist() *AllowListQuery {

Callers

nothing calls this directly

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected