Documentation
¶
Index ¶
- Constants
- type Item
- type ItemList
- type Model
- func (m *Model) CurrItem() *Item
- func (m *Model) CurrItemForSide(side Side) *Item
- func (m *Model) CurrPath() string
- func (m *Model) CurrPathForSide(side Side) string
- func (m *Model) CurrSide() Side
- func (m *Model) CurrentFilter() string
- func (m *Model) DpDomain() string
- func (m *Model) GetSelectedItems(side Side) []Item
- func (m *Model) GetVisibleItem(side Side, rowIdx int) Item
- func (m *Model) GetVisibleItemCount(side Side) int
- func (m *Model) IsCurrentItem(side Side, itemIdx int) bool
- func (m *Model) IsCurrentRow(side Side, rowIdx int) bool
- func (m *Model) IsCurrentSide(side Side) bool
- func (m *Model) IsSelectable() bool
- func (m *Model) NavBottom()
- func (m *Model) NavDown()
- func (m *Model) NavPgDown()
- func (m *Model) NavPgUp()
- func (m *Model) NavTop()
- func (m *Model) NavUp()
- func (m *Model) NavUpDown(side Side, move int)
- func (m *Model) OtherSide() Side
- func (m *Model) SearchNext(searchStr string) bool
- func (m *Model) SearchPrev(searchStr string) bool
- func (m *Model) SelPgDown()
- func (m *Model) SelPgUp()
- func (m *Model) SelToBottom()
- func (m *Model) SelToTop()
- func (m *Model) SetCurrItemForSide(side Side, itemName string)
- func (m *Model) SetCurrPath(newPath string)
- func (m *Model) SetCurrPathForSide(side Side, newPath string)
- func (m *Model) SetCurrentFilter(filterString string)
- func (m *Model) SetDpDomain(dpDomain string)
- func (m *Model) SetItems(side Side, items []Item)
- func (m *Model) SetItemsMaxSize(itemMaxRows, itemMaxCols int)
- func (m *Model) SetTitle(side Side, title string)
- func (m *Model) SortSide(side Side)
- func (m *Model) Title(side Side) string
- func (m *Model) ToggleCurrItem()
- func (m *Model) ToggleSide()
- type Side
Constants ¶
View Source
const ( Left = Side(0) Right = Side(1) )
Left and Right constants for addressing side in slices.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Item ¶
Item contains information about File/Directory.
func (*Item) IsDirectory ¶
IsDirectory retuns true if Item is a directory.
type ItemList ¶
type ItemList []Item
ItemList is slice extended as a sortable list of Items (implements sort.Interface).
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is a structure representing our dpcmder view of files, both left-side DataPower view and right-side local filesystem view.
func (*Model) CurrItemForSide ¶
func (*Model) CurrPathForSide ¶
func (*Model) CurrentFilter ¶
func (*Model) GetSelectedItems ¶
func (*Model) GetVisibleItemCount ¶
func (*Model) IsCurrentSide ¶
func (*Model) IsSelectable ¶
func (*Model) SearchNext ¶
func (*Model) SearchPrev ¶
func (*Model) SelToBottom ¶
func (m *Model) SelToBottom()
func (*Model) SetCurrItemForSide ¶
func (*Model) SetCurrPath ¶
func (*Model) SetCurrPathForSide ¶
func (*Model) SetCurrentFilter ¶
func (*Model) SetDpDomain ¶
func (*Model) SetItemsMaxSize ¶
func (*Model) ToggleCurrItem ¶
func (m *Model) ToggleCurrItem()
func (*Model) ToggleSide ¶
func (m *Model) ToggleSide()
Click to show internal directories.
Click to hide internal directories.