Documentation ¶
Index ¶
- Constants
- func Convert2SizeString(size SizeUnit) string
- func DetectorFallthrough(d *DuplicateDetect)
- func EnableFileMode(renderer *render.Renderer) filter.ContentOption
- func EnableFileOctalPermissions(renderer *render.Renderer) filter.ContentOption
- func EnableTime(format string, mode string, renderer *render.Renderer) filter.ContentOption
- type BlockSizeEnabler
- type CharsetEnabler
- type DOption
- type Duplicate
- type DuplicateDetect
- type GitEnabler
- type GroupEnabler
- type IndexEnabler
- type InodeEnabler
- type LinkEnabler
- type MimeFileTypeEnabler
- type Name
- func (n *Name) Enable(renderer *render.Renderer) filter.ContentOption
- func (n *Name) FullPath() bool
- func (n *Name) RelativeTo() string
- func (n *Name) SetClassify() *Name
- func (n *Name) SetFileType() *Name
- func (n *Name) SetFullPath() *Name
- func (n *Name) SetHyperlink() *Name
- func (n *Name) SetIcon() *Name
- func (n *Name) SetNoDeference() *Name
- func (n *Name) SetQuote(quote string) *Name
- func (n *Name) SetRelativeTo(relativeTo string)
- func (n *Name) SetStatistics(Statistics *Statistics) *Name
- func (n *Name) Statistics() *Statistics
- func (n *Name) UnsetClassify() *Name
- func (n *Name) UnsetFileType() *Name
- func (n *Name) UnsetFullPath() *Name
- func (n *Name) UnsetHyperlink() *Name
- func (n *Name) UnsetIcon() *Name
- func (n *Name) UnsetNoDeference() *Name
- func (n *Name) UnsetQuote() *Name
- type OwnerEnabler
- type RelativeTimeEnabler
- type Size
- type SizeEnabler
- func (s *SizeEnabler) DisableTotal()
- func (s *SizeEnabler) EnableSize(size SizeUnit, renderer *render.Renderer) filter.ContentOption
- func (s *SizeEnabler) Recursive() *SizeRecursive
- func (s *SizeEnabler) Reset()
- func (s *SizeEnabler) SetEnableTotal()
- func (s *SizeEnabler) SetRecursive(sr *SizeRecursive)
- func (s *SizeEnabler) Size2String(b int64) (string, SizeUnit)
- func (s *SizeEnabler) SizeUint() SizeUnit
- func (s *SizeEnabler) Total() (size int64, ok bool)
- type SizeRecursive
- type SizeUnit
- type Statistics
- type SumEnabler
- type SumType
Constants ¶
View Source
const ( GroupName = "Group" GroupUidName = "Group-uid" GroupSID = "Group-sid" )
View Source
const ( MimeTypeName = filter.MimeTypeName ParentMimeTypeName = "Parent-Mime-type" )
View Source
const ( OwnerName = "Owner" OwnerUidName = "Owner-uid" OwnerSID = "Owner-sid" )
View Source
const BlockSizeName = "Blocks"
View Source
const (
Charset = "Charset"
)
View Source
const GitStatus = "Git"
View Source
const Inode = "Inode"
View Source
const Link = "Link"
View Source
const NameName = "Name"
View Source
const OctalPermissions = "Octal"
View Source
const Permissions = "Permissions"
View Source
const RecursiveSizeName = "recursive_size"
View Source
const RelativeTime = "Relative-Time"
View Source
const SizeName = "Size"
View Source
const SumName = "Sum"
Variables ¶
This section is empty.
Functions ¶
func Convert2SizeString ¶
func DetectorFallthrough ¶
func DetectorFallthrough(d *DuplicateDetect)
func EnableFileMode ¶
func EnableFileMode(renderer *render.Renderer) filter.ContentOption
EnableFileMode return file mode like -rwxrwxrwx/drwxrwxrwx
func EnableFileOctalPermissions ¶ added in v0.9.0
func EnableFileOctalPermissions(renderer *render.Renderer) filter.ContentOption
func EnableTime ¶
EnableTime enables time accepts ['mod', 'modified', 'create', 'access']
Types ¶
type BlockSizeEnabler ¶
type BlockSizeEnabler struct{}
func NewBlockSizeEnabler ¶
func NewBlockSizeEnabler() *BlockSizeEnabler
func (*BlockSizeEnabler) Enable ¶
func (b *BlockSizeEnabler) Enable(renderer *render.Renderer) filter.ContentOption
type CharsetEnabler ¶ added in v0.10.0
type CharsetEnabler struct{}
func NewCharsetEnabler ¶ added in v0.10.0
func NewCharsetEnabler() *CharsetEnabler
func (*CharsetEnabler) Enable ¶ added in v0.10.0
func (c *CharsetEnabler) Enable() filter.ContentOption
type DuplicateDetect ¶
type DuplicateDetect struct { IsThrough bool // contains filtered or unexported fields }
func NewDuplicateDetect ¶
func NewDuplicateDetect(options ...DOption) *DuplicateDetect
func (*DuplicateDetect) Enable ¶
func (d *DuplicateDetect) Enable() filter.NoOutputOption
func (*DuplicateDetect) Fprint ¶
func (d *DuplicateDetect) Fprint(w io.Writer)
func (*DuplicateDetect) Reset ¶
func (d *DuplicateDetect) Reset()
func (*DuplicateDetect) Result ¶
func (d *DuplicateDetect) Result() []Duplicate
type GitEnabler ¶ added in v0.9.0
func NewGitEnabler ¶ added in v0.9.0
func NewGitEnabler() *GitEnabler
func (*GitEnabler) Enable ¶ added in v0.9.0
func (g *GitEnabler) Enable(renderer *render.Renderer) filter.ContentOption
func (*GitEnabler) FreeCache ¶ added in v0.9.0
func (g *GitEnabler) FreeCache()
func (*GitEnabler) InitCache ¶ added in v0.9.0
func (g *GitEnabler) InitCache(repo git.RepoPath)
type GroupEnabler ¶ added in v0.9.0
type GroupEnabler struct {
Numeric bool
}
func NewGroupEnabler ¶ added in v0.9.0
func NewGroupEnabler() *GroupEnabler
func (*GroupEnabler) DisableNumeric ¶ added in v0.9.0
func (g *GroupEnabler) DisableNumeric()
func (*GroupEnabler) EnableGroup ¶ added in v0.9.0
func (g *GroupEnabler) EnableGroup(renderer *render.Renderer) filter.ContentOption
func (*GroupEnabler) EnableNumeric ¶ added in v0.9.0
func (g *GroupEnabler) EnableNumeric()
type IndexEnabler ¶
type IndexEnabler struct{}
func NewIndexEnabler ¶
func NewIndexEnabler() *IndexEnabler
func (*IndexEnabler) Enable ¶
func (i *IndexEnabler) Enable() filter.ContentOption
type InodeEnabler ¶
type InodeEnabler struct{}
func NewInodeEnabler ¶
func NewInodeEnabler() *InodeEnabler
func (*InodeEnabler) Enable ¶
func (i *InodeEnabler) Enable(renderer *render.Renderer) filter.ContentOption
type LinkEnabler ¶
type LinkEnabler struct{}
LinkEnabler List each file's number of hard links.
func NewLinkEnabler ¶
func NewLinkEnabler() *LinkEnabler
func (*LinkEnabler) Enable ¶
func (l *LinkEnabler) Enable(renderer *render.Renderer) filter.ContentOption
type MimeFileTypeEnabler ¶
type MimeFileTypeEnabler struct {
ParentOnly bool
}
func NewMimeFileTypeEnabler ¶
func NewMimeFileTypeEnabler() *MimeFileTypeEnabler
func (*MimeFileTypeEnabler) Enable ¶
func (e *MimeFileTypeEnabler) Enable() filter.ContentOption
type Name ¶
type Name struct { Quote string // contains filtered or unexported fields }
func NewNameEnable ¶
func NewNameEnable() *Name
func (*Name) Enable ¶
func (n *Name) Enable(renderer *render.Renderer) filter.ContentOption
Enable enable name filter
func (*Name) RelativeTo ¶
func (*Name) SetClassify ¶
func (*Name) SetFileType ¶
SetFileType set file type should set classify first if classify is false, fileType will be ignored
func (*Name) SetFullPath ¶
func (*Name) SetHyperlink ¶ added in v0.9.0
func (*Name) SetNoDeference ¶ added in v0.9.0
func (*Name) SetRelativeTo ¶
func (*Name) SetStatistics ¶
func (n *Name) SetStatistics(Statistics *Statistics) *Name
func (*Name) Statistics ¶
func (n *Name) Statistics() *Statistics
func (*Name) UnsetClassify ¶
func (*Name) UnsetFileType ¶
func (*Name) UnsetFullPath ¶
func (*Name) UnsetHyperlink ¶ added in v0.9.0
func (*Name) UnsetNoDeference ¶ added in v0.9.0
func (*Name) UnsetQuote ¶
type OwnerEnabler ¶ added in v0.9.0
type OwnerEnabler struct {
Numeric bool
}
func NewOwnerEnabler ¶ added in v0.9.0
func NewOwnerEnabler() *OwnerEnabler
func (*OwnerEnabler) DisableNumeric ¶ added in v0.9.0
func (o *OwnerEnabler) DisableNumeric()
func (*OwnerEnabler) EnableNumeric ¶ added in v0.9.0
func (o *OwnerEnabler) EnableNumeric()
func (*OwnerEnabler) EnableOwner ¶ added in v0.9.0
func (o *OwnerEnabler) EnableOwner(renderer *render.Renderer) filter.ContentOption
type RelativeTimeEnabler ¶
type RelativeTimeEnabler struct {
Mode string
}
func NewRelativeTimeEnabler ¶
func NewRelativeTimeEnabler() *RelativeTimeEnabler
func (*RelativeTimeEnabler) Enable ¶
func (r *RelativeTimeEnabler) Enable(renderer *render.Renderer) filter.ContentOption
type SizeEnabler ¶
type SizeEnabler struct {
// contains filtered or unexported fields
}
func NewSizeEnabler ¶
func NewSizeEnabler() *SizeEnabler
func (*SizeEnabler) DisableTotal ¶
func (s *SizeEnabler) DisableTotal()
func (*SizeEnabler) EnableSize ¶
func (s *SizeEnabler) EnableSize(size SizeUnit, renderer *render.Renderer) filter.ContentOption
func (*SizeEnabler) Recursive ¶
func (s *SizeEnabler) Recursive() *SizeRecursive
func (*SizeEnabler) Reset ¶
func (s *SizeEnabler) Reset()
func (*SizeEnabler) SetEnableTotal ¶
func (s *SizeEnabler) SetEnableTotal()
func (*SizeEnabler) SetRecursive ¶
func (s *SizeEnabler) SetRecursive(sr *SizeRecursive)
func (*SizeEnabler) Size2String ¶
func (s *SizeEnabler) Size2String(b int64) (string, SizeUnit)
func (*SizeEnabler) SizeUint ¶
func (s *SizeEnabler) SizeUint() SizeUnit
func (*SizeEnabler) Total ¶
func (s *SizeEnabler) Total() (size int64, ok bool)
type SizeRecursive ¶
type SizeRecursive struct {
// contains filtered or unexported fields
}
func NewSizeRecursive ¶
func NewSizeRecursive(depth int) *SizeRecursive
type Statistics ¶
type Statistics struct {
// contains filtered or unexported fields
}
func (*Statistics) MarshalJSON ¶ added in v0.10.0
func (s *Statistics) MarshalJSON() ([]byte, error)
func (*Statistics) Reset ¶
func (s *Statistics) Reset()
func (*Statistics) String ¶
func (s *Statistics) String() string
type SumEnabler ¶ added in v0.9.0
type SumEnabler struct{}
func (SumEnabler) EnableSum ¶ added in v0.9.0
func (s SumEnabler) EnableSum(sumTypes ...SumType) filter.ContentOption
Click to show internal directories.
Click to hide internal directories.