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

Method Hubstate

pkg/database/ent/mutation.go:9526–9532  ·  view source on GitHub ↗

Hubstate returns the value of the "hubstate" field in the mutation.

()

Source from the content-addressed store, hash-verified

9524
9525// Hubstate returns the value of the "hubstate" field in the mutation.
9526func (m *MachineMutation) Hubstate() (r map[string][]schema.ItemState, exists bool) {
9527 v := m.hubstate
9528 if v == nil {
9529 return
9530 }
9531 return *v, true
9532}
9533
9534// OldHubstate returns the old "hubstate" field's value of the Machine entity.
9535// 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