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

Function newUserMutation

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

newUserMutation creates new mutation for the User entity.

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

Source from the content-addressed store, hash-verified

14243
14244// newUserMutation creates new mutation for the User entity.
14245func newUserMutation(c config, op Op, opts ...userOption) *UserMutation {
14246 m := &UserMutation{
14247 config: c,
14248 op: op,
14249 typ: TypeUser,
14250 clearedFields: make(map[string]struct{}),
14251 }
14252 for _, opt := range opts {
14253 opt(m)
14254 }
14255 return m
14256}
14257
14258// withUserID sets the ID field of the mutation.
14259func withUserID(id uuid.UUID) userOption {

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