Categorygithub.com/puppetlabs/leg/workdir
modulepackage
0.1.0
Repository: https://github.com/puppetlabs/leg.git
Documentation: pkg.go.dev

# README

workdir

This package provides utilties for creating and managing working directories. It defaults to the XDG suite of directory standards from freedesktop.org.

The functionality in this package should work on Linux, MacOS and the BSDs.

TODO

  • add a mechanism for root interactions
  • add Windows support

# Functions

New returns a new WorkDir or an error.
NewNamespace returns a new Namespace with the provided parts slice set.

# Constants

DirTypeCache is a directory used to store any temporary cache that is generated by the application.
DirTypeConfig is a directory used to store configuration.
DirTypeData is a directory to store long term data.

# Structs

Namespace holds the directory parts that will be joined together to form a namespaced path segment in the final workdir.
Options for changing the behavior of directory management.
WorkDir is a response type that contains the Path to a directory created by this package.

# Type aliases

No description provided by the author