@ever-works/minio-plugin 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,24 @@
1
+ import { AwsS3StoragePlugin, S3Config } from '@ever-works/aws-s3-plugin';
2
+ import { PluginCategory, JsonSchema, PluginContext, PluginManifest } from '@ever-works/plugin';
3
+
4
+ /**
5
+ * EW-637 — MinIO storage backend.
6
+ *
7
+ * Functionally identical to AWS S3 but pointed at a custom endpoint
8
+ * (typically a self-hosted MinIO cluster) with path-style URLs forced on
9
+ * (MinIO doesn't always support virtual-hosted-style with arbitrary
10
+ * bucket names). We reuse `AwsS3StoragePlugin` and only override the
11
+ * env-resolution + manifest metadata.
12
+ */
13
+ declare class MinioStoragePlugin extends AwsS3StoragePlugin {
14
+ readonly id = "minio";
15
+ readonly name = "MinIO";
16
+ readonly category: PluginCategory;
17
+ readonly providerName = "minio";
18
+ readonly settingsSchema: JsonSchema;
19
+ protected envOverrides(): Partial<S3Config>;
20
+ onLoad(context: PluginContext): Promise<void>;
21
+ getManifest(): PluginManifest;
22
+ }
23
+
24
+ export { MinioStoragePlugin, MinioStoragePlugin as default };
@@ -0,0 +1,24 @@
1
+ import { AwsS3StoragePlugin, S3Config } from '@ever-works/aws-s3-plugin';
2
+ import { PluginCategory, JsonSchema, PluginContext, PluginManifest } from '@ever-works/plugin';
3
+
4
+ /**
5
+ * EW-637 — MinIO storage backend.
6
+ *
7
+ * Functionally identical to AWS S3 but pointed at a custom endpoint
8
+ * (typically a self-hosted MinIO cluster) with path-style URLs forced on
9
+ * (MinIO doesn't always support virtual-hosted-style with arbitrary
10
+ * bucket names). We reuse `AwsS3StoragePlugin` and only override the
11
+ * env-resolution + manifest metadata.
12
+ */
13
+ declare class MinioStoragePlugin extends AwsS3StoragePlugin {
14
+ readonly id = "minio";
15
+ readonly name = "MinIO";
16
+ readonly category: PluginCategory;
17
+ readonly providerName = "minio";
18
+ readonly settingsSchema: JsonSchema;
19
+ protected envOverrides(): Partial<S3Config>;
20
+ onLoad(context: PluginContext): Promise<void>;
21
+ getManifest(): PluginManifest;
22
+ }
23
+
24
+ export { MinioStoragePlugin, MinioStoragePlugin as default };