user

package
v0.0.0-...-1b9e8c6 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(path string, user string) (uint32, uint32, error)

Get accepts user string like uid:gid or username:groupname, and transfers them to format valid uid:gid. user format example: user uid uid:gid user:group uid:group user:gid

func GetAdditionalGids

func GetAdditionalGids(groups []string) []uint32

GetAdditionalGids parse supplementary gids from slice groups.

func GetIntegerID

func GetIntegerID(user string) (uint32, uint32)

GetIntegerID only parser user format uid:gid, cause container rootfs is not created by contianerd now, can not change user to id, only support user id >= 1000

Types

This section is empty.

Jump to

Keyboard shortcuts

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