users

package
v0.0.0-...-8deac7e Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultUID int = 0
	DefaultGID int = 0
)
View Source
const (
	DefaultHome string = "/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecUser

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

func LookupUser

func LookupUser(rootFsPath, userName string) (*ExecUser, error)

type LookupFunc

type LookupFunc func(rootfsPath, user string) (*ExecUser, error)

func (LookupFunc) Lookup

func (fn LookupFunc) Lookup(rootfsPath, user string) (*ExecUser, error)

type UserLookupper

type UserLookupper interface {
	Lookup(rootFsPath string, user string) (*ExecUser, error)
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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