uidgidpool

package
v0.0.0-...-2b5bdcb Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package launcher provides set of API to controls services lifecycle

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdentifierPool

type IdentifierPool struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewGroupIDPool

func NewGroupIDPool() (pool *IdentifierPool)

func NewUserIDPool

func NewUserIDPool() (pool *IdentifierPool)

func (*IdentifierPool) AddID

func (pool *IdentifierPool) AddID(id int) error

func (*IdentifierPool) GetFreeID

func (pool *IdentifierPool) GetFreeID() (id int, err error)

func (*IdentifierPool) RemoveID

func (pool *IdentifierPool) RemoveID(id int) (err error)

Jump to

Keyboard shortcuts

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