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.
8 lines
163 B
Go
8 lines
163 B
Go
package docker
|
|
|
|
// ImageID is a Docker image identifier (ID or tag).
|
|
type ImageID string
|
|
|
|
// ContainerID is a Docker container identifier.
|
|
type ContainerID string
|