add slack notification cli flag

This commit is contained in:
ubergesundheit 2017-02-07 16:43:44 +01:00
parent 265ae80099
commit b6707f504e
No known key found for this signature in database
GPG key ID: 5CBA93477A39C06E
6 changed files with 159 additions and 19 deletions

View file

@ -64,6 +64,12 @@ func (c Container) ImageName() string {
return imageName
}
// Details returns the name of the Docker image as defined in ImageName
// together with the name of the container
func (c Container) Details() string {
return fmt.Sprintf("%s (%s)", c.ImageName(), c.Name())
}
// Links returns a list containing the names of all the containers to which
// this container is linked.
func (c Container) Links() []string {