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

Function newCASMappingMutation

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

newCASMappingMutation creates new mutation for the CASMapping entity.

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

Source from the content-addressed store, hash-verified

3172
3173// newCASMappingMutation creates new mutation for the CASMapping entity.
3174func newCASMappingMutation(c config, op Op, opts ...casmappingOption) *CASMappingMutation {
3175 m := &CASMappingMutation{
3176 config: c,
3177 op: op,
3178 typ: TypeCASMapping,
3179 clearedFields: make(map[string]struct{}),
3180 }
3181 for _, opt := range opts {
3182 opt(m)
3183 }
3184 return m
3185}
3186
3187// withCASMappingID sets the ID field of the mutation.
3188func withCASMappingID(id uuid.UUID) casmappingOption {

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