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

Function newGroupMutation

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

newGroupMutation creates new mutation for the Group entity.

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

Source from the content-addressed store, hash-verified

3923
3924// newGroupMutation creates new mutation for the Group entity.
3925func newGroupMutation(c config, op Op, opts ...groupOption) *GroupMutation {
3926 m := &GroupMutation{
3927 config: c,
3928 op: op,
3929 typ: TypeGroup,
3930 clearedFields: make(map[string]struct{}),
3931 }
3932 for _, opt := range opts {
3933 opt(m)
3934 }
3935 return m
3936}
3937
3938// withGroupID sets the ID field of the mutation.
3939func withGroupID(id uuid.UUID) groupOption {

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