chore(updater): move updater packages to pkg/updaters/<name>

This commit is contained in:
Quentin McGaw
2026-04-23 03:47:57 +00:00
parent 5b01324d5f
commit 13503b0ae0
268 changed files with 1602 additions and 1026 deletions
@@ -7,15 +7,16 @@ import (
"github.com/qdm12/gluetun/internal/constants/providers"
"github.com/qdm12/gluetun/internal/provider/common"
"github.com/qdm12/gluetun/internal/provider/privateinternetaccess/updater"
"github.com/qdm12/gluetun/internal/provider/utils"
updaters "github.com/qdm12/gluetun/pkg/updaters/common"
"github.com/qdm12/gluetun/pkg/updaters/providers/privateinternetaccess"
)
type Provider struct {
storage common.Storage
connPicker *utils.ConnectionPicker
timeNow func() time.Time
common.Fetcher
updaters.Fetcher
// Port forwarding
portForwardPath string
apiIP netip.Addr
@@ -30,7 +31,7 @@ func New(storage common.Storage, timeNow func() time.Time,
timeNow: timeNow,
connPicker: utils.NewConnectionPicker(),
portForwardPath: jsonPortForwardPath,
Fetcher: updater.New(client),
Fetcher: privateinternetaccess.New(client),
}
}