(ctx context.Context, allowlistID string, name string, description string)
| 205 | } |
| 206 | |
| 207 | func (c *Client) UpdateAllowlistMeta(ctx context.Context, allowlistID string, name string, description string) error { |
| 208 | c.Log.Debugf("updating allowlist %s meta", name) |
| 209 | |
| 210 | err := c.Ent.AllowList.Update().Where(allowlist.AllowlistIDEQ(allowlistID)).SetName(name).SetDescription(description).Exec(ctx) |
| 211 | if err != nil { |
| 212 | return fmt.Errorf("unable to update allowlist: %w", err) |
| 213 | } |
| 214 | |
| 215 | return nil |
| 216 | } |
| 217 | |
| 218 | func (c *Client) ReplaceAllowlist(ctx context.Context, list *ent.AllowList, items []*models.AllowlistItem, fromConsole bool) (int, error) { |
| 219 | c.Log.Debugf("replacing values in allowlist %s", list.Name) |
no test coverage detected