move registry struct definitions to dataservice/registry

Signed-off-by: Sven Dowideit <sven.dowideit@portainer.io>
This commit is contained in:
Sven Dowideit
2022-02-23 16:21:35 +10:00
parent 1598ec47ff
commit ea0b34de72
101 changed files with 610 additions and 539 deletions
+2 -1
View File
@@ -2,6 +2,7 @@ package webhooks
import (
"errors"
"github.com/portainer/portainer/api/dataservices/registry"
"net/http"
"github.com/portainer/portainer/api/http/security"
@@ -14,7 +15,7 @@ import (
)
type webhookUpdatePayload struct {
RegistryID portainer.RegistryID
RegistryID registry.RegistryID
}
func (payload *webhookUpdatePayload) Validate(r *http.Request) error {