Documentation
¶
Index ¶
- func PurgeAttr(f *os.File) error
- type Attribute
- func (r Attribute) Exists(name string) bool
- func (r Attribute) FStore(f *os.File) error
- func (r Attribute) FilterByName(name ...string) Attribute
- func (r Attribute) FprintRecordsWithPath(w io.Writer, path string) (n int, err error)
- func (r Attribute) MostRecent() (name string, rec *Record)
- func (r Attribute) Store(path string) error
- type Record
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Attribute ¶
Represents the whole content of a user.xtagger xattr entry
func FLoadAttribute ¶
Loads the xtagger extended attribute for File f. Returns an empty Attribute if the file does not have an extended attribute.
func LoadAttribute ¶
Loads the xtagger extended attribute for path.
func (Attribute) FilterByName ¶
func (Attribute) FprintRecordsWithPath ¶
func (Attribute) MostRecent ¶
Returns the newest Record. Returns zero-values if no record was found.
type Record ¶
type Record struct { Checksum string `json:"c"` //Hex-string of the SHA256sum of the file. HashAlgo hashes.Algo `json:"h"` //Name of the used hashing algorithm. Timestamp int64 `json:"t"` //Unix timestamp of the record's creation. Valid bool `json:"v"` //Record valid if true, invalidated if false. }
Represents a single record within a user.xtagger xattr entry
Click to show internal directories.
Click to hide internal directories.