| 2917 | } |
| 2918 | |
| 2919 | func (c *unixSocketClient) RepairSession( |
| 2920 | ctx context.Context, |
| 2921 | id string, |
| 2922 | query SessionRepairQuery, |
| 2923 | ) (SessionRepairRecord, error) { |
| 2924 | var response struct { |
| 2925 | Repair SessionRepairRecord `json:"repair"` |
| 2926 | } |
| 2927 | path, err := c.sessionScopedPath(ctx, id, "/repair") |
| 2928 | if err != nil { |
| 2929 | return SessionRepairRecord{}, err |
| 2930 | } |
| 2931 | if err := c.doJSON( |
| 2932 | ctx, |
| 2933 | http.MethodPost, |
| 2934 | path, |
| 2935 | sessionRepairValues(query), |
| 2936 | nil, |
| 2937 | &response, |
| 2938 | ); err != nil { |
| 2939 | return SessionRepairRecord{}, err |
| 2940 | } |
| 2941 | return response.Repair, nil |
| 2942 | } |
| 2943 | |
| 2944 | func (c *unixSocketClient) ApproveSession( |
| 2945 | ctx context.Context, |