(ctx context.Context, id ksuid.KSUID)
| 248 | } |
| 249 | |
| 250 | func (c *Connection) RemovePool(ctx context.Context, id ksuid.KSUID) error { |
| 251 | req := c.NewRequest(ctx, http.MethodDelete, path.Join("/pool", id.String()), nil) |
| 252 | res, err := c.Do(req) |
| 253 | if err != nil { |
| 254 | if errIsStatus(err, http.StatusNotFound) { |
| 255 | return ErrPoolNotFound |
| 256 | } |
| 257 | return err |
| 258 | } |
| 259 | res.Body.Close() |
| 260 | return nil |
| 261 | } |
| 262 | |
| 263 | func (c *Connection) CreateBranch(ctx context.Context, poolID ksuid.KSUID, payload api.BranchPostRequest) (branches.Config, error) { |
| 264 | req := c.NewRequest(ctx, http.MethodPost, path.Join("/pool", poolID.String()), payload) |
nothing calls this directly
no test coverage detected