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

Method APIKey

pkg/database/ent/mutation.go:4715–4721  ·  view source on GitHub ↗

APIKey returns the value of the "api_key" field in the mutation.

()

Source from the content-addressed store, hash-verified

4713
4714// APIKey returns the value of the "api_key" field in the mutation.
4715func (m *BouncerMutation) APIKey() (r string, exists bool) {
4716 v := m.api_key
4717 if v == nil {
4718 return
4719 }
4720 return *v, true
4721}
4722
4723// OldAPIKey returns the old "api_key" field's value of the Bouncer entity.
4724// If the Bouncer object wasn't provided to the builder, the object is fetched from the database.

Callers 5

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

Calls

no outgoing calls

Tested by

no test coverage detected