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

Function newCASBackendMutation

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

newCASBackendMutation creates new mutation for the CASBackend entity.

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

Source from the content-addressed store, hash-verified

1794
1795// newCASBackendMutation creates new mutation for the CASBackend entity.
1796func newCASBackendMutation(c config, op Op, opts ...casbackendOption) *CASBackendMutation {
1797 m := &CASBackendMutation{
1798 config: c,
1799 op: op,
1800 typ: TypeCASBackend,
1801 clearedFields: make(map[string]struct{}),
1802 }
1803 for _, opt := range opts {
1804 opt(m)
1805 }
1806 return m
1807}
1808
1809// withCASBackendID sets the ID field of the mutation.
1810func withCASBackendID(id uuid.UUID) casbackendOption {

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