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

Method Indexes

app/controlplane/pkg/data/ent/schema/referrer.go:59–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57}
58
59func (Referrer) Indexes() []ent.Index {
60 return []ent.Index{
61 // Two referrers of different kinds can have the same digest
62 // For now we only guarantee that the digest is unique in the scope of the referrer kind
63 index.Fields("digest", "kind").Unique(),
64 }
65}

Callers

nothing calls this directly

Calls 2

UniqueMethod · 0.45
FieldsMethod · 0.45

Tested by

no test coverage detected