fix: remove duplicate type declarations from client.go and webhook.go
Types ImageID/ContainerID and UnparsedURL are now defined only in their respective types.go files, fixing the redeclaration compilation error.
This commit is contained in:
@@ -42,12 +42,6 @@ const stopTimeoutSeconds = 10
|
|||||||
// alpine/git v2.47.2 - pulled 2025-12-30
|
// alpine/git v2.47.2 - pulled 2025-12-30
|
||||||
const gitImage = "alpine/git@sha256:d86f367afb53d022acc4377741e7334bc20add161bb10234272b91b459b4b7d8"
|
const gitImage = "alpine/git@sha256:d86f367afb53d022acc4377741e7334bc20add161bb10234272b91b459b4b7d8"
|
||||||
|
|
||||||
// ImageID is a Docker image identifier (ID or tag).
|
|
||||||
type ImageID string
|
|
||||||
|
|
||||||
// ContainerID is a Docker container identifier.
|
|
||||||
type ContainerID string
|
|
||||||
|
|
||||||
// ErrNotConnected is returned when Docker client is not connected.
|
// ErrNotConnected is returned when Docker client is not connected.
|
||||||
var ErrNotConnected = errors.New("docker client not connected")
|
var ErrNotConnected = errors.New("docker client not connected")
|
||||||
|
|
||||||
|
|||||||
@@ -16,12 +16,6 @@ import (
|
|||||||
"git.eeqj.de/sneak/upaas/internal/service/deploy"
|
"git.eeqj.de/sneak/upaas/internal/service/deploy"
|
||||||
)
|
)
|
||||||
|
|
||||||
// UnparsedURL is a URL stored as a plain string without parsing.
|
|
||||||
// Use this instead of string when the value is known to be a URL
|
|
||||||
// but should not be parsed into a net/url.URL (e.g. webhook URLs,
|
|
||||||
// compare URLs from external payloads).
|
|
||||||
type UnparsedURL string
|
|
||||||
|
|
||||||
// ServiceParams contains dependencies for Service.
|
// ServiceParams contains dependencies for Service.
|
||||||
type ServiceParams struct {
|
type ServiceParams struct {
|
||||||
fx.In
|
fx.In
|
||||||
|
|||||||
Reference in New Issue
Block a user