snapdenv

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package snapdenv presents common environment (and related) options for snapd components.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MockPreseeding

func MockPreseeding(preseeding bool) (restore func())

func MockTesting

func MockTesting(testing bool) (restore func())

func MockUseStagingStore

func MockUseStagingStore(useStaging bool) (restore func())

func Preseeding

func Preseeding() bool

Preseeding returns whether snapd is preseeding, i.e. performing a partial first boot updating only filesystem state inside a chroot.

func SetUserAgentFromVersion

func SetUserAgentFromVersion(version string, probeForceDevMode func() bool, extraProds ...string) (restore func())

SetUserAgentFromVersion sets up a user-agent string.

func Testing

func Testing() bool

Testing returns whether snapd components are under testing.

func UseStagingStore

func UseStagingStore() bool

UseStagingStore returns whether snapd compontents should use the staging store.

func UserAgent

func UserAgent() string

UserAgent returns the user-agent string setup through SetUserAgentFromVersion.

Types

This section is empty.

Jump to

Keyboard shortcuts

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