mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-22 15:11:02 +00:00
24 lines
577 B
Go
24 lines
577 B
Go
package commands
|
|
|
|
import (
|
|
"github.com/docker/docker/api/types"
|
|
"github.com/docker/docker/client"
|
|
"github.com/fatih/color"
|
|
"github.com/jesseduffield/lazydocker/pkg/utils"
|
|
"github.com/sirupsen/logrus"
|
|
)
|
|
|
|
// Image : A docker Image
|
|
type Image struct {
|
|
Name string
|
|
ID string
|
|
Image types.ImageSummary
|
|
Client *client.Client
|
|
OSCommand *OSCommand
|
|
Log *logrus.Entry
|
|
}
|
|
|
|
// GetDisplayStrings returns the display string of Image
|
|
func (i *Image) GetDisplayStrings(isFocused bool) []string {
|
|
return []string{utils.ColoredString(i.Name, color.FgWhite)}
|
|
}
|