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

Method Version

pkg/database/ent/mutation.go:9209–9215  ·  view source on GitHub ↗

Version returns the value of the "version" field in the mutation.

()

Source from the content-addressed store, hash-verified

9207
9208// Version returns the value of the "version" field in the mutation.
9209func (m *MachineMutation) Version() (r string, exists bool) {
9210 v := m.version
9211 if v == nil {
9212 return
9213 }
9214 return *v, true
9215}
9216
9217// OldVersion returns the old "version" field's value of the Machine entity.
9218// If the Machine object wasn't provided to the builder, the object is fetched from the database.

Callers 1

FieldMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected