diff options
author | Jhon Honce <jhonce@redhat.com> | 2022-05-26 11:15:48 -0700 |
---|---|---|
committer | Jhon Honce <jhonce@redhat.com> | 2022-05-26 11:15:48 -0700 |
commit | d730f2b254077e3b7753d7e7a8cd9527c59be5da (patch) | |
tree | 76c9e1410d2aaf5df574a21dcd0fa93274ccb3af /libpod | |
parent | 2ce31caa1c24406c7d890d43493101b61b11eabe (diff) | |
download | podman-d730f2b254077e3b7753d7e7a8cd9527c59be5da.tar.gz podman-d730f2b254077e3b7753d7e7a8cd9527c59be5da.tar.bz2 podman-d730f2b254077e3b7753d7e7a8cd9527c59be5da.zip |
Add Authorixation field to Plugins for Info
The Authorization field lists the plugins for granting access to the
Docker daemon. This field will always be nil for Podman as there is no
daemon. The field is included for compatibility.
```release-note
NONE
```
[NO NEW TESTS NEEDED]
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'libpod')
-rw-r--r-- | libpod/define/info.go | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/libpod/define/info.go b/libpod/define/info.go index 911fa5c03..c716bec7b 100644 --- a/libpod/define/info.go +++ b/libpod/define/info.go @@ -14,7 +14,7 @@ type Info struct { Version Version `json:"version"` } -// HostInfo describes the libpod host +// SecurityInfo describes the libpod host type SecurityInfo struct { AppArmorEnabled bool `json:"apparmorEnabled"` DefaultCapabilities string `json:"capabilities"` @@ -64,8 +64,7 @@ type RemoteSocket struct { Exists bool `json:"exists,omitempty"` } -// SlirpInfo describes the slirp executable that -// is being being used. +// SlirpInfo describes the slirp executable that is being used type SlirpInfo struct { Executable string `json:"executable"` Package string `json:"package"` @@ -78,8 +77,7 @@ type IDMappings struct { UIDMap []idtools.IDMap `json:"uidmap"` } -// DistributionInfo describes the host distribution -// for libpod +// DistributionInfo describes the host distribution for libpod type DistributionInfo struct { Distribution string `json:"distribution"` Variant string `json:"variant,omitempty"` @@ -141,8 +139,8 @@ type Plugins struct { Volume []string `json:"volume"` Network []string `json:"network"` Log []string `json:"log"` - // FIXME what should we do with Authorization, docker seems to return nothing by default - // Authorization []string `json:"authorization"` + // Authorization is provided for compatibility, will always be nil as Podman has no daemon + Authorization []string `json:"authorization"` } type CPUUsage struct { |