extrafile

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Forward

func Forward(extras *[]*os.File, env *[]string, prefix string)

Forward an existing prefix into a subprocesses ExtraFiles and Env parameters.

func Inject

func Inject(extras *[]*os.File, env *[]string, prefix string, files ...*os.File)

Inject files and environment for a subprocess

func Load

func Load(prefix string) []*os.File

Load the passed in files using the prefix from within the subprocess. If there are no files, it will return an empty list of files. This process is also known as socket activation.

See the following references for more details: - https://man.archlinux.org/man/sd_listen_fds.3.en - https://mgdm.net/weblog/systemd-socket-activation/ - https://vincent.bernat.ch/en/blog/2018-systemd-golang-socket-activation

Types

This section is empty.

Jump to

Keyboard shortcuts

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