helper

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: AGPL-3.0 Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ReleaseChannelKey     = "core/releaseChannel"
	ReleaseChannelJSONKey = "core.releaseChannel"
)

Release Channel Configuration Keys.

View Source
const (
	ReleaseChannelStable  = "stable"
	ReleaseChannelBeta    = "beta"
	ReleaseChannelStaging = "staging"
	ReleaseChannelSupport = "support"
)

Release Channels.

Variables

View Source
var (
	// VerificationConfig holds the complete verification configuration for the registry.
	VerificationConfig = map[string]*updater.VerificationOptions{
		"": {
			TrustStore:     BinarySigningTrustStore,
			DownloadPolicy: updater.SignaturePolicyRequire,
			DiskLoadPolicy: updater.SignaturePolicyWarn,
		},
		"all/intel/": nil,
	}

	// BinarySigningKeys holds the signing keys in text format.
	BinarySigningKeys = []string{

		"recipient:public-ed25519-key:safing-code-signing-key-1:92bgBLneQUWrhYLPpBDjqHbpFPuNVCPAaivQ951A4aq72HcTiw7R1QmPJwFM1mdePAvEVDjkeb8S4fp2pmRCsRa8HrCvWQEjd88rfZ6TznJMfY4g7P8ioGFjfpyx2ZJ8WCZJG5Qt4Z9nkabhxo2Nbi3iywBTYDLSbP5CXqi7jryW7BufWWuaRVufFFzhwUC2ryWFWMdkUmsAZcvXwde4KLN9FrkWAy61fGaJ8GCwGnGCSitANnU2cQrsGBXZzxmzxwrYD",

		"recipient:public-ed25519-key:safing-code-signing-key-2:92bgBLneQUWrhYLPpBDjqHbPC2d1o5JMyZFdavWBNVtdvbPfzDewLW95ScXfYPHd3QvWHSWCtB4xpthaYWxSkK1kYiGp68DPa2HaU8yQ5dZhaAUuV4Kzv42pJcWkCeVnBYqgGBXobuz52rFqhDJy3rz7soXEmYhJEJWwLwMeioK3VzN3QmGSYXXjosHMMNC76rjufSoLNtUQUWZDSnHmqbuxbKMCCsjFXUGGhtZVyb7bnu7QLTLk6SKHBJDMB6zdL9sw3",
	}

	// BinarySigningTrustStore is an in-memory trust store with the signing keys.
	BinarySigningTrustStore = jess.NewMemTrustStore()
)

Functions

func AutoUnpackUpdates added in v0.6.16

func AutoUnpackUpdates() []string

AutoUnpackUpdates returns assets that need unpacking.

func EnsureChromeSandboxPermissions

func EnsureChromeSandboxPermissions(reg *updater.ResourceRegistry) error

EnsureChromeSandboxPermissions makes sure the chrome-sandbox distributed by our app-electron package has the SUID bit set on systems that do not allow unprivileged CLONE_NEWUSER (clone(3)). On non-linux systems or systems that have kernel.unprivileged_userns_clone set to 1 EnsureChromeSandboPermissions is a NO-OP.

func IntelOnly added in v0.7.0

func IntelOnly()

IntelOnly specifies that only intel data is mandatory.

func MandatoryUpdates added in v0.6.16

func MandatoryUpdates() (identifiers []string)

MandatoryUpdates returns mandatory updates that should be loaded on install or reset.

func PlatformIdentifier

func PlatformIdentifier(identifier string) string

PlatformIdentifier converts identifier for the current platform.

func SetIndexes added in v0.6.16

func SetIndexes(registry *updater.ResourceRegistry, releaseChannel string, deleteUnusedIndexes bool) (warning error)

SetIndexes sets the update registry indexes and also configures the registry to use pre-releases based on the channel.

Types

This section is empty.

Jump to

Keyboard shortcuts

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