mirror of
https://github.com/containrrr/watchtower.git
synced 2026-01-21 00:06:09 +01:00
Fix some Codacy warnings
This commit is contained in:
parent
41ce5a3b32
commit
ad12b483ff
5 changed files with 30 additions and 21 deletions
|
|
@ -16,10 +16,12 @@ type Handler struct {
|
|||
Client container.Client
|
||||
}
|
||||
|
||||
// CheckRequest defines the type for the request data of the Check endpoint
|
||||
type CheckRequest struct {
|
||||
ContainerId string
|
||||
}
|
||||
|
||||
// CheckResponse defines the type for the response data of the Check endpoint
|
||||
type CheckResponse struct {
|
||||
ContainerId string
|
||||
HasUpdate bool
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ type Handler struct {
|
|||
Client container.Client
|
||||
}
|
||||
|
||||
// ContainerListEntry defines the type of each container in the response
|
||||
type ContainerListEntry struct {
|
||||
ContainerId string
|
||||
ContainerName string
|
||||
|
|
@ -25,6 +26,8 @@ type ContainerListEntry struct {
|
|||
ImageVersion string
|
||||
ImageCreatedDate string
|
||||
}
|
||||
|
||||
// ListResponse defines the return type of the List endpoint
|
||||
type ListResponse struct {
|
||||
Containers []ContainerListEntry
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue