filesystem

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dir

type Dir struct {
	Path  string
	Files []os.FileInfo
	Dirs  []*Dir
}

func (*Dir) Dump

func (d *Dir) Dump(w io.Writer) error

func (*Dir) Entries

func (d *Dir) Entries() *DiskUsageEntries

func (*Dir) Size

func (d *Dir) Size() uint64

type DiskUsageEntries

type DiskUsageEntries struct {
	// contains filtered or unexported fields
}

func (*DiskUsageEntries) Find

func (es *DiskUsageEntries) Find() []*DiskUsageEntry

func (*DiskUsageEntries) Humanize

func (es *DiskUsageEntries) Humanize(humanize bool) *DiskUsageEntries

func (*DiskUsageEntries) IBytes

func (es *DiskUsageEntries) IBytes(ibytes bool) *DiskUsageEntries

func (*DiskUsageEntries) Level

func (es *DiskUsageEntries) Level(level int) *DiskUsageEntries

func (*DiskUsageEntries) Order

func (es *DiskUsageEntries) Order(order string) *DiskUsageEntries

func (*DiskUsageEntries) Print

func (es *DiskUsageEntries) Print(w io.Writer)

func (*DiskUsageEntries) Relative

func (es *DiskUsageEntries) Relative(relative bool) *DiskUsageEntries

type DiskUsageEntry

type DiskUsageEntry struct {
	Path  string
	Level int
	Size  uint64
}

func (*DiskUsageEntry) String

func (e *DiskUsageEntry) String() string

type DiskUsageReporter

type DiskUsageReporter struct {
}

func (*DiskUsageReporter) Do

type DiskUsageRequest

type DiskUsageRequest struct {
	Root         string
	MaxRecursion int
	Verbose      bool
}

type DiskUsageResponse

type DiskUsageResponse struct {
	Root *Dir
}

type FileSystem

type FileSystem struct {
}

func New

func New() *FileSystem

func (*FileSystem) DiskUsageReporter

func (fs *FileSystem) DiskUsageReporter() *DiskUsageReporter

Jump to

Keyboard shortcuts

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