user

package
v0.73.2 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package user offers an interface over user and group management

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureAgentUserAndGroup

func EnsureAgentUserAndGroup(ctx context.Context, installPath string) error

EnsureAgentUserAndGroup ensures that the user and group required by the agent are present on the system.

func GetGroupID added in v0.72.2

func GetGroupID(groupName string) (int, error)

GetGroupID returns the ID of the given group.

func GetUserID added in v0.72.2

func GetUserID(userName string) (int, error)

GetUserID returns the ID of the given user.

func IsUserInGroup added in v0.72.2

func IsUserInGroup(userName, groupName string) (bool, error)

IsUserInGroup checks if a user is a member of a group.

Types

This section is empty.

Directories

Path Synopsis
Package windowsuser offers an interface over user management on Windows
Package windowsuser offers an interface over user management on Windows

Jump to

Keyboard shortcuts

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