feat: add cluster & bucket management

This commit is contained in:
2024-08-16 01:23:55 +07:00
parent b0e5d53ee0
commit dfb4e30e23
41 changed files with 1394 additions and 67 deletions
+32
View File
@@ -0,0 +1,32 @@
export type Config = {
metadata_dir: string;
data_dir: string;
db_engine: string;
metadata_auto_snapshot_interval: string;
replication_factor: number;
compression_level: number;
rpc_bind_addr: string;
rpc_public_addr: string;
rpc_secret: string;
s3_api?: S3API;
s3_web?: S3Web;
admin?: Admin;
};
export type Admin = {
api_bind_addr: string;
admin_token: string;
metrics_token: string;
};
export type S3API = {
s3_region: string;
api_bind_addr: string;
root_domain: string;
};
export type S3Web = {
bind_addr: string;
root_domain: string;
index: string;
};