uid

package
v0.8.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultRangeCount = 0x10000

Variables

This section is empty.

Functions

This section is empty.

Types

type UidRange

type UidRange struct {
	Shift uint32
	Count uint32
}

A UidRange structure used to set uidshift and its range.

func NewBlankUidRange

func NewBlankUidRange() *UidRange

func (*UidRange) Deserialize

func (r *UidRange) Deserialize(uidRange []byte) error

func (*UidRange) Serialize

func (r *UidRange) Serialize() []byte

func (*UidRange) SetRandomUidRange

func (r *UidRange) SetRandomUidRange(uidCount uint32)

func (*UidRange) ShiftRange

func (r *UidRange) ShiftRange(uid uint32, gid uint32) (uint32, uint32, error)

Jump to

Keyboard shortcuts

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