users

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOrUpdateGroup

func CreateOrUpdateGroup(group Group) error

CreateOrUpdateGroup creates or updates a group.

func CreateOrUpdateUser

func CreateOrUpdateUser(user User) error

Types

type Group

type Group struct {
	Name    string
	GID     *uint
	System  bool
	Members []string
}

type User

type User struct {
	Name     string
	UID      *uint
	Groups   []string
	HomeDir  string
	Shell    string
	Password string
	System   bool
}

Jump to

Keyboard shortcuts

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