(apiName string, keepCache bool)
| 155 | } |
| 156 | |
| 157 | func DeleteAPI(apiName string, keepCache bool) error { |
| 158 | err := parallel.RunFirstErr( |
| 159 | func() error { |
| 160 | return deleteK8sResources(apiName) |
| 161 | }, |
| 162 | func() error { |
| 163 | if keepCache { |
| 164 | return nil |
| 165 | } |
| 166 | // best effort deletion, swallow errors because there could be weird error messages |
| 167 | _ = deleteBucketResources(apiName) |
| 168 | return nil |
| 169 | }, |
| 170 | ) |
| 171 | |
| 172 | if err != nil { |
| 173 | return err |
| 174 | } |
| 175 | |
| 176 | return nil |
| 177 | } |
| 178 | |
| 179 | func GetAllAPIs(deployments []kapps.Deployment) ([]schema.APIResponse, error) { |
| 180 | realtimeAPIs := make([]schema.APIResponse, len(deployments)) |
no test coverage detected