All Projects → pkg → Xattr

pkg / Xattr

Licence: bsd-2-clause
Extended attribute support for Go (linux + darwin + freebsd)

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Labels

Projects that are alternatives of or similar to Xattr

Systemd
The systemd System and Service Manager
Stars: ✭ 8,841 (+8162.62%)
Mutual labels:  system
System Runtime
A JavaScript library that runs systems
Stars: ✭ 83 (-22.43%)
Mutual labels:  system
Bash Oneliner
A collection of handy Bash One-Liners and terminal tricks for data processing and Linux system maintenance.
Stars: ✭ 1,359 (+1170.09%)
Mutual labels:  system
Spiffs
Wear-leveled SPI flash file system for embedded devices
Stars: ✭ 1,105 (+932.71%)
Mutual labels:  system
Rduinoscope
rDUINOScope - Arduino based telescope control system (GOTO)
Stars: ✭ 75 (-29.91%)
Mutual labels:  system
Slpkg
📦 Mirror of slpkg repository
Stars: ✭ 86 (-19.63%)
Mutual labels:  system
Nsudo
Series of System Administration Tools
Stars: ✭ 945 (+783.18%)
Mutual labels:  system
Istatserverlinux
A system monitoring daemon that sends stats to Send stats to iStat View for iOS and iStat View for macOS.
Stars: ✭ 100 (-6.54%)
Mutual labels:  system
Ease
It's magic.
Stars: ✭ 1,213 (+1033.64%)
Mutual labels:  system
Geotic
Entity Component System library for javascript
Stars: ✭ 97 (-9.35%)
Mutual labels:  system
Ucaresystem
An all-in-one, one click system maintenance application for Ubuntu/Debian operating systems and derivatives
Stars: ✭ 69 (-35.51%)
Mutual labels:  system
Awesome System For Machine Learning
A curated list of research in machine learning system. I also summarize some papers if I think they are really interesting.
Stars: ✭ 1,185 (+1007.48%)
Mutual labels:  system
Gatsby Remark Design System
🎨 Create your design system with Gatsby in Markdown
Stars: ✭ 90 (-15.89%)
Mutual labels:  system
Node Blink Security
This is an npm module for communicating with Blink Home Security System
Stars: ✭ 54 (-49.53%)
Mutual labels:  system
Iglance
Free system monitor for OSX and macOS. See all system information at a glance in the menu bar.
Stars: ✭ 1,358 (+1169.16%)
Mutual labels:  system
Ecs Snake
Simple snake game powered by ecs framework.
Stars: ✭ 41 (-61.68%)
Mutual labels:  system
Node Os Monitor
simple OS monitoring for Node.js
Stars: ✭ 83 (-22.43%)
Mutual labels:  system
Userpath
Cross-platform tool for adding locations to the user PATH, no elevated privileges required!
Stars: ✭ 103 (-3.74%)
Mutual labels:  system
Xntsv
XNTSV program for detailed viewing of system structures for Windows.
Stars: ✭ 100 (-6.54%)
Mutual labels:  system
Laraestimate
LaraEstimate is a complete Estimates/Quotes System made with Laravel 7 and VueJS.
Stars: ✭ 98 (-8.41%)
Mutual labels:  system

GoDoc Go Report Card Build Status Codecov

xattr

Extended attribute support for Go (linux + darwin + freebsd + netbsd + solaris).

"Extended attributes are name:value pairs associated permanently with files and directories, similar to the environment strings associated with a process. An attribute may be defined or undefined. If it is defined, its value may be empty or non-empty." See more...

SetWithFlags allows to additionally pass system flags to be forwarded to the underlying calls. FreeBSD and NetBSD do not support this and the parameter will be ignored.

The L variants of all functions (LGet/LSet/...) are identical to Get/Set/... except that they do not reference a symlink that appears at the end of a path. See GoDoc for details.

Example

  const path = "/tmp/myfile"
  const prefix = "user."

  if err := xattr.Set(path, prefix+"test", []byte("test-attr-value")); err != nil {
  	log.Fatal(err)
  }

  var list []string
  if list, err = xattr.List(path); err != nil {
  	log.Fatal(err)
  }

  var data []byte
  if data, err = xattr.Get(path, prefix+"test"); err != nil {
  	log.Fatal(err)
  }

  if err = xattr.Remove(path, prefix+"test"); err != nil {
  	log.Fatal(err)
  }

  // One can also specify the flags parameter to be passed to the OS.
  if err := xattr.SetWithFlags(path, prefix+"test", []byte("test-attr-value"), xattr.XATTR_CREATE); err != nil {
  	log.Fatal(err)
  }
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].