types.go 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640
  1. package types // import "github.com/docker/docker/api/types"
  2. import (
  3. "io"
  4. "os"
  5. "time"
  6. "github.com/docker/docker/api/types/container"
  7. "github.com/docker/docker/api/types/filters"
  8. "github.com/docker/docker/api/types/image"
  9. "github.com/docker/docker/api/types/mount"
  10. "github.com/docker/docker/api/types/network"
  11. "github.com/docker/docker/api/types/swarm"
  12. "github.com/docker/docker/api/types/volume"
  13. "github.com/docker/go-connections/nat"
  14. )
  15. const (
  16. // MediaTypeRawStream is vendor specific MIME-Type set for raw TTY streams
  17. MediaTypeRawStream = "application/vnd.docker.raw-stream"
  18. // MediaTypeMultiplexedStream is vendor specific MIME-Type set for stdin/stdout/stderr multiplexed streams
  19. MediaTypeMultiplexedStream = "application/vnd.docker.multiplexed-stream"
  20. )
  21. // RootFS returns Image's RootFS description including the layer IDs.
  22. type RootFS struct {
  23. Type string `json:",omitempty"`
  24. Layers []string `json:",omitempty"`
  25. }
  26. // ImageInspect contains response of Engine API:
  27. // GET "/images/{name:.*}/json"
  28. type ImageInspect struct {
  29. // ID is the content-addressable ID of an image.
  30. //
  31. // This identifier is a content-addressable digest calculated from the
  32. // image's configuration (which includes the digests of layers used by
  33. // the image).
  34. //
  35. // Note that this digest differs from the `RepoDigests` below, which
  36. // holds digests of image manifests that reference the image.
  37. ID string `json:"Id"`
  38. // RepoTags is a list of image names/tags in the local image cache that
  39. // reference this image.
  40. //
  41. // Multiple image tags can refer to the same image, and this list may be
  42. // empty if no tags reference the image, in which case the image is
  43. // "untagged", in which case it can still be referenced by its ID.
  44. RepoTags []string
  45. // RepoDigests is a list of content-addressable digests of locally available
  46. // image manifests that the image is referenced from. Multiple manifests can
  47. // refer to the same image.
  48. //
  49. // These digests are usually only available if the image was either pulled
  50. // from a registry, or if the image was pushed to a registry, which is when
  51. // the manifest is generated and its digest calculated.
  52. RepoDigests []string
  53. // Parent is the ID of the parent image.
  54. //
  55. // Depending on how the image was created, this field may be empty and
  56. // is only set for images that were built/created locally. This field
  57. // is empty if the image was pulled from an image registry.
  58. Parent string
  59. // Comment is an optional message that can be set when committing or
  60. // importing the image.
  61. Comment string
  62. // Created is the date and time at which the image was created, formatted in
  63. // RFC 3339 nano-seconds (time.RFC3339Nano).
  64. //
  65. // This information is only available if present in the image,
  66. // and omitted otherwise.
  67. Created string `json:",omitempty"`
  68. // Container is the ID of the container that was used to create the image.
  69. //
  70. // Depending on how the image was created, this field may be empty.
  71. //
  72. // Deprecated: this field is omitted in API v1.45, but kept for backward compatibility.
  73. Container string `json:",omitempty"`
  74. // ContainerConfig is an optional field containing the configuration of the
  75. // container that was last committed when creating the image.
  76. //
  77. // Previous versions of Docker builder used this field to store build cache,
  78. // and it is not in active use anymore.
  79. //
  80. // Deprecated: this field is omitted in API v1.45, but kept for backward compatibility.
  81. ContainerConfig *container.Config `json:",omitempty"`
  82. // DockerVersion is the version of Docker that was used to build the image.
  83. //
  84. // Depending on how the image was created, this field may be empty.
  85. DockerVersion string
  86. // Author is the name of the author that was specified when committing the
  87. // image, or as specified through MAINTAINER (deprecated) in the Dockerfile.
  88. Author string
  89. Config *container.Config
  90. // Architecture is the hardware CPU architecture that the image runs on.
  91. Architecture string
  92. // Variant is the CPU architecture variant (presently ARM-only).
  93. Variant string `json:",omitempty"`
  94. // OS is the Operating System the image is built to run on.
  95. Os string
  96. // OsVersion is the version of the Operating System the image is built to
  97. // run on (especially for Windows).
  98. OsVersion string `json:",omitempty"`
  99. // Size is the total size of the image including all layers it is composed of.
  100. Size int64
  101. // VirtualSize is the total size of the image including all layers it is
  102. // composed of.
  103. //
  104. // Deprecated: this field is omitted in API v1.44, but kept for backward compatibility. Use Size instead.
  105. VirtualSize int64 `json:"VirtualSize,omitempty"`
  106. // GraphDriver holds information about the storage driver used to store the
  107. // container's and image's filesystem.
  108. GraphDriver GraphDriverData
  109. // RootFS contains information about the image's RootFS, including the
  110. // layer IDs.
  111. RootFS RootFS
  112. // Metadata of the image in the local cache.
  113. //
  114. // This information is local to the daemon, and not part of the image itself.
  115. Metadata image.Metadata
  116. }
  117. // Container contains response of Engine API:
  118. // GET "/containers/json"
  119. type Container struct {
  120. ID string `json:"Id"`
  121. Names []string
  122. Image string
  123. ImageID string
  124. Command string
  125. Created int64
  126. Ports []Port
  127. SizeRw int64 `json:",omitempty"`
  128. SizeRootFs int64 `json:",omitempty"`
  129. Labels map[string]string
  130. State string
  131. Status string
  132. HostConfig struct {
  133. NetworkMode string `json:",omitempty"`
  134. }
  135. NetworkSettings *SummaryNetworkSettings
  136. Mounts []MountPoint
  137. }
  138. // CopyConfig contains request body of Engine API:
  139. // POST "/containers/"+containerID+"/copy"
  140. type CopyConfig struct {
  141. Resource string
  142. }
  143. // ContainerPathStat is used to encode the header from
  144. // GET "/containers/{name:.*}/archive"
  145. // "Name" is the file or directory name.
  146. type ContainerPathStat struct {
  147. Name string `json:"name"`
  148. Size int64 `json:"size"`
  149. Mode os.FileMode `json:"mode"`
  150. Mtime time.Time `json:"mtime"`
  151. LinkTarget string `json:"linkTarget"`
  152. }
  153. // ContainerStats contains response of Engine API:
  154. // GET "/stats"
  155. type ContainerStats struct {
  156. Body io.ReadCloser `json:"body"`
  157. OSType string `json:"ostype"`
  158. }
  159. // Ping contains response of Engine API:
  160. // GET "/_ping"
  161. type Ping struct {
  162. APIVersion string
  163. OSType string
  164. Experimental bool
  165. BuilderVersion BuilderVersion
  166. // SwarmStatus provides information about the current swarm status of the
  167. // engine, obtained from the "Swarm" header in the API response.
  168. //
  169. // It can be a nil struct if the API version does not provide this header
  170. // in the ping response, or if an error occurred, in which case the client
  171. // should use other ways to get the current swarm status, such as the /swarm
  172. // endpoint.
  173. SwarmStatus *swarm.Status
  174. }
  175. // ComponentVersion describes the version information for a specific component.
  176. type ComponentVersion struct {
  177. Name string
  178. Version string
  179. Details map[string]string `json:",omitempty"`
  180. }
  181. // Version contains response of Engine API:
  182. // GET "/version"
  183. type Version struct {
  184. Platform struct{ Name string } `json:",omitempty"`
  185. Components []ComponentVersion `json:",omitempty"`
  186. // The following fields are deprecated, they relate to the Engine component and are kept for backwards compatibility
  187. Version string
  188. APIVersion string `json:"ApiVersion"`
  189. MinAPIVersion string `json:"MinAPIVersion,omitempty"`
  190. GitCommit string
  191. GoVersion string
  192. Os string
  193. Arch string
  194. KernelVersion string `json:",omitempty"`
  195. Experimental bool `json:",omitempty"`
  196. BuildTime string `json:",omitempty"`
  197. }
  198. // ExecStartCheck is a temp struct used by execStart
  199. // Config fields is part of ExecConfig in runconfig package
  200. type ExecStartCheck struct {
  201. // ExecStart will first check if it's detached
  202. Detach bool
  203. // Check if there's a tty
  204. Tty bool
  205. // Terminal size [height, width], unused if Tty == false
  206. ConsoleSize *[2]uint `json:",omitempty"`
  207. }
  208. // HealthcheckResult stores information about a single run of a healthcheck probe
  209. type HealthcheckResult struct {
  210. Start time.Time // Start is the time this check started
  211. End time.Time // End is the time this check ended
  212. ExitCode int // ExitCode meanings: 0=healthy, 1=unhealthy, 2=reserved (considered unhealthy), else=error running probe
  213. Output string // Output from last check
  214. }
  215. // Health states
  216. const (
  217. NoHealthcheck = "none" // Indicates there is no healthcheck
  218. Starting = "starting" // Starting indicates that the container is not yet ready
  219. Healthy = "healthy" // Healthy indicates that the container is running correctly
  220. Unhealthy = "unhealthy" // Unhealthy indicates that the container has a problem
  221. )
  222. // Health stores information about the container's healthcheck results
  223. type Health struct {
  224. Status string // Status is one of Starting, Healthy or Unhealthy
  225. FailingStreak int // FailingStreak is the number of consecutive failures
  226. Log []*HealthcheckResult // Log contains the last few results (oldest first)
  227. }
  228. // ContainerState stores container's running state
  229. // it's part of ContainerJSONBase and will return by "inspect" command
  230. type ContainerState struct {
  231. Status string // String representation of the container state. Can be one of "created", "running", "paused", "restarting", "removing", "exited", or "dead"
  232. Running bool
  233. Paused bool
  234. Restarting bool
  235. OOMKilled bool
  236. Dead bool
  237. Pid int
  238. ExitCode int
  239. Error string
  240. StartedAt string
  241. FinishedAt string
  242. Health *Health `json:",omitempty"`
  243. }
  244. // ContainerNode stores information about the node that a container
  245. // is running on. It's only used by the Docker Swarm standalone API
  246. type ContainerNode struct {
  247. ID string
  248. IPAddress string `json:"IP"`
  249. Addr string
  250. Name string
  251. Cpus int
  252. Memory int64
  253. Labels map[string]string
  254. }
  255. // ContainerJSONBase contains response of Engine API:
  256. // GET "/containers/{name:.*}/json"
  257. type ContainerJSONBase struct {
  258. ID string `json:"Id"`
  259. Created string
  260. Path string
  261. Args []string
  262. State *ContainerState
  263. Image string
  264. ResolvConfPath string
  265. HostnamePath string
  266. HostsPath string
  267. LogPath string
  268. Node *ContainerNode `json:",omitempty"` // Node is only propagated by Docker Swarm standalone API
  269. Name string
  270. RestartCount int
  271. Driver string
  272. Platform string
  273. MountLabel string
  274. ProcessLabel string
  275. AppArmorProfile string
  276. ExecIDs []string
  277. HostConfig *container.HostConfig
  278. GraphDriver GraphDriverData
  279. SizeRw *int64 `json:",omitempty"`
  280. SizeRootFs *int64 `json:",omitempty"`
  281. }
  282. // ContainerJSON is newly used struct along with MountPoint
  283. type ContainerJSON struct {
  284. *ContainerJSONBase
  285. Mounts []MountPoint
  286. Config *container.Config
  287. NetworkSettings *NetworkSettings
  288. }
  289. // NetworkSettings exposes the network settings in the api
  290. type NetworkSettings struct {
  291. NetworkSettingsBase
  292. DefaultNetworkSettings
  293. Networks map[string]*network.EndpointSettings
  294. }
  295. // SummaryNetworkSettings provides a summary of container's networks
  296. // in /containers/json
  297. type SummaryNetworkSettings struct {
  298. Networks map[string]*network.EndpointSettings
  299. }
  300. // NetworkSettingsBase holds networking state for a container when inspecting it.
  301. type NetworkSettingsBase struct {
  302. Bridge string // Bridge contains the name of the default bridge interface iff it was set through the daemon --bridge flag.
  303. SandboxID string // SandboxID uniquely represents a container's network stack
  304. SandboxKey string // SandboxKey identifies the sandbox
  305. Ports nat.PortMap // Ports is a collection of PortBinding indexed by Port
  306. // HairpinMode specifies if hairpin NAT should be enabled on the virtual interface
  307. //
  308. // Deprecated: This field is never set and will be removed in a future release.
  309. HairpinMode bool
  310. // LinkLocalIPv6Address is an IPv6 unicast address using the link-local prefix
  311. //
  312. // Deprecated: This field is never set and will be removed in a future release.
  313. LinkLocalIPv6Address string
  314. // LinkLocalIPv6PrefixLen is the prefix length of an IPv6 unicast address
  315. //
  316. // Deprecated: This field is never set and will be removed in a future release.
  317. LinkLocalIPv6PrefixLen int
  318. SecondaryIPAddresses []network.Address // Deprecated: This field is never set and will be removed in a future release.
  319. SecondaryIPv6Addresses []network.Address // Deprecated: This field is never set and will be removed in a future release.
  320. }
  321. // DefaultNetworkSettings holds network information
  322. // during the 2 release deprecation period.
  323. // It will be removed in Docker 1.11.
  324. type DefaultNetworkSettings struct {
  325. EndpointID string // EndpointID uniquely represents a service endpoint in a Sandbox
  326. Gateway string // Gateway holds the gateway address for the network
  327. GlobalIPv6Address string // GlobalIPv6Address holds network's global IPv6 address
  328. GlobalIPv6PrefixLen int // GlobalIPv6PrefixLen represents mask length of network's global IPv6 address
  329. IPAddress string // IPAddress holds the IPv4 address for the network
  330. IPPrefixLen int // IPPrefixLen represents mask length of network's IPv4 address
  331. IPv6Gateway string // IPv6Gateway holds gateway address specific for IPv6
  332. MacAddress string // MacAddress holds the MAC address for the network
  333. }
  334. // MountPoint represents a mount point configuration inside the container.
  335. // This is used for reporting the mountpoints in use by a container.
  336. type MountPoint struct {
  337. // Type is the type of mount, see `Type<foo>` definitions in
  338. // github.com/docker/docker/api/types/mount.Type
  339. Type mount.Type `json:",omitempty"`
  340. // Name is the name reference to the underlying data defined by `Source`
  341. // e.g., the volume name.
  342. Name string `json:",omitempty"`
  343. // Source is the source location of the mount.
  344. //
  345. // For volumes, this contains the storage location of the volume (within
  346. // `/var/lib/docker/volumes/`). For bind-mounts, and `npipe`, this contains
  347. // the source (host) part of the bind-mount. For `tmpfs` mount points, this
  348. // field is empty.
  349. Source string
  350. // Destination is the path relative to the container root (`/`) where the
  351. // Source is mounted inside the container.
  352. Destination string
  353. // Driver is the volume driver used to create the volume (if it is a volume).
  354. Driver string `json:",omitempty"`
  355. // Mode is a comma separated list of options supplied by the user when
  356. // creating the bind/volume mount.
  357. //
  358. // The default is platform-specific (`"z"` on Linux, empty on Windows).
  359. Mode string
  360. // RW indicates whether the mount is mounted writable (read-write).
  361. RW bool
  362. // Propagation describes how mounts are propagated from the host into the
  363. // mount point, and vice-versa. Refer to the Linux kernel documentation
  364. // for details:
  365. // https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt
  366. //
  367. // This field is not used on Windows.
  368. Propagation mount.Propagation
  369. }
  370. // NetworkResource is the body of the "get network" http response message
  371. type NetworkResource struct {
  372. Name string // Name is the requested name of the network
  373. ID string `json:"Id"` // ID uniquely identifies a network on a single machine
  374. Created time.Time // Created is the time the network created
  375. Scope string // Scope describes the level at which the network exists (e.g. `swarm` for cluster-wide or `local` for machine level)
  376. Driver string // Driver is the Driver name used to create the network (e.g. `bridge`, `overlay`)
  377. EnableIPv6 bool // EnableIPv6 represents whether to enable IPv6
  378. IPAM network.IPAM // IPAM is the network's IP Address Management
  379. Internal bool // Internal represents if the network is used internal only
  380. Attachable bool // Attachable represents if the global scope is manually attachable by regular containers from workers in swarm mode.
  381. Ingress bool // Ingress indicates the network is providing the routing-mesh for the swarm cluster.
  382. ConfigFrom network.ConfigReference // ConfigFrom specifies the source which will provide the configuration for this network.
  383. ConfigOnly bool // ConfigOnly networks are place-holder networks for network configurations to be used by other networks. ConfigOnly networks cannot be used directly to run containers or services.
  384. Containers map[string]EndpointResource // Containers contains endpoints belonging to the network
  385. Options map[string]string // Options holds the network specific options to use for when creating the network
  386. Labels map[string]string // Labels holds metadata specific to the network being created
  387. Peers []network.PeerInfo `json:",omitempty"` // List of peer nodes for an overlay network
  388. Services map[string]network.ServiceInfo `json:",omitempty"`
  389. }
  390. // EndpointResource contains network resources allocated and used for a container in a network
  391. type EndpointResource struct {
  392. Name string
  393. EndpointID string
  394. MacAddress string
  395. IPv4Address string
  396. IPv6Address string
  397. }
  398. // NetworkCreate is the expected body of the "create network" http request message
  399. type NetworkCreate struct {
  400. // Deprecated: CheckDuplicate is deprecated since API v1.44, but it defaults to true when sent by the client
  401. // package to older daemons.
  402. CheckDuplicate bool `json:",omitempty"`
  403. Driver string
  404. Scope string
  405. EnableIPv6 bool
  406. IPAM *network.IPAM
  407. Internal bool
  408. Attachable bool
  409. Ingress bool
  410. ConfigOnly bool
  411. ConfigFrom *network.ConfigReference
  412. Options map[string]string
  413. Labels map[string]string
  414. }
  415. // NetworkCreateRequest is the request message sent to the server for network create call.
  416. type NetworkCreateRequest struct {
  417. NetworkCreate
  418. Name string
  419. }
  420. // NetworkCreateResponse is the response message sent by the server for network create call
  421. type NetworkCreateResponse struct {
  422. ID string `json:"Id"`
  423. Warning string
  424. }
  425. // NetworkConnect represents the data to be used to connect a container to the network
  426. type NetworkConnect struct {
  427. Container string
  428. EndpointConfig *network.EndpointSettings `json:",omitempty"`
  429. }
  430. // NetworkDisconnect represents the data to be used to disconnect a container from the network
  431. type NetworkDisconnect struct {
  432. Container string
  433. Force bool
  434. }
  435. // NetworkInspectOptions holds parameters to inspect network
  436. type NetworkInspectOptions struct {
  437. Scope string
  438. Verbose bool
  439. }
  440. // DiskUsageObject represents an object type used for disk usage query filtering.
  441. type DiskUsageObject string
  442. const (
  443. // ContainerObject represents a container DiskUsageObject.
  444. ContainerObject DiskUsageObject = "container"
  445. // ImageObject represents an image DiskUsageObject.
  446. ImageObject DiskUsageObject = "image"
  447. // VolumeObject represents a volume DiskUsageObject.
  448. VolumeObject DiskUsageObject = "volume"
  449. // BuildCacheObject represents a build-cache DiskUsageObject.
  450. BuildCacheObject DiskUsageObject = "build-cache"
  451. )
  452. // DiskUsageOptions holds parameters for system disk usage query.
  453. type DiskUsageOptions struct {
  454. // Types specifies what object types to include in the response. If empty,
  455. // all object types are returned.
  456. Types []DiskUsageObject
  457. }
  458. // DiskUsage contains response of Engine API:
  459. // GET "/system/df"
  460. type DiskUsage struct {
  461. LayersSize int64
  462. Images []*image.Summary
  463. Containers []*Container
  464. Volumes []*volume.Volume
  465. BuildCache []*BuildCache
  466. BuilderSize int64 `json:",omitempty"` // Deprecated: deprecated in API 1.38, and no longer used since API 1.40.
  467. }
  468. // ContainersPruneReport contains the response for Engine API:
  469. // POST "/containers/prune"
  470. type ContainersPruneReport struct {
  471. ContainersDeleted []string
  472. SpaceReclaimed uint64
  473. }
  474. // VolumesPruneReport contains the response for Engine API:
  475. // POST "/volumes/prune"
  476. type VolumesPruneReport struct {
  477. VolumesDeleted []string
  478. SpaceReclaimed uint64
  479. }
  480. // ImagesPruneReport contains the response for Engine API:
  481. // POST "/images/prune"
  482. type ImagesPruneReport struct {
  483. ImagesDeleted []image.DeleteResponse
  484. SpaceReclaimed uint64
  485. }
  486. // BuildCachePruneReport contains the response for Engine API:
  487. // POST "/build/prune"
  488. type BuildCachePruneReport struct {
  489. CachesDeleted []string
  490. SpaceReclaimed uint64
  491. }
  492. // NetworksPruneReport contains the response for Engine API:
  493. // POST "/networks/prune"
  494. type NetworksPruneReport struct {
  495. NetworksDeleted []string
  496. }
  497. // SecretCreateResponse contains the information returned to a client
  498. // on the creation of a new secret.
  499. type SecretCreateResponse struct {
  500. // ID is the id of the created secret.
  501. ID string
  502. }
  503. // SecretListOptions holds parameters to list secrets
  504. type SecretListOptions struct {
  505. Filters filters.Args
  506. }
  507. // ConfigCreateResponse contains the information returned to a client
  508. // on the creation of a new config.
  509. type ConfigCreateResponse struct {
  510. // ID is the id of the created config.
  511. ID string
  512. }
  513. // ConfigListOptions holds parameters to list configs
  514. type ConfigListOptions struct {
  515. Filters filters.Args
  516. }
  517. // PushResult contains the tag, manifest digest, and manifest size from the
  518. // push. It's used to signal this information to the trust code in the client
  519. // so it can sign the manifest if necessary.
  520. type PushResult struct {
  521. Tag string
  522. Digest string
  523. Size int
  524. }
  525. // BuildResult contains the image id of a successful build
  526. type BuildResult struct {
  527. ID string
  528. }
  529. // BuildCache contains information about a build cache record.
  530. type BuildCache struct {
  531. // ID is the unique ID of the build cache record.
  532. ID string
  533. // Parent is the ID of the parent build cache record.
  534. //
  535. // Deprecated: deprecated in API v1.42 and up, as it was deprecated in BuildKit; use Parents instead.
  536. Parent string `json:"Parent,omitempty"`
  537. // Parents is the list of parent build cache record IDs.
  538. Parents []string `json:" Parents,omitempty"`
  539. // Type is the cache record type.
  540. Type string
  541. // Description is a description of the build-step that produced the build cache.
  542. Description string
  543. // InUse indicates if the build cache is in use.
  544. InUse bool
  545. // Shared indicates if the build cache is shared.
  546. Shared bool
  547. // Size is the amount of disk space used by the build cache (in bytes).
  548. Size int64
  549. // CreatedAt is the date and time at which the build cache was created.
  550. CreatedAt time.Time
  551. // LastUsedAt is the date and time at which the build cache was last used.
  552. LastUsedAt *time.Time
  553. UsageCount int
  554. }
  555. // BuildCachePruneOptions hold parameters to prune the build cache
  556. type BuildCachePruneOptions struct {
  557. All bool
  558. KeepStorage int64
  559. Filters filters.Args
  560. }