summaryrefslogtreecommitdiff
path: root/internal/configuration/types.go
diff options
context:
space:
mode:
authorJames Elliott <james-d-elliott@users.noreply.github.com>2021-11-23 20:45:38 +1100
committerGitHub <noreply@github.com>2021-11-23 20:45:38 +1100
commit3695aa8140eb91fd54a4cd849e1340ad4c36d987 (patch)
treee2cbb84db06b8058dc89ba9c616f016a223e6e67 /internal/configuration/types.go
parent884dc99083ba280d1a93103c4e16d4446ff7fdcc (diff)
feat(storage): primary key for all tables and general qol refactoring (#2431)
This is a massive overhaul to the SQL Storage for Authelia. It facilitates a whole heap of utility commands to help manage the database, primary keys, ensures all database requests use a context for cancellations, and paves the way for a few other PR's which improve the database. Fixes #1337
Diffstat (limited to 'internal/configuration/types.go')
-rw-r--r--internal/configuration/types.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/configuration/types.go b/internal/configuration/types.go
index c2d029c5e..fe5787be5 100644
--- a/internal/configuration/types.go
+++ b/internal/configuration/types.go
@@ -2,6 +2,7 @@ package configuration
import (
"github.com/knadh/koanf"
+ "github.com/spf13/pflag"
"github.com/authelia/authelia/v4/internal/configuration/schema"
)
@@ -32,3 +33,10 @@ type SecretsSource struct {
prefix string
delimiter string
}
+
+// CommandLineSource loads configuration from the command line flags.
+type CommandLineSource struct {
+ koanf *koanf.Koanf
+ flags *pflag.FlagSet
+ callback func(flag *pflag.Flag) (string, interface{})
+}