util

package
v0.0.0-...-adbe259 Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const MapSize = 65536

MapSize is the size of the subuid mapping

Variables

This section is empty.

Functions

func GetSubid

func GetSubid(userObj *user.User) (int, int, error)

GetSubid looks up the subuid and subgid for the given user

func PrettyPrintStruct

func PrettyPrintStruct(data interface{})

PrettyPrintStruct prints a struct as info level by default unless a different logging level function is passed in

func UnmarshalFile

func UnmarshalFile(filepath string, dst interface{}) error

UnmarshalFile reads a json file into a struct

Types

This section is empty.

Jump to

Keyboard shortcuts

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