mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00

The new golangci-lint version 1.60.1 has problems with typecheck when linting remote files. We have certain pakcages that should never be inlcuded in remote but the typecheck tries to compile all of them but this never works and it seems to ignore the exclude files we gave it. To fix this the proper way is to mark all packages we only use locally with !remote tags. This is a bit ugly but more correct. I also moved the DecodeChanges() code around as it is called from the client so the handles package which should only be remote doesn't really fit anyway. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
18 lines
957 B
Go
18 lines
957 B
Go
//go:build !remote
|
|
|
|
// Package swagger defines the payloads used by the Podman API
|
|
//
|
|
// - errors.go: declares the errors used in the API. By embedding errors.ErrorModel, more meaningful
|
|
// comments can be provided for the developer documentation.
|
|
// - models.go: declares the models used in API requests.
|
|
// - responses.go: declares the responses used in the API responses.
|
|
//
|
|
// Notes:
|
|
// 1. As a developer of the Podman API, you are responsible for maintaining the associations between
|
|
// these models and responses, and the handler code.
|
|
// 2. There are a number of warnings produces when compiling the swagger yaml file. This is expected.
|
|
// Most are because embedded structs have been discovered but not used in the API declarations.
|
|
// 3. Response and model references that are exported (start with upper-case letter) imply that they
|
|
// exist outside this package and should be found in the entities package.
|
|
package swagger
|