Construct S3 client wrapper.
(config: &AwsConfig)
| 17 | impl Client { |
| 18 | /// Construct S3 client wrapper. |
| 19 | pub fn new(config: &AwsConfig) -> Client { |
| 20 | Client { |
| 21 | s3: S3Client::new(config), |
| 22 | bucket_name: env::var("AWS_S3_BUCKET_NAME").unwrap(), |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | pub fn url(&self, key: &str) -> String { |
| 27 | format!( |
nothing calls this directly
no outgoing calls
no test coverage detected