sysparams

package
v0.0.0-...-263a040 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SystemParams

type SystemParams struct {

	// Homedirs is the comma-delimited list of user specified home
	// directories that should be mounted.
	Homedirs string
	// contains filtered or unexported fields
}

SystemParams manages certain system configuration parameters aspects like the homedirs configuration that must be available for other binaries, as snap-confine.

func Open

func Open(rootdir string) (*SystemParams, error)

Open either reads the existing file at <rootdir>/var/lib/snapd/system-params or in case the file does not exist, it will initialize and return a new SystemParams structure.

func (*SystemParams) Write

func (ssp *SystemParams) Write() error

Write updates the system-params file with the values in the SystemParams instance.

Jump to

Keyboard shortcuts

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