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

Function withMembership

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

withMembership sets the old Membership of the mutation.

(node *Membership)

Source from the content-addressed store, hash-verified

7076
7077// withMembership sets the old Membership of the mutation.
7078func withMembership(node *Membership) membershipOption {
7079 return func(m *MembershipMutation) {
7080 m.oldValue = func(context.Context) (*Membership, error) {
7081 return node, nil
7082 }
7083 m.id = &node.ID
7084 }
7085}
7086
7087// Client returns a new `ent.Client` from the mutation. If the mutation was
7088// 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