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

Method Datasources

pkg/database/ent/mutation.go:9575–9581  ·  view source on GitHub ↗

Datasources returns the value of the "datasources" field in the mutation.

()

Source from the content-addressed store, hash-verified

9573
9574// Datasources returns the value of the "datasources" field in the mutation.
9575func (m *MachineMutation) Datasources() (r map[string]int64, exists bool) {
9576 v := m.datasources
9577 if v == nil {
9578 return
9579 }
9580 return *v, true
9581}
9582
9583// OldDatasources returns the old "datasources" field's value of the Machine entity.
9584// If the Machine object wasn't provided to the builder, the object is fetched from the database.

Callers 4

FieldMethod · 0.95
createSpecMethod · 0.80
sqlSaveMethod · 0.80
sqlSaveMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected