Documentation ¶
Index ¶
- func NewSysInfo(uid, gid int64, dev, ino uint64, blocks int64) any
- type IDSanner
- type Stats
- type StatsList
- type T
- func (pi *T) AppendBinary(buf *bytes.Buffer) error
- func (pi *T) AppendInfo(entry file.Info)
- func (pi *T) AppendInfoList(entries file.InfoList)
- func (pi T) Blocks() int64
- func (pi T) DevIno() (device, inode uint64)
- func (pi T) FilesOnly() file.InfoList
- func (pi *T) GroupIDScan(id int64) (IDSanner, error)
- func (pi T) InfoList() file.InfoList
- func (pi *T) MarshalBinary() ([]byte, error)
- func (pi T) ModTime() time.Time
- func (pi T) Mode() fs.FileMode
- func (pi T) PrefixesOnly() file.InfoList
- func (pi *T) SetInfoList(entries file.InfoList)
- func (pi T) Size() int64
- func (pi T) Type() fs.FileMode
- func (pi T) Unchanged(npi T) bool
- func (pi T) UnchangedInfo(info file.Info) bool
- func (pi *T) UnmarshalBinary(data []byte) error
- func (pi T) UserGroup() (uid, gid int64)
- func (pi *T) UserIDScan(id int64) (IDSanner, error)
- func (pi T) XAttr() file.XAttr
- func (pi T) XAttrInfo(fi file.Info) file.XAttr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IDSanner ¶
IDScanner allows for iterating over files that belong to a particular user or group.
type Stats ¶
type Stats struct { ID uint32 Files int64 // number of files Prefixes int64 // number of prefixes/directories Bytes int64 // total size of files StorageBytes int64 // total size of files on disk PrefixBytes int64 // total size of prefixes }
func (*Stats) AppendBinary ¶
func (*Stats) DecodeBinary ¶
func (*Stats) MarshalBinary ¶
func (*Stats) UnmarshalBinary ¶
type StatsList ¶
type StatsList []Stats
func (StatsList) AppendBinary ¶
func (*StatsList) DecodeBinary ¶
func (StatsList) MarshalBinary ¶
func (*StatsList) UnmarshalBinary ¶
type T ¶
type T struct {
// contains filtered or unexported fields
}
func New ¶
New creates a new PrefixInfo for the supplied file.Info. It assumes that the supplied file.Info contains a file.XAttr in its Sys() value.
func (*T) AppendInfo ¶
func (*T) AppendInfoList ¶
func (*T) GroupIDScan ¶
GroupIDScan returns an IDSanner for the supplied group id.
func (T) InfoList ¶
Info returns the list of file.Info's available for this prefix. NOTE that these may contain directories, ie. entries for which IsDir is true.
func (*T) MarshalBinary ¶
func (T) PrefixesOnly ¶
func (*T) SetInfoList ¶
func (*T) UnmarshalBinary ¶
func (*T) UserIDScan ¶
UserIDScan returns an IDSanner for the supplied user id. It can only be used after Finalize has been called.
Click to show internal directories.
Click to hide internal directories.