docker

package
v0.0.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() source.Source

Types

type ContainerItem

type ContainerItem struct {
	ID     string
	Name   string
	Image  string
	Status string
}

ContainerItem represents a Docker container in the list.

func NewContainerItem

func NewContainerItem(container types.Container) *ContainerItem

NewContainerItem creates a new instance of ContainerItem from a Docker API Container type.

func (*ContainerItem) Children

func (c *ContainerItem) Children() []source.ListItem

Children returns an empty slice, as Docker containers don't have a hierarchical structure in this context.

func (*ContainerItem) FilterValue

func (c *ContainerItem) FilterValue() string

FilterValue returns the value used for filtering the list. It could be the container's name or ID.

func (*ContainerItem) String

func (c *ContainerItem) String() string

String returns a string representation of the container, which will be displayed in the list.

type DockerSource

type DockerSource struct {
	// contains filtered or unexported fields
}

func (*DockerSource) Columns

func (d *DockerSource) Columns() []*source.List

func (*DockerSource) Init

func (d *DockerSource) Init(stateChan chan state.State) tea.Cmd

func (*DockerSource) Logs

func (d *DockerSource) Logs(ctx context.Context, stateChan chan state.State, logChan chan string) tea.Cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL