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.