UpdateNodeConfig updates the replaces the node's config with the specified config.
(ctx context.Context, id int64, config map[string]string)
| 666 | |
| 667 | // UpdateNodeConfig updates the replaces the node's config with the specified config. |
| 668 | func (c *ClusterTx) UpdateNodeConfig(ctx context.Context, id int64, config map[string]string) error { |
| 669 | err := cluster.UpdateConfig(ctx, c.Tx(), "nodes", "node", int(id), config) |
| 670 | if err != nil { |
| 671 | return fmt.Errorf("Unable to update node config: %w", err) |
| 672 | } |
| 673 | |
| 674 | return nil |
| 675 | } |
| 676 | |
| 677 | // UpdateNodeRoles changes the list of roles on a member. |
| 678 | func (c *ClusterTx) UpdateNodeRoles(id int64, roles []ClusterRole) error { |
no test coverage detected