Move to github.com/tkw1536/pkglib package

This commit removes various modules that can be migrated to the
github.com/tkw1536/pkglib package without any code changes (beyond
module renamings).
This commit is contained in:
Tom Wiesing 2023-02-26 09:53:25 +01:00
parent 30c25b8e2a
commit c3ca8e2974
No known key found for this signature in database
65 changed files with 103 additions and 1254 deletions

View file

@ -8,7 +8,7 @@ import (
"reflect"
"time"
"github.com/FAU-CDI/wisski-distillery/pkg/pools"
"github.com/tkw1536/pkglib/pools"
"github.com/tkw1536/pkglib/yamlx"
"gopkg.in/yaml.v3"

View file

@ -4,7 +4,7 @@ import (
"fmt"
"strings"
"github.com/tkw1536/goprogram/lib/collection"
"github.com/tkw1536/pkglib/collection"
)
type HTTPConfig struct {

View file

@ -5,7 +5,7 @@ import (
"github.com/FAU-CDI/wisski-distillery/internal/config/validators"
"github.com/FAU-CDI/wisski-distillery/pkg/environment"
"github.com/FAU-CDI/wisski-distillery/pkg/validator"
"github.com/tkw1536/pkglib/validator"
"gopkg.in/yaml.v3"
)

View file

@ -6,8 +6,8 @@ import (
"github.com/FAU-CDI/wisski-distillery/internal/bootstrap"
"github.com/FAU-CDI/wisski-distillery/pkg/environment"
"github.com/FAU-CDI/wisski-distillery/pkg/hostname"
"github.com/FAU-CDI/wisski-distillery/pkg/password"
"github.com/tkw1536/pkglib/hostname"
)
// Template is a template for the configuration file
@ -31,7 +31,7 @@ func (tpl *Template) SetDefaults(env environment.Environment) (err error) {
}
if tpl.DefaultDomain == "" {
tpl.DefaultDomain = hostname.FQDN(env)
tpl.DefaultDomain = hostname.FQDN() // TODO: Make this environment specific
}
if tpl.SelfOverridesFile == "" {

View file

@ -2,7 +2,7 @@ package validators
import (
"github.com/FAU-CDI/wisski-distillery/pkg/environment"
"github.com/FAU-CDI/wisski-distillery/pkg/validator"
"github.com/tkw1536/pkglib/validator"
)
// New creates a new set of standard validators for the configuration