environment

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package environment provides a set of functions to get environment variables.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(cfg config.Config) []string

Get the desired set of the environment variables based on kernel cmdline and machine config.

The returned value is a list of strings in the form of "key=value".

func GetCmdline

func GetCmdline(cmdline *procfs.Cmdline, cfg config.Config) []string

GetCmdline the desired set of the environment variables based on kernel cmdline.

Types

This section is empty.

Jump to

Keyboard shortcuts

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