localgroups

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package localgroups handles the synchronization of local groups the users.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clean

func Clean(args ...Option) (err error)

Clean removes all unexistent users from the local groups.

func CleanUser

func CleanUser(user string, args ...Option) (err error)

CleanUser removes the user from all local groups.

func Update

func Update(username string, newGroups []string, oldGroups []string, args ...Option) (err error)

Update synchronizes for the given user the local group list with the current group list from UserInfo.

Types

type Option

type Option func(*options)

Option represents an optional function to override UpdateLocalGroups default values.

Directories

Path Synopsis
Package localgrouptestutils export users test functionalities used by other packages to change cmdline and group file.
Package localgrouptestutils export users test functionalities used by other packages to change cmdline and group file.

Jump to

Keyboard shortcuts

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