Sys.Linux.Nss.Group (Hyper v0.1.0)

Copy Markdown View Source

The group database (getent group).

Summary

Functions

Queries the system for group entries.

Parse raw getent group output into specs, halting on the first bad line.

Functions

entries()

@spec entries() ::
  {:ok, [Sys.Linux.Nss.Group.Spec.t()]}
  | {:error,
     {:getent_failed, non_neg_integer()} | :getent_unavailable | :invalid_format}

Queries the system for group entries.

from_output(output)

@spec from_output(binary()) ::
  {:ok, [Sys.Linux.Nss.Group.Spec.t()]} | {:error, :invalid_format}

Parse raw getent group output into specs, halting on the first bad line.