Help us shape the future of Go! Take the 2026 Go Developer Survey

volumes

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VolumeDetail

type VolumeDetail struct {
	Width    int
	Height   int
	Volume   volume.Volume
	LabelsVp viewport.Model
	DashVp   viewport.Model
	UsageVp  viewport.Model
	StatusVp viewport.Model
	OptsVp   viewport.Model
}

func NewDetail

func NewDetail(w int, h int, vol volume.Volume) *VolumeDetail

func (*VolumeDetail) Init

func (s *VolumeDetail) Init() tea.Cmd

func (*VolumeDetail) Update

func (s *VolumeDetail) Update(msg tea.Msg) (*VolumeDetail, tea.Cmd)

func (*VolumeDetail) View

func (s *VolumeDetail) View() string

type VolumeList

type VolumeList struct {
	Width         int
	Height        int
	Items         []*volume.Volume
	FilteredItems []*volume.Volume
	SelectedIndex int
	Ti            textinput.Model
	Vp            viewport.Model
}

func NewVolumeList

func NewVolumeList(w int, h int) *VolumeList

func (*VolumeList) Filter

func (s *VolumeList) Filter(val string)

func (*VolumeList) GetCurrentItem

func (s *VolumeList) GetCurrentItem() volume.Volume

func (*VolumeList) Init

func (s *VolumeList) Init() tea.Cmd

func (*VolumeList) Update

func (s *VolumeList) Update(msg tea.Msg) (*VolumeList, tea.Cmd)

func (*VolumeList) UpdateList

func (s *VolumeList) UpdateList()

func (*VolumeList) View

func (s *VolumeList) View() string

type Volumes

type Volumes struct {
	Width      int
	Height     int
	List       *VolumeList
	Details    *VolumeDetail
	Keymap     keymap.VolMap
	Help       styledhelp.StyledHelp
	IsLoading  bool
	ShowDetail bool
}

func NewVolumes

func NewVolumes(w int, h int) *Volumes

func (*Volumes) GetListText

func (s *Volumes) GetListText() string

func (*Volumes) Init

func (s *Volumes) Init() tea.Cmd

func (*Volumes) Refresh

func (s *Volumes) Refresh() tea.Cmd

func (*Volumes) Update

func (s *Volumes) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*Volumes) View

func (s *Volumes) View() string

Jump to

Keyboard shortcuts

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