Skip to content

Commit

Permalink
feat(dondominio): allow any host values including wildcard
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Jan 28, 2024
1 parent 8839db9 commit 417a262
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions docs/dondominio.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
{
"provider": "dondominio",
"domain": "domain.com",
"host": "@",
"name": "something",
"username": "username",
"password": "password",
Expand All @@ -22,6 +23,7 @@
### Compulsory parameters

- `"domain"`
- `"host"` is the subdomain to update which can be `@`, `*` or a subdomain
- `"name"` is the name of the service/hosting
- `"username"`
- `"password"`
Expand Down
1 change: 0 additions & 1 deletion internal/provider/errors/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ var (
ErrEmailNotSet = errors.New("email is not set")
ErrEmailNotValid = errors.New("email address is not valid")
ErrGCPProjectNotSet = errors.New("GCP project is not set")
ErrHostOnlyAt = errors.New(`host can only be "@"`)
ErrHostOnlySubdomain = errors.New("host can only be a subdomain")
ErrHostWildcard = errors.New(`host cannot be a "*"`)
ErrIPv4KeyNotSet = errors.New("IPv4 key is not set")
Expand Down
2 changes: 0 additions & 2 deletions internal/provider/providers/dondominio/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ func (p *Provider) isValid() error {
return fmt.Errorf("%w", errors.ErrPasswordNotSet)
case p.name == "":
return fmt.Errorf("%w", errors.ErrNameNotSet)
case p.host != "@":
return fmt.Errorf("%w", errors.ErrHostOnlyAt)
}
return nil
}
Expand Down

0 comments on commit 417a262

Please sign in to comment.