explorer

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commands

func Commands(con *console.Console) []*grumble.Command

func SetFiles

func SetFiles(model interface{}, files []os.DirEntry) error

SetFiles

Types

type ExplorerModel

type ExplorerModel struct {
	FilePicker filepicker.Model
	Files      []os.DirEntry
	// contains filtered or unexported fields
}

func NewExplorer

func NewExplorer(files []os.DirEntry, con *console.Console) *ExplorerModel

func (*ExplorerModel) Init

func (e *ExplorerModel) Init() tea.Cmd

func (*ExplorerModel) Update

func (e *ExplorerModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*ExplorerModel) View

func (e *ExplorerModel) View() string

type ProtobufDirEntry

type ProtobufDirEntry struct {
	FileInfo *implantpb.FileInfo
}

ProtobufDirEntry

func (ProtobufDirEntry) Info

func (p ProtobufDirEntry) Info() (os.FileInfo, error)

func (ProtobufDirEntry) IsDir

func (p ProtobufDirEntry) IsDir() bool

func (ProtobufDirEntry) ModTime

func (p ProtobufDirEntry) ModTime() time.Time

func (ProtobufDirEntry) Mode

func (p ProtobufDirEntry) Mode() os.FileMode

func (ProtobufDirEntry) Name

func (p ProtobufDirEntry) Name() string

func (ProtobufDirEntry) Size

func (p ProtobufDirEntry) Size() int64

func (ProtobufDirEntry) Sys

func (p ProtobufDirEntry) Sys() interface{}

func (ProtobufDirEntry) Type

func (p ProtobufDirEntry) Type() os.FileMode

Jump to

Keyboard shortcuts

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