Fix some Codacy warnings

This commit is contained in:
Anders Roos 2022-11-11 12:10:36 +01:00
parent 41ce5a3b32
commit ad12b483ff
5 changed files with 30 additions and 21 deletions

View file

@ -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

View file

@ -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
}