Coverage / crates/oxy-strata/src/gcp.rs 0.0%
0 of 57 lines run, 0 of 20 functions · run #418 on main · run missed
| 1 | //! Google Cloud Storage: `gs://BUCKET/PREFIX`. | |
| 2 | //! | |
| 3 | //! Credentials, in Google's own order: a service account key file named | |
| 4 | //! by `?credentials=PATH` or `GOOGLE_APPLICATION_CREDENTIALS` (which may | |
| 5 | //! also hold application default credentials), the key or path in | |
| 6 | //! `GOOGLE_SERVICE_ACCOUNT*`, then the application default credentials | |
| 7 | //! `gcloud auth application-default login` wrote, then the instance's | |
| 8 | //! service account. `?endpoint=URL` points at another endpoint. | |
| 9 | | |
| 10 | use crateStoreUrl; | |
| 11 | use ; | |
| 12 | use ; | |
| 13 | ||
| 14 | pub const HINT: &str = "run `gcloud auth application-default login`, or set GOOGLE_APPLICATION_CREDENTIALS (or add ?credentials=PATH to the remote URL) to a service account key file"; | |
| 15 | ||
| 16 | /// Whether a credentials file is a service account key, as opposed to | |
| 17 | /// application default credentials. | |
| 18 | 0× | |
| 19 | 0× | |
| 20 | 0× | |
| 21 | 0× | |
| 22 | 0× | |
| 23 | 0× | |
| 24 | 0× | |
| 25 | 0× | |
| 26 | 0× | |
| 27 | 0× | |
| 28 | 0× | |
| 29 | ||
| 30 | /// With `key` (a service account key's JSON) given, only it is used. | |
| 31 | 0× | |
| 32 | 0× | |
| 33 | 0× | |
| 34 | 0× | |
| 35 | 0× | |
| 36 | 0× | |
| 37 | 0× | |
| 38 | 0× | |
| 39 | 0× | |
| 40 | 0× | |
| 41 | 0× | |
| 42 | 0× | |
| 43 | 0× | |
| 44 | 0× | |
| 45 | 0× | |
| 46 | 0× | |
| 47 | 0× | |
| 48 | 0× | |
| 49 | 0× | |
| 50 | 0× | |
| 51 | 0× | |
| 52 | 0× | |
| 53 | 0× | |
| 54 | 0× | |
| 55 | 0× | |
| 56 | 0× | |
| 57 | 0× | |
| 58 | 0× | |
| 59 | 0× | |
| 60 | 0× | |
| 61 | | |
| 62 | 0× | |
| 63 | | |
| 64 | 0× | |
| 65 | 0× | |
| 66 | 0× | |
| 67 | 0× | |
| 68 | 0× | |
| 69 | 0× | |
| 70 | 0× | |