source

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2021 License: MIT Imports: 1 Imported by: 1

Documentation

Overview

Package source defines the interfaces that fill caches. Any system that can provide the information for the caches can be plugged into libnss-go by implementing the Source interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupSource

type GroupSource interface {
	FillGroupCache(*cache.Cache) error
}

GroupSource is satisfied by a type that provides a function for filling the group cache. Since now sgroup cache is provided, if you require passwords in your groups you will need to specify them here in an appropriate format.

type PasswdSource

type PasswdSource interface {
	FillPasswdCache(c *cache.Cache) error
}

PasswdSource can be satisfied by a type that provide a function for filling the passwd cache. Remember that in most implementations, a passwd entry will not be valid without a corresponding shadow entry.

type ShadowSource

type ShadowSource interface {
	FillShadowCache(*cache.Cache) error
}

ShadowSource is satisfied by a type that provides a function for filling the shadow cache.

type Source

type Source interface {
	PasswdSource
	ShadowSource
	GroupSource
}

A Source is a type that is capable of completely filling the caches for passwd, group, and shadow. Consumers of libnss-go should implement this interface.

Directories

Path Synopsis
Package vault is a source implementation that retrieves cache data from a path in a Hashicorp Vault key/value store.
Package vault is a source implementation that retrieves cache data from a path in a Hashicorp Vault key/value store.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL