mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-20 09:00:13 +01:00
Added container labels to ContainerReport interface
This commit is contained in:
parent
36391b0ae7
commit
ee49fb953e
7 changed files with 816 additions and 3 deletions
|
|
@ -76,6 +76,11 @@ func (c Container) IsRestarting() bool {
|
|||
return c.containerInfo.State.Restarting
|
||||
}
|
||||
|
||||
// Labels returns a map of all the labels present on the container
|
||||
func (c Container) Labels() map[string]string {
|
||||
return c.containerInfo.Config.Labels
|
||||
}
|
||||
|
||||
// Name returns the Docker container name.
|
||||
func (c Container) Name() string {
|
||||
return c.containerInfo.Name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue