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

Function newMembershipMutation

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

newMembershipMutation creates new mutation for the Membership entity.

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

Source from the content-addressed store, hash-verified

7040
7041// newMembershipMutation creates new mutation for the Membership entity.
7042func newMembershipMutation(c config, op Op, opts ...membershipOption) *MembershipMutation {
7043 m := &MembershipMutation{
7044 config: c,
7045 op: op,
7046 typ: TypeMembership,
7047 clearedFields: make(map[string]struct{}),
7048 }
7049 for _, opt := range opts {
7050 opt(m)
7051 }
7052 return m
7053}
7054
7055// withMembershipID sets the ID field of the mutation.
7056func withMembershipID(id uuid.UUID) membershipOption {

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