updatepayload

package
v2.17.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package updatepayload describes platform files shipped beside the Core binary that must stay in sync when an unmanaged install updates itself.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InvalidArchiveMember

func InvalidArchiveMember(files []File, member string) bool

InvalidArchiveMember reports malformed names that claim a configured payload root.

func RelativeArchivePath

func RelativeArchivePath(archiveRoot, member string) (string, bool)

RelativeArchivePath validates member and returns its path below archiveRoot.

func ResolveInstallPath

func ResolveInstallPath(binaryPath, installPath string) (string, bool)

ResolveInstallPath resolves a configured path relative to the binary directory.

Types

type File

type File struct {
	SourcePath  string
	ArchivePath string
	InstallPath string
	Mode        os.FileMode
}

File is one exact file in a platform update payload. SourcePath uses native separators; archive and install paths are slash-separated descendants.

func MatchArchiveFile

func MatchArchiveFile(files []File, member string) (File, bool)

MatchArchiveFile returns the exact configured file represented by member.

Jump to

Keyboard shortcuts

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