Configurability

This commit is contained in:
2023-02-15 20:34:05 +02:00
parent 84c7115c83
commit e3807b3ade
22 changed files with 236 additions and 26 deletions

3
dhall/Config/Type.dhall Normal file
View File

@ -0,0 +1,3 @@
{ s3 : ../S3/Type.dhall
, watcher : ../Watcher/Type.dhall
}

View File

@ -0,0 +1 @@
{=}

View File

@ -0,0 +1 @@
{ Type = ./Type.dhall, default = ./default.dhall }

4
dhall/S3/Type.dhall Normal file
View File

@ -0,0 +1,4 @@
{ region : Text
, endpoint : Text
, bucket : Text
}

1
dhall/S3/default.dhall Normal file
View File

@ -0,0 +1 @@
{=}

1
dhall/S3/package.dhall Normal file
View File

@ -0,0 +1 @@
{ Type = ./Type.dhall, default = ./default.dhall }

3
dhall/Watcher/Type.dhall Normal file
View File

@ -0,0 +1,3 @@
{ directories : List Text
, period : Natural
}

View File

@ -0,0 +1 @@
{ period = 300 }

View File

@ -0,0 +1 @@
{ Type = ./Type.dhall, default = ./default.dhall }

2
dhall/package.dhall Normal file
View File

@ -0,0 +1,2 @@
./Config/package.dhall
/\ { S3 = ./S3/package.dhall, Watcher = ./Watcher/package.dhall }