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

Function newIntegrationMutation

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

newIntegrationMutation creates new mutation for the Integration entity.

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

Source from the content-addressed store, hash-verified

5519
5520// newIntegrationMutation creates new mutation for the Integration entity.
5521func newIntegrationMutation(c config, op Op, opts ...integrationOption) *IntegrationMutation {
5522 m := &IntegrationMutation{
5523 config: c,
5524 op: op,
5525 typ: TypeIntegration,
5526 clearedFields: make(map[string]struct{}),
5527 }
5528 for _, opt := range opts {
5529 opt(m)
5530 }
5531 return m
5532}
5533
5534// withIntegrationID sets the ID field of the mutation.
5535func withIntegrationID(id uuid.UUID) integrationOption {

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