selfcontainer

package
v1.10.27 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: AGPL-3.0, Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package selfcontainer detects Miabi's own container ID so the admin UI can refuse to stop or delete it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Detect

func Detect() string

Order: MIABI_CONTAINER_ID, /proc/self/mountinfo, /proc/self/cgroup, hostname.

func Match

func Match(a, b string) bool

Tolerates short and full IDs but requires a 12-char overlap, so an empty reference never matches.

Types

This section is empty.

Jump to

Keyboard shortcuts

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