user

package
v1.300049.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeUser

func ChangeUser(runAsUser string) (string, error)

func DetectRunAsUser

func DetectRunAsUser(configMap map[string]any) (string, error)

DetectRunAsUser get the user name from toml config. It runs on all platforms except windows.

Types

type ChownFunc

type ChownFunc func(name string, uid, gid int) error

type ExecUser

type ExecUser struct {
	Uid  int
	Gid  int
	Home string
	Gids []int
}

Jump to

Keyboard shortcuts

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