version

package
v0.0.0-...-880cb89 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NoBackup should be used when we cannot find, or do not supply, prior backup metadata.
	NoBackup = -1

	// OneDrive1DataAndMetaFiles is the corso backup format version
	// in which we split from storing just the data to storing both
	// the data and metadata in two files.
	OneDrive1DataAndMetaFiles = 1

	// OneDrive3IsMetaMarker is a small improvement on
	// VersionWithDataAndMetaFiles, but has a marker IsMeta which
	// specifies if the file is a meta file or a data file.
	OneDrive3IsMetaMarker = 3

	// OneDrive4IncludesPermissions includes permissions for folders in the same
	// collection as the folder itself.
	OneDrive4DirIncludesPermissions = 4

	// OneDrive5DirMetaNoName changed the directory metadata file name from
	// <dirname>.dirmeta to just .dirmeta to avoid issues with folder renames
	// during incremental backups.
	OneDrive5DirMetaNoName = 5

	// OneDrive6NameInMeta points to the backup format version where we begin
	// storing files in kopia with their item ID instead of their OneDrive file
	// name.
	OneDrive6NameInMeta = 6

	// OneDriveXLocationRef provides LocationRef information for Exchange,
	// OneDrive, and SharePoint libraries.
	OneDrive7LocationRef = 7

	// All8MigrateUserPNToID marks when we migrated repo refs from the user's
	// PrincipalName to their ID for stability.
	All8MigrateUserPNToID = 8

	// Groups9Update marks when we updated the details that groups and teams use.
	// Older backups don't contain all the info we want in details.
	Groups9Update = 9
)

Various labels to refer to important version changes. Labels don't need 1:1 service:version representation. Add a new label when it's important to mark a delta in behavior that's handled somewhere in the logic. Labels should state their application, the backup version number, and the colloquial purpose of the label.

View Source
const Backup = Groups9Update

Variables

View Source
var Version = "dev"

Functions

func CurrentVersion

func CurrentVersion() string

func IsNoBackup

func IsNoBackup(version int) bool

IsNoBackup returns true if the version implies that no prior backup exists.

Types

This section is empty.

Jump to

Keyboard shortcuts

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