File tree Expand file tree Collapse file tree 6 files changed +27
-24
lines changed Expand file tree Collapse file tree 6 files changed +27
-24
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
- name = " spin-blobstore-aws- s3"
2
+ name = " spin-blobstore-s3"
3
3
version.workspace = true
4
4
authors.workspace = true
5
5
edition.workspace = true
Original file line number Diff line number Diff line change @@ -4,20 +4,23 @@ use serde::Deserialize;
4
4
use spin_factor_blobstore:: runtime_config:: spin:: MakeBlobStore ;
5
5
use store:: BlobStoreS3 ;
6
6
7
- /// A key-value store that uses Azure Cosmos as the backend.
7
+ /// A blob store that uses a S3-compatible service as the backend.
8
+ /// This currently supports only AWS S3
8
9
#[ derive( Default ) ]
9
10
pub struct S3BlobStore {
10
11
_priv : ( ) ,
11
12
}
12
13
13
14
impl S3BlobStore {
14
- /// Creates a new `AzureBlobStore `.
15
+ /// Creates a new `S3BlobStore `.
15
16
pub fn new ( ) -> Self {
16
17
Self :: default ( )
17
18
}
18
19
}
19
20
20
- /// Runtime configuration for the Azure Cosmos key-value store.
21
+ // TODO: allow URL configuration for compatible non-AWS services
22
+
23
+ /// Runtime configuration for the S3 blob store.
21
24
#[ derive( Deserialize ) ]
22
25
pub struct S3BlobStoreRuntimeConfig {
23
26
/// The access key for the AWS S3 account role.
@@ -31,7 +34,7 @@ pub struct S3BlobStoreRuntimeConfig {
31
34
}
32
35
33
36
impl MakeBlobStore for S3BlobStore {
34
- const RUNTIME_CONFIG_TYPE : & ' static str = "aws_s3 " ;
37
+ const RUNTIME_CONFIG_TYPE : & ' static str = "s3 " ;
35
38
36
39
type RuntimeConfig = S3BlobStoreRuntimeConfig ;
37
40
File renamed without changes.
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ rust-version.workspace = true
10
10
11
11
[dependencies ]
12
12
anyhow = { workspace = true }
13
- spin-blobstore-aws- s3 = { path = " ../blobstore-aws -s3" }
13
+ spin-blobstore-s3 = { path = " ../blobstore-s3" }
14
14
spin-blobstore-azure = { path = " ../blobstore-azure" }
15
15
spin-blobstore-memory = { path = " ../blobstore-memory" }
16
16
spin-common = { path = " ../common" }
Original file line number Diff line number Diff line change @@ -470,7 +470,7 @@ pub fn blobstore_config_resolver(
470
470
. register_store_type ( spin_blobstore_azure:: AzureBlobStore :: new ( ) )
471
471
. unwrap ( ) ;
472
472
cr
473
- . register_store_type ( spin_blobstore_aws_s3 :: S3BlobStore :: new ( ) )
473
+ . register_store_type ( spin_blobstore_s3 :: S3BlobStore :: new ( ) )
474
474
. unwrap ( ) ;
475
475
476
476
cr
You can’t perform that action at this time.
0 commit comments