feat: progress for removing service(s)

This commit is contained in:
Pavel Sviderski
2025-02-11 21:21:50 +10:00
parent 4da51636fd
commit f209851986
4 changed files with 20 additions and 22 deletions
+4
View File
@@ -18,6 +18,10 @@ type Container struct {
types.Container
}
func (c *Container) Name() string {
return c.Names[0][1:] // Remove leading slash.
}
// ServiceID returns the ID of the service this container belongs to.
func (c *Container) ServiceID() string {
return c.Labels[LabelServiceID]