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

Function withGroup

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

withGroup sets the old Group of the mutation.

(node *Group)

Source from the content-addressed store, hash-verified

3959
3960// withGroup sets the old Group of the mutation.
3961func withGroup(node *Group) groupOption {
3962 return func(m *GroupMutation) {
3963 m.oldValue = func(context.Context) (*Group, error) {
3964 return node, nil
3965 }
3966 m.id = &node.ID
3967 }
3968}
3969
3970// Client returns a new `ent.Client` from the mutation. If the mutation was
3971// executed in a transaction (ent.Tx), a transactional client is returned.

Callers 1

UpdateOneMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected