MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / Field

Method Field

app/controlplane/pkg/data/ent/mutation.go:4464–4482  ·  view source on GitHub ↗

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

(name string)

Source from the content-addressed store, hash-verified

4462// return value indicates that this field was not set, or was not defined in the
4463// schema.
4464func (m *GroupMutation) Field(name string) (ent.Value, bool) {
4465 switch name {
4466 case group.FieldName:
4467 return m.Name()
4468 case group.FieldDescription:
4469 return m.Description()
4470 case group.FieldOrganizationID:
4471 return m.OrganizationID()
4472 case group.FieldCreatedAt:
4473 return m.CreatedAt()
4474 case group.FieldUpdatedAt:
4475 return m.UpdatedAt()
4476 case group.FieldDeletedAt:
4477 return m.DeletedAt()
4478 case group.FieldMemberCount:
4479 return m.MemberCount()
4480 }
4481 return nil, false
4482}
4483
4484// OldField returns the old value of the field from the database. An error is
4485// returned if the mutation operation is not UpdateOne, or the query to the

Callers

nothing calls this directly

Calls 7

NameMethod · 0.95
DescriptionMethod · 0.95
OrganizationIDMethod · 0.95
CreatedAtMethod · 0.95
UpdatedAtMethod · 0.95
DeletedAtMethod · 0.95
MemberCountMethod · 0.95

Tested by

no test coverage detected