admin: Add purge interface
This commit adds a new option to the admin interface to purge an instance. This requires the user to manually confirm the name of the instance.
This commit is contained in:
parent
3321b5d0ba
commit
2384ee0841
16 changed files with 175 additions and 84 deletions
|
|
@ -23,6 +23,7 @@ import (
|
|||
"github.com/FAU-CDI/wisski-distillery/internal/dis/component/exporter/logger"
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/dis/component/instances"
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/dis/component/instances/malt"
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/dis/component/instances/purger"
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/dis/component/meta"
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/dis/component/resolver"
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/dis/component/solr"
|
||||
|
|
@ -119,6 +120,10 @@ func (dis *Distillery) Custom() *custom.Custom {
|
|||
return export[*custom.Custom](dis)
|
||||
}
|
||||
|
||||
func (dis *Distillery) Purger() *purger.Purger {
|
||||
return export[*purger.Purger](dis)
|
||||
}
|
||||
|
||||
//
|
||||
// All components
|
||||
// THESE SHOULD NEVER BE CALLED DIRECTLY
|
||||
|
|
@ -156,6 +161,9 @@ func (dis *Distillery) allComponents() []initFunc {
|
|||
auto[*meta.Meta],
|
||||
auto[*malt.Malt],
|
||||
|
||||
// Purger
|
||||
auto[*purger.Purger],
|
||||
|
||||
// Snapshots
|
||||
auto[*exporter.Exporter],
|
||||
auto[*logger.Logger],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue