container

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package container discovers macOS App Sandbox container directories (system and per-user) and parses their Container.plist metadata, plus app-group and iCloud ubiquity container paths.

Index

Constants

This section is empty.

Variables

View Source
var ErrContainerNotFound = errors.New("sandbox container not found")

ErrContainerNotFound is returned when a sandbox container URL cannot be resolved.

Functions

func AppGroupContainerPath

func AppGroupContainerPath(groupIdentifier string) (string, error)

AppGroupContainerPath returns the shared container path for an application group identifier.

func ContainerDataPath

func ContainerDataPath(homeDir, bundleID string) string

ContainerDataPath returns the Data subdirectory inside a container for bundleID and homeDir.

func ContainerRoots

func ContainerRoots() []string

ContainerRoots returns sandbox container root directories for all local users.

func UbiquityContainerPath

func UbiquityContainerPath(containerIdentifier string) (string, error)

UbiquityContainerPath returns the iCloud ubiquity container path for containerIdentifier.

Types

type ContainerInfo

type ContainerInfo struct {
	Label      string
	User       string
	Enabled    bool
	BuildID    string
	BundlePath string
	Path       string
}

ContainerInfo describes a macOS App Sandbox container directory.

func ParseContainer

func ParseContainer(containerPath string) (ContainerInfo, bool)

ParseContainer reads Container.plist under containerPath.

Jump to

Keyboard shortcuts

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