-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16011 from vrothberg/lint
bump golangci-lint to v1.49.0
- Loading branch information
Showing
49 changed files
with
400 additions
and
262 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
// 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. | ||
// | ||
// - 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. | ||
// | ||
// 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
// | ||
// To start the service and keep it running for 5,000 seconds (-t 0 runs forever): | ||
// | ||
// podman system service -t 5000 & | ||
// podman system service -t 5000 & | ||
// | ||
// You can then use cURL on the socket using requests documented below. | ||
// | ||
|
@@ -23,44 +23,44 @@ | |
// | ||
// See podman-service(1) for more information. | ||
// | ||
// Quick Examples: | ||
// Quick Examples: | ||
// | ||
// 'podman info' | ||
// 'podman info' | ||
// | ||
// curl --unix-socket /run/podman/podman.sock http://d/v4.0.0/libpod/info | ||
// curl --unix-socket /run/podman/podman.sock http://d/v4.0.0/libpod/info | ||
// | ||
// 'podman pull quay.io/containers/podman' | ||
// 'podman pull quay.io/containers/podman' | ||
// | ||
// curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v4.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' | ||
// curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v4.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' | ||
// | ||
// 'podman list images' | ||
// 'podman list images' | ||
// | ||
// curl --unix-socket /run/podman/podman.sock -v 'http://d/v4.0.0/libpod/images/json' | jq | ||
// curl --unix-socket /run/podman/podman.sock -v 'http://d/v4.0.0/libpod/images/json' | jq | ||
// | ||
// Terms Of Service: | ||
// | ||
// https://github.com/containers/podman/blob/913caaa9b1de2b63692c9bae15120208194c9eb3/LICENSE | ||
// | ||
// Schemes: http, https | ||
// Host: podman.io | ||
// BasePath: / | ||
// Version: 4.0.0 | ||
// License: Apache-2.0 https://opensource.org/licenses/Apache-2.0 | ||
// Contact: Podman <[email protected]> https://podman.io/community/ | ||
// | ||
// InfoExtensions: | ||
// x-logo: | ||
// - url: https://raw.githubusercontent.com/containers/libpod/main/logo/podman-logo.png | ||
// - altText: "Podman logo" | ||
// | ||
// Produces: | ||
// - application/json | ||
// - application/octet-stream | ||
// - text/plain | ||
// | ||
// Consumes: | ||
// - application/json | ||
// - application/x-tar | ||
// Schemes: http, https | ||
// Host: podman.io | ||
// BasePath: / | ||
// Version: 4.0.0 | ||
// License: Apache-2.0 https://opensource.org/licenses/Apache-2.0 | ||
// Contact: Podman <[email protected]> https://podman.io/community/ | ||
// | ||
// InfoExtensions: | ||
// x-logo: | ||
// - url: https://raw.githubusercontent.com/containers/libpod/main/logo/podman-logo.png | ||
// - altText: "Podman logo" | ||
// | ||
// Produces: | ||
// - application/json | ||
// - application/octet-stream | ||
// - text/plain | ||
// | ||
// Consumes: | ||
// - application/json | ||
// - application/x-tar | ||
// | ||
// swagger:meta | ||
package server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.