mirror of
https://github.com/containers/podman.git
synced 2025-10-17 19:24:04 +08:00
Show Anon, GID, UID in v2 volumes
Anon, GID, UID parameters previously hidden if empty in podman volume for API v2. Signed-off-by: Ashley Cui <acui@redhat.com>
This commit is contained in:
@ -47,13 +47,13 @@ type VolumeConfigResponse struct {
|
||||
// It is presently not used.
|
||||
Options map[string]string `json:"Options"`
|
||||
// UID is the UID that the volume was created with.
|
||||
UID int `json:"UID,omitempty"`
|
||||
UID int `json:"UID"`
|
||||
// GID is the GID that the volume was created with.
|
||||
GID int `json:"GID,omitempty"`
|
||||
GID int `json:"GID"`
|
||||
// Anonymous indicates that the volume was created as an anonymous
|
||||
// volume for a specific container, and will be be removed when any
|
||||
// container using it is removed.
|
||||
Anonymous bool `json:"Anonymous,omitempty"`
|
||||
Anonymous bool `json:"Anonymous"`
|
||||
}
|
||||
|
||||
type VolumeRmOptions struct {
|
||||
|
Reference in New Issue
Block a user