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.
Click to show internal directories.
Click to hide internal directories.