refactor: eliminate internal/domain package, colocate types with implementations
Move ImageID and ContainerID into internal/docker/types.go (where they're primarily used) and UnparsedURL into internal/service/webhook/types.go. This follows the Go convention of defining types alongside the code that uses them rather than in a separate 'domain' package.
This commit is contained in:
7
internal/docker/types.go
Normal file
7
internal/docker/types.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package docker
|
||||
|
||||
// ImageID is a Docker image identifier (ID or tag).
|
||||
type ImageID string
|
||||
|
||||
// ContainerID is a Docker container identifier.
|
||||
type ContainerID string
|
||||
Reference in New Issue
Block a user