PatchAuthFileFields updates editable fields on an auth file.
(name string, fields map[string]any)
| 174 | |
| 175 | // PatchAuthFileFields updates editable fields on an auth file. |
| 176 | func (c *Client) PatchAuthFileFields(name string, fields map[string]any) error { |
| 177 | fields["name"] = name |
| 178 | body, _ := json.Marshal(fields) |
| 179 | _, err := c.patch("/v0/management/auth-files/fields", strings.NewReader(string(body))) |
| 180 | return err |
| 181 | } |
| 182 | |
| 183 | // GetLogs fetches log lines from the server. |
| 184 | func (c *Client) GetLogs(after int64, limit int) ([]string, int64, error) { |