newCASBackendMutation creates new mutation for the CASBackend entity.
(c config, op Op, opts ...casbackendOption)
| 1794 | |
| 1795 | // newCASBackendMutation creates new mutation for the CASBackend entity. |
| 1796 | func 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. |
| 1810 | func withCASBackendID(id uuid.UUID) casbackendOption { |
no outgoing calls
no test coverage detected