mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-18 08:16:39 +00:00
[management] Add custom dns zones (#4849)
This commit is contained in:
@@ -252,3 +252,13 @@ func NewOperationNotFoundError(operation operations.Operation) error {
|
||||
func NewRouteNotFoundError(routeID string) error {
|
||||
return Errorf(NotFound, "route: %s not found", routeID)
|
||||
}
|
||||
|
||||
// NewZoneNotFoundError creates a new Error with NotFound type for a missing dns zone.
|
||||
func NewZoneNotFoundError(zoneID string) error {
|
||||
return Errorf(NotFound, "zone: %s not found", zoneID)
|
||||
}
|
||||
|
||||
// NewDNSRecordNotFoundError creates a new Error with NotFound type for a missing dns record.
|
||||
func NewDNSRecordNotFoundError(recordID string) error {
|
||||
return Errorf(NotFound, "dns record: %s not found", recordID)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user