6
"github.com/containers/podman/v5/pkg/api/handlers/compat"
7
"github.com/gorilla/mux"
10
func (s *APIServer) registerPingHandlers(r *mux.Router) error {
11
r.Handle("/_ping", s.APIHandler(compat.Ping)).Methods(http.MethodGet, http.MethodHead)
12
r.Handle(VersionedPath("/_ping"), s.APIHandler(compat.Ping)).Methods(http.MethodGet, http.MethodHead)
13
// swagger:operation GET /libpod/_ping libpod SystemPing
15
// summary: Ping service
17
// Return protocol information in response headers.
18
// `HEAD /libpod/_ping` is also supported.
19
// `/_ping` is available for compatibility with other engines.
20
// The '_ping' endpoints are not versioned.
28
// description: Success
36
// description: Max compatibility API Version the server supports
39
// description: Default version of docker image builder
40
// Docker-Experimental:
42
// description: If the server is running with experimental mode enabled, always true
45
// description: always no-cache
48
// description: always no-cache
49
// Libpod-API-Version:
52
// Max Podman API Version the server supports.
53
// Available if service is backed by Podman, therefore may be used to
54
// determine if talking to Podman engine or another engine
55
// Libpod-Buildah-Version:
58
// Default version of libpod image builder.
59
// Available if service is backed by Podman, therefore may be used to
60
// determine if talking to Podman engine or another engine
62
// $ref: "#/responses/internalError"
63
r.Handle("/libpod/_ping", s.APIHandler(compat.Ping)).Methods(http.MethodGet, http.MethodHead)
64
r.Handle(VersionedPath("/libpod/_ping"), s.APIHandler(compat.Ping)).Methods(http.MethodGet, http.MethodHead)