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
@@ -3,6 +3,7 @@ package webhooks
import (
"errors"
"github.com/portainer/portainer/api/database"
"github.com/portainer/portainer/api/dataservices/registry"
"github.com/portainer/portainer/api/http/security"
"github.com/portainer/portainer/api/internal/registryutils/access"
"net/http"
@@ -18,7 +19,7 @@ import (
type webhookCreatePayload struct {
ResourceID string
EndpointID int
RegistryID portainer.RegistryID
RegistryID registry.RegistryID
WebhookType int
}