userutil

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AttributeUserShell = Attribute("UserShell")
)

Variables

View Source
var Prefix = "alcless_" + me() + "_"

Prefix is the prefix of the user accounts.

Functions

func AddUserCmds added in v0.2.0

func AddUserCmds(ctx context.Context, instUser string, _ bool) ([]*exec.Cmd, error)

func DeleteUserCmds added in v0.2.0

func DeleteUserCmds(ctx context.Context, instUser string, secure bool) ([]*exec.Cmd, error)

func Exists

func Exists(name string) (bool, error)

func InstanceFromUser

func InstanceFromUser(username string) string

func ReadAttribute added in v0.2.0

func ReadAttribute(_ context.Context, username string, k Attribute) (string, error)

func UserFromInstance

func UserFromInstance(instName string) string

func Users added in v0.2.0

func Users(ctx context.Context) ([]string, error)

Types

type Attribute added in v0.2.0

type Attribute string

Jump to

Keyboard shortcuts

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