Mounts returns a comma-separated string of mount names present on the container. If the trunc option is set, names can be truncated (ellipsized).
()
| 257 | // Mounts returns a comma-separated string of mount names present on the container. |
| 258 | // If the trunc option is set, names can be truncated (ellipsized). |
| 259 | func (c *ContainerContext) Mounts() string { |
| 260 | var mounts []string |
| 261 | for _, name := range c.c.Mounts { |
| 262 | if c.trunc { |
| 263 | name = formatter.Ellipsis(name, 15) |
| 264 | } |
| 265 | mounts = append(mounts, name) |
| 266 | } |
| 267 | return strings.Join(mounts, ",") |
| 268 | } |
| 269 | |
| 270 | // LocalVolumes returns the number of volumes using the "local" volume driver. |
| 271 | func (c *ContainerContext) LocalVolumes() string { |
nothing calls this directly
no outgoing calls
no test coverage detected