config

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	Key     = "server"
	Address = Key + ".address"
	Token   = Key + ".token"
	// Address other icebaths reach this server at, such as https://spark.example.com; none when they don't
	PublicURL = Key + ".public_url"
	// Longest the processes left once the server stopped get between the signal to end and the kill: every other process of its container
	// when it is the first, the processes orphaned below it when it runs below the container's init
	KillGrace = Key + ".kill_grace"
	// Files the process asks the system to let it hold open at once, as it starts; zero asks for nothing more than it was given
	OpenFiles = Key + ".open_files"
	// Most memory arenas the allocator of the C code in the process makes, as it starts, where that allocator is glibc's; zero leaves it
	Arenas = Key + ".malloc_arenas"
)
View Source
const APIKeyLength = 16

Fewest characters of a key the HTTP API takes: what it guards runs commands, so a key short enough to guess is no key

View Source
const APIKeyVariable = "API_SERVER_KEY"

Variable that holds the key other programs reach the HTTP API of a profile with. The server makes one and keeps it in the .env of the profile it runs on unless the environment supplies one, and every other profile is reached with the key its own environment holds

View Source
const AddressVariable = "ICEBATH_SERVER_ADDRESS"

Variable that sets the address over the settings, such as a container's start gives it: a port published to a container reaches only an address of the container's network

View Source
const Port = "7433"

Port an icebath server listens on unless its address says another

Variables

This section is empty.

Functions

func Register

func Register(cfg *config.Config)

Types

This section is empty.

Jump to

Keyboard shortcuts

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