namespaces

package
v0.9.2 Latest Latest
Warning

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

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

Documentation

Overview

Package namespaces on macOS is a no-op stub because Darwin does not expose Linux-style unshare/clone() flags, pivot_root, or persistent user namespace state. ModeNative is the only execution mode available on macOS, so this package's surface area is kept minimal.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRootless

func IsRootless() bool

IsRootless always reports true on macOS because users do not normally run Doki as root on a desktop.

Types

type Config

type Config struct {
	UID           uint32
	GID           uint32
	DenySetgroups bool
}

Config mirrors the Linux configuration type. Fields are documented but unused on macOS.

type Manager

type Manager struct{}

Manager is a no-op stand-in for the Linux Manager on darwin builds.

func NewManager

func NewManager(root string) *Manager

NewManager returns a stub manager. No setup work happens because macOS does not support Linux user namespaces.

func (*Manager) DeletePersistentNamespace

func (m *Manager) DeletePersistentNamespace(id string) error

DeletePersistentNamespace is not supported on macOS.

func (*Manager) SetupUserNamespace

func (m *Manager) SetupUserNamespace(pid int, cfg *Config) error

SetupUserNamespace is not supported on macOS.

Jump to

Keyboard shortcuts

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