[management] Refactor nameserver groups to use store methods (#2888)

This commit is contained in:
Bethuel Mmbaga
2024-11-26 19:39:04 +03:00
committed by GitHub
parent 0e48a772ff
commit 9683da54b0
6 changed files with 319 additions and 82 deletions

View File

@ -149,3 +149,8 @@ func NewPostureChecksNotFoundError(postureChecksID string) error {
func NewPolicyNotFoundError(policyID string) error {
return Errorf(NotFound, "policy: %s not found", policyID)
}
// NewNameServerGroupNotFoundError creates a new Error with NotFound type for a missing name server group
func NewNameServerGroupNotFoundError(nsGroupID string) error {
return Errorf(NotFound, "nameserver group: %s not found", nsGroupID)
}