idShiftUtils

package module
v0.0.0-...-7a840ef Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: Apache-2.0 Imports: 9 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDirIDs

func GetDirIDs(baseDir string) ([]uint32, []uint32, error)

Returns the lists of user and group IDs for all files and directories at or below the given path.

func ShiftIdsWithChown

func ShiftIdsWithChown(baseDir string, uidOffset, gidOffset int32) error

"Shifts" ownership of user and group IDs on the given directory and files and directories below it by the given offset, using chown.

Types

type IDMapping

type IDMapping struct {
	ContainerID uint32
	HostID      uint32
	Size        uint32
}

type IDShiftType

type IDShiftType int
const (
	NoShift IDShiftType = iota
	Shiftfs
	IDMappedMount
	IDMappedMountOrShiftfs
	Chown
)

Jump to

Keyboard shortcuts

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