mirror of
https://github.com/qdm12/ddns-updater.git
synced 2026-07-28 00:22:37 -04:00
[PR #361] [MERGED] feat(provider): add netcup #678
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/qdm12/ddns-updater/pull/361
Author: @Azorimor
Created: 9/7/2022
Status: ✅ Merged
Merged: 6/14/2023
Merged by: @qdm12
Base:
master← Head:provider-netcup📝 Commits (10+)
ac08f73Started working on netcup provider2a5cf9aFully functional netcup provider7888fb7Some cleanup64f80ecupdate naming convention to use Provider27efb62Apply linting6fbf5edupdate netcup docse5ea43eremoved unused logout (auto logout after 15 minutes)b2e0378removed resolved TODO2c07affApply PR feedback80f1d63Fix login📊 Changes
12 files changed (+431 additions, -0 deletions)
View changed files
📝
README.md(+2 -0)➕
docs/netcup.md(+32 -0)📝
internal/settings/constants/providers.go(+1 -0)📝
internal/settings/errors/intermediary.go(+1 -0)📝
internal/settings/errors/validation.go(+1 -0)➕
internal/settings/providers/netcup/info.go(+35 -0)➕
internal/settings/providers/netcup/json.go(+72 -0)➕
internal/settings/providers/netcup/login.go(+49 -0)➕
internal/settings/providers/netcup/models.go(+14 -0)➕
internal/settings/providers/netcup/provider.go(+151 -0)➕
internal/settings/providers/netcup/update.go(+70 -0)📝
internal/settings/settings.go(+3 -0)📄 Description
This PR adds basic support to use Netcup as provider (#282). The implementation only updates the IP of the given host. Additional settings (TTL, Retry, Refresh, ...) can be set manually in the netcup customercontrolpanel / dashboard.
All requests to the netcup api are send to the same endpoint. The different functions are defined by the body of the request. For example the following requests (and more) are necessary. (see doc) The requests are implemented in netcup/client.go.
Login (Create Session on server, which is valid for 15 minutes (logout not implemented, because 15 min as default seems ok))
body:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.