mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00
varlink: Remove the Ping() method
There are other ways for developers to "ensure their varlink setup is working", for example by calling `GetVersion()` or any call on the org.varlink.service interface. Signed-off-by: Lars Karlitski <lars@karlitski.net>
This commit is contained in:
@ -13,9 +13,6 @@ type Version (
|
|||||||
remote_api_version: int
|
remote_api_version: int
|
||||||
)
|
)
|
||||||
|
|
||||||
type StringResponse (
|
|
||||||
message: string
|
|
||||||
)
|
|
||||||
# ContainerChanges describes the return struct for ListContainerChanges
|
# ContainerChanges describes the return struct for ListContainerChanges
|
||||||
type ContainerChanges (
|
type ContainerChanges (
|
||||||
changed: []string,
|
changed: []string,
|
||||||
@ -402,18 +399,6 @@ type Runlabel(
|
|||||||
opts: [string]string
|
opts: [string]string
|
||||||
)
|
)
|
||||||
|
|
||||||
# Ping provides a response for developers to ensure their varlink setup is working.
|
|
||||||
# #### Example
|
|
||||||
# ~~~
|
|
||||||
# $ varlink call -m unix:/run/podman/io.podman/io.podman.Ping
|
|
||||||
# {
|
|
||||||
# "ping": {
|
|
||||||
# "message": "OK"
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# ~~~
|
|
||||||
method Ping() -> (ping: StringResponse)
|
|
||||||
|
|
||||||
# GetVersion returns a Version structure describing the libpod setup on their
|
# GetVersion returns a Version structure describing the libpod setup on their
|
||||||
# system.
|
# system.
|
||||||
method GetVersion() -> (version: Version)
|
method GetVersion() -> (version: Version)
|
||||||
|
@ -25,14 +25,6 @@ func (i *LibpodAPI) GetVersion(call iopodman.VarlinkCall) error {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ping returns a simple string "OK" response for clients to make sure
|
|
||||||
// the service is working.
|
|
||||||
func (i *LibpodAPI) Ping(call iopodman.VarlinkCall) error {
|
|
||||||
return call.ReplyPing(iopodman.StringResponse{
|
|
||||||
Message: "OK",
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetInfo returns details about the podman host and its stores
|
// GetInfo returns details about the podman host and its stores
|
||||||
func (i *LibpodAPI) GetInfo(call iopodman.VarlinkCall) error {
|
func (i *LibpodAPI) GetInfo(call iopodman.VarlinkCall) error {
|
||||||
versionInfo, err := libpod.GetVersion()
|
versionInfo, err := libpod.GetVersion()
|
||||||
|
Reference in New Issue
Block a user