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

Function newAttestationMutation

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

newAttestationMutation creates new mutation for the Attestation entity.

(c config, op Op, opts ...attestationOption)

Source from the content-addressed store, hash-verified

1283
1284// newAttestationMutation creates new mutation for the Attestation entity.
1285func newAttestationMutation(c config, op Op, opts ...attestationOption) *AttestationMutation {
1286 m := &AttestationMutation{
1287 config: c,
1288 op: op,
1289 typ: TypeAttestation,
1290 clearedFields: make(map[string]struct{}),
1291 }
1292 for _, opt := range opts {
1293 opt(m)
1294 }
1295 return m
1296}
1297
1298// withAttestationID sets the ID field of the mutation.
1299func withAttestationID(id uuid.UUID) attestationOption {

Callers 5

CreateMethod · 0.85
UpdateMethod · 0.85
UpdateOneMethod · 0.85
UpdateOneIDMethod · 0.85
DeleteMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected