Documentation ¶
Index ¶
- func PadRight(str string, length int, padChar string) string
- type Box
- type DetailView
- type DownloadView
- type Layer
- func (l *Layer) DownCursor(val int, contentNum int) int
- func (l *Layer) DrawBackGround(fg, bg termbox.Attribute)
- func (l *Layer) DrawContents(lines []string, cursorFG, cursorBG termbox.Attribute, ...)
- func (l *Layer) HalfPageDownCursor(contentNum int) int
- func (l *Layer) HalfPageUpCursor() int
- func (l *Layer) Resize(x, y, width, height int)
- func (l *Layer) UpCursor(val int) int
- type ListView
- type MenuCommand
- type MenuItem
- type MenuView
- type NavigationView
- type Position
- type Render
- type StatusView
- type Window
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DetailView ¶
type DetailView struct { Render Key string Obj *s3.GetObjectOutput Layer *Layer }
func NewDetailView ¶
func NewDetailView(x, y, width, height int) *DetailView
func (*DetailView) Down ¶
func (v *DetailView) Down() int
func (*DetailView) Draw ¶
func (v *DetailView) Draw()
func (*DetailView) HalfPageDown ¶
func (v *DetailView) HalfPageDown() int
func (*DetailView) HalfPageUp ¶
func (v *DetailView) HalfPageUp() int
func (*DetailView) Up ¶
func (v *DetailView) Up() int
type DownloadView ¶
type DownloadView struct { Render Layer *Layer Objects []*model.DownloadItem }
func NewDownloadView ¶
func NewDownloadView(x, y, width, height int) *DownloadView
func (*DownloadView) Down ¶
func (v *DownloadView) Down() int
func (*DownloadView) Draw ¶
func (v *DownloadView) Draw()
func (*DownloadView) HalfPageDown ¶
func (v *DownloadView) HalfPageDown() int
func (*DownloadView) HalfPageUp ¶
func (v *DownloadView) HalfPageUp() int
func (*DownloadView) Up ¶
func (v *DownloadView) Up() int
type Layer ¶
type Layer struct {
// contains filtered or unexported fields
}
func (*Layer) DrawBackGround ¶
func (*Layer) DrawContents ¶
func (*Layer) HalfPageDownCursor ¶
func (*Layer) HalfPageUpCursor ¶
type ListView ¶
type ListView struct { Render Key string Objects []*model.S3Object Layer *Layer // contains filtered or unexported fields }
func NewListView ¶
func (*ListView) GetCursorObject ¶
func (*ListView) HalfPageDown ¶
func (*ListView) HalfPageUp ¶
func (*ListView) UpdateList ¶
type MenuCommand ¶
type MenuCommand int
const ( CommandDownload MenuCommand = iota //0 CommandOpen CommandEdit )
type MenuItem ¶
type MenuItem struct { Command MenuCommand // contains filtered or unexported fields }
func NewMenuItem ¶
func NewMenuItem(name, shorthand, detail string, command MenuCommand) *MenuItem
type NavigationView ¶
type NavigationView struct { // contains filtered or unexported fields }
func NewNavigationView ¶
func NewNavigationView(x, y, width, height int) *NavigationView
func (*NavigationView) Draw ¶
func (v *NavigationView) Draw()
func (*NavigationView) SetCurrentPath ¶
func (v *NavigationView) SetCurrentPath(bucket string, node *model.Node)
type StatusView ¶
func NewStatusView ¶
func NewStatusView(x, y, width, height int) *StatusView
func (*StatusView) Draw ¶
func (v *StatusView) Draw()
Click to show internal directories.
Click to hide internal directories.