Label returns the value of the label with the given name or an empty string if the given label does not exist.
(name string)
| 248 | // Label returns the value of the label with the given name or an empty string |
| 249 | // if the given label does not exist. |
| 250 | func (c *ContainerContext) Label(name string) string { |
| 251 | if c.c.Labels == nil { |
| 252 | return "" |
| 253 | } |
| 254 | return c.c.Labels[name] |
| 255 | } |
| 256 | |
| 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). |
nothing calls this directly
no outgoing calls
no test coverage detected