users

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: AGPL-3.0 Imports: 12 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