refactored

This commit is contained in:
2025-03-18 23:27:27 +02:00
parent 64f59ea232
commit 6c1f34c682
45 changed files with 398 additions and 413 deletions

View File

@@ -43,11 +43,6 @@ type AuthenticationConfig struct {
UserPass UserPassAuthConfig `yaml:"user_pass"`
}
type UsersDatabaseConfig struct {
Type DatabaseType `yaml:"type"`
Mongo *MongoDBConfig `yaml:"mongo"`
}
type FileBrowserConfig struct {
Image Image `yaml:"image"`
Command string `yaml:"command"`
@@ -62,8 +57,8 @@ type DockerInstanceManagerConfig struct {
}
type InstanceManagerConfig struct {
Type InstanceManagerType `yaml:"type"`
Docker DockerInstanceManagerConfig `yaml:"docker"`
Type InstanceManagerType `yaml:"type"`
Docker *DockerInstanceManagerConfig `yaml:"docker"`
}
type ServersDatabaseConfig struct {
@@ -86,11 +81,10 @@ type GlobalConfig struct {
Domain string `yaml:"domain"`
Signing SigningConfig `yaml:"signing"`
Authentication AuthenticationConfig `yaml:"authentication"`
InstanceManager InstanceManagerConfig `yaml:"instance_manager"`
InstanceManager InstanceManagerConfig `yaml:"instancemanager"`
Users UsersConfig `yaml:"users"`
// Database Configs
ServersDatabase ServersDatabaseConfig `yaml:"servers_database"`
UsersDatabase UsersDatabaseConfig `yaml:"users_database"`
ServersAuthorizationDatabase ServersAuthorizationDatabaseConfig `yaml:"servers_authorization_database"`
}

View File

@@ -1,3 +1,3 @@
module git.acooldomain.co/server-manager/backend-kubernetes-go/models
module git.acooldomain.co/server-manager/backend/models
go 1.22.0