package windows

import "github.com/moby/buildkit/util/windows"

Index

Constants

const (
	ContainerAdministratorSidString = "S-1-5-93-2-1"
	ContainerUserSidString          = "S-1-5-93-2-2"
)

Constants for well-known SIDs in the Windows container. These are currently undocumented. See https://github.com/moby/buildkit/pull/5791#discussion_r1976652227 for more information.

Functions

func GetUserIdentFromContainer

func GetUserIdentFromContainer(ctx context.Context, exec executor.Executor, rootMounts []mount.Mount, userName string) (string, error)

func ResolveUsernameToSID

func ResolveUsernameToSID(ctx context.Context, exec executor.Executor, rootMount []mount.Mount, userName string) (string, error)

Source Files

util_windows.go

Version
v0.21.0
Published
Apr 11, 2025
Platform
windows/amd64
Imports
10 packages
Last checked
17 minutes ago

Tools for package owners.