package
1.2.0
Repository: https://github.com/milk/nsscache-go.git
Documentation: pkg.go.dev

# Functions

Int32 converts the provided int32 into a valid nullInt32 which has more desireable JSON properties.
NewCache returns a new cache struct initialized with any provided options.
UInt32 converts the provided uint32 into a valid nullUInt32 which has more desireable JSON properties.
WithACL is a convenience function to obtain an Option function for the specified ACL function.

# Structs

Cache is an in-memory struct representing the cache to be used by libnss-cache.
GroupEntry describes an entry of the /etc/group file https://sourceware.org/git/?p=glibc.git;a=blob;f=grp/grp.h;hb=HEAD#l41 https://fossies.org/dox/glibc-2.30/structgroup.html.
PasswdEntry describes an entry of the /etc/passwd file https://sourceware.org/git/?p=glibc.git;a=blob;f=pwd/pwd.h;hb=HEAD#l49 https://fossies.org/dox/glibc-2.30/structpasswd.html.
ShadowEntry describes an entry of the /etc/shadow file https://sourceware.org/git/?p=glibc.git;a=blob;f=shadow/shadow.h;hb=HEAD#l39 https://fossies.org/dox/glibc-2.30/structspwd.htmls.

# Interfaces

Entry
Entry specifies a generic entry in an unspecified cache.

# Type aliases

ACL specifies a function which will return true if the entry is permitted by the ACL.
Option is a type of pre-processing function which can be used to pre-set values on a cache.