Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertBytesToSizeString ¶
ConvertBytesToSizeString converts a byte count to a human readable string.
func CreateItemListModel ¶
Create the list of item by fetching the server
func StartProgram ¶
func StartProgram(username, privateKeyPath, password, host, port, knownHostsPath string)
Types ¶
type Model ¶
type Model struct { List list.Model // the list of items SftpClient *sftp.Client // the sftp client // contains filtered or unexported fields }
Holds the state of the tui
type PreviousDir ¶
type PreviousDir struct{}
Rapresent the ".." dir
func (*PreviousDir) IsDir ¶
func (p *PreviousDir) IsDir() bool
func (*PreviousDir) ModTime ¶
func (p *PreviousDir) ModTime() time.Time
func (*PreviousDir) Mode ¶
func (p *PreviousDir) Mode() fs.FileMode
func (*PreviousDir) Name ¶
func (p *PreviousDir) Name() string
func (*PreviousDir) Size ¶
func (p *PreviousDir) Size() int64
func (*PreviousDir) Sys ¶
func (p *PreviousDir) Sys() any
Click to show internal directories.
Click to hide internal directories.