(apiName string, apiID string)
| 24 | ) |
| 25 | |
| 26 | func DownloadAPISpec(apiName string, apiID string) (*spec.API, error) { |
| 27 | bucketKey := spec.Key(apiName, apiID, config.ClusterConfig.ClusterUID) |
| 28 | var api spec.API |
| 29 | if err := config.AWS.ReadJSONFromS3(&api, config.ClusterConfig.Bucket, bucketKey); err != nil { |
| 30 | return nil, err |
| 31 | } |
| 32 | return &api, nil |
| 33 | } |
| 34 | |
| 35 | func DownloadAPISpecs(apiNames []string, apiIDs []string) ([]spec.API, error) { |
| 36 | apis := make([]spec.API, len(apiNames)) |
no test coverage detected