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

Function newProjectMutation

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

newProjectMutation creates new mutation for the Project entity.

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

Source from the content-addressed store, hash-verified

10895
10896// newProjectMutation creates new mutation for the Project entity.
10897func newProjectMutation(c config, op Op, opts ...projectOption) *ProjectMutation {
10898 m := &ProjectMutation{
10899 config: c,
10900 op: op,
10901 typ: TypeProject,
10902 clearedFields: make(map[string]struct{}),
10903 }
10904 for _, opt := range opts {
10905 opt(m)
10906 }
10907 return m
10908}
10909
10910// withProjectID sets the ID field of the mutation.
10911func withProjectID(id uuid.UUID) projectOption {

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