Implement initial login functionality
This commit is contained in:
parent
a3bd0db78c
commit
3aa79b0d23
36 changed files with 908 additions and 70 deletions
|
|
@ -7,6 +7,7 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/dis/component"
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/dis/component/auth"
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/dis/component/control"
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/dis/component/control/cron"
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/dis/component/control/home"
|
||||
|
|
@ -71,6 +72,9 @@ func (dis *Distillery) SQL() *sql.SQL {
|
|||
func (dis *Distillery) SSH() *ssh2.SSH2 {
|
||||
return export[*ssh2.SSH2](dis)
|
||||
}
|
||||
func (dis *Distillery) Auth() *auth.Auth {
|
||||
return export[*auth.Auth](dis)
|
||||
}
|
||||
|
||||
func (dis *Distillery) Cron() *cron.Cron {
|
||||
return export[*cron.Cron](dis)
|
||||
|
|
@ -121,6 +125,9 @@ func (dis *Distillery) allComponents() []initFunc {
|
|||
s.PollInterval = time.Second
|
||||
}),
|
||||
|
||||
// auth
|
||||
auto[*auth.Auth],
|
||||
|
||||
// instances
|
||||
auto[*instances.Instances],
|
||||
auto[*meta.Meta],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue