podman/libpod/define
Dan Čermák dd4f47dd98
Always show RemoteSocket.Exists in json
The `Exists` field of the `RemoteSocket` struct is marshaled to json with the
`omitempty` setting. This has the disadvantage that by default `podman info`
shows a `remotePath` entry (the remote path is set in
`pkg/domain/infra/abi/systems.go`: `(*ContainerEngine).Info`) but not that this
path does not exist:
```
❯ podman info --format json | jq .host.remoteSocket
{
  "path": "/run/user/1000/podman/podman.sock"
}
```

By removing the `omitempty`, we ensure that the existence is always shown:
```
❯ bin/podman info --format json | jq .host.remoteSocket
{
  "path": "/run/user/1000/podman/podman.sock",
  "exists": false
}
```

Signed-off-by: Dan Čermák <dcermak@suse.com>
2023-08-04 16:24:58 +02:00
..
annotations.go Support running nested SELinux container separation 2023-03-13 14:21:12 -04:00
autoupdate.go auto-update: validate container image 2022-09-26 17:07:05 +02:00
checkpoint_restore.go Added optional container checkpointing statistics 2021-11-15 11:50:24 +00:00
config.go libpod: use io.Writer vs io.WriteCloser for attach streams 2023-07-10 13:33:03 +02:00
container.go Support Deployment generation with kube generate 2023-03-31 13:34:38 -04:00
container_inspect.go Include lock number in pod/container/volume inspect 2023-06-05 12:28:50 -04:00
containerstate.go Fix language, typos and markdown layout 2023-07-24 11:18:25 +02:00
diff.go podman diff accept two images or containers 2021-07-02 17:11:56 +02:00
errors.go Change Inherit to use a pointer to a container 2023-06-07 14:09:07 -04:00
exec_codes.go Run codespell 2022-08-25 16:32:31 -04:00
exit_code_propagation.go kube play: exit-code propagation 2023-05-25 14:46:34 +02:00
fileinfo.go Fixes from make codespell 2021-04-21 13:16:33 -04:00
healthchecks.go Add support for startup healthchecks 2022-11-28 13:30:29 -05:00
info.go Always show RemoteSocket.Exists in json 2023-08-04 16:24:58 +02:00
mount.go libpod/define: Make TypeBind a platform-specific constant 2022-08-30 16:32:24 +01:00
mount_freebsd.go pkg/specgen: add support for 'podman run --init' on FreeBSD 2023-06-28 14:43:50 +01:00
mount_linux.go Use constants for mount types 2023-07-14 07:17:21 -04:00
mount_unsupported.go libpod/define: Make TypeBind a platform-specific constant 2022-08-30 16:32:24 +01:00
pod_inspect.go Include lock number in pod/container/volume inspect 2023-06-05 12:28:50 -04:00
podstate.go Add a Degraded state to pods 2020-10-21 13:31:40 -04:00
runtime.go Add support for containers.conf 2020-03-27 14:36:03 -04:00
sdnotify.go add "healthy" sdnotify policy 2023-07-25 11:17:44 +02:00
version.go Add 'Os' to be queried via 'version' output 2022-03-29 18:10:59 -04:00
volume_inspect.go Include lock number in pod/container/volume inspect 2023-06-05 12:28:50 -04:00