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

Function withCASBackend

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

withCASBackend sets the old CASBackend of the mutation.

(node *CASBackend)

Source from the content-addressed store, hash-verified

1830
1831// withCASBackend sets the old CASBackend of the mutation.
1832func withCASBackend(node *CASBackend) casbackendOption {
1833 return func(m *CASBackendMutation) {
1834 m.oldValue = func(context.Context) (*CASBackend, error) {
1835 return node, nil
1836 }
1837 m.id = &node.ID
1838 }
1839}
1840
1841// Client returns a new `ent.Client` from the mutation. If the mutation was
1842// 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