Zero Install .NET API 2.20.0
ZeroInstall.Store.Manifests Namespace Reference

Manifests list every file, directory and symlink in the tree to allow for digest/hash calculation. More...

Classes

class  Manifest
 A manifest lists every directory, file and symlink in a directory and contains a digest of each file's content. More...
 
class  ManifestBuilder
 Builds a Manifest for a file system directory. More...
 
class  ManifestFormat
 Abstract class to encapsulate the differences between the different formats that can be used to save and load Manifests. More...
 

Functions

abstract record ManifestElement (string Digest, long Size)
 Base class for directory-element entries (files and symlinks) in a Manifest. More...
 
sealed record ManifestSymlink (string Digest, long Size)
 A symlink entry in a Manifest. More...
 
abstract record ManifestFile(string Digest, UnixTime ModifiedTime, long Size)[Serializable] sealed record ManifestNormalFile (string Digest, UnixTime ModifiedTime, long Size)
 Base class for file entries in a Manifest. More...
 
sealed record ManifestExecutableFile (string Digest, UnixTime ModifiedTime, long Size)
 An executable file entry in a Manifest. More...
 

Detailed Description

Manifests list every file, directory and symlink in the tree to allow for digest/hash calculation.

Function Documentation

◆ ManifestElement()

abstract record ZeroInstall.Store.Manifests.ManifestElement ( string  Digest,
long  Size 
)
pure virtual

Base class for directory-element entries (files and symlinks) in a Manifest.

Parameters
DigestThe digest of the content of the element calculated using the selected digest algorithm.
SizeThe size of the element in bytes.

Formats the element in the Manifest line format.

Parameters
nameThe name of the element.

◆ ManifestExecutableFile()

sealed record ZeroInstall.Store.Manifests.ManifestExecutableFile ( string  Digest,
UnixTime  ModifiedTime,
long  Size 
)

An executable file entry in a Manifest.

Parameters
DigestThe digest of the content of the file calculated using the selected digest algorithm.
ModifiedTimeThe time this file was last modified.
SizeThe size of the file in bytes.

◆ ManifestNormalFile()

abstract record ManifestFile(string Digest, UnixTime ModifiedTime, long Size)[Serializable] sealed record ZeroInstall.Store.Manifests.ManifestNormalFile ( string  Digest,
UnixTime  ModifiedTime,
long  Size 
)
pure virtual

Base class for file entries in a Manifest.

Parameters
DigestThe digest of the content of the file calculated using the selected digest algorithm.
ModifiedTimeThe time this file was last modified.
SizeThe size of the file in bytes.

An non-executable file entry in a Manifest.

Parameters
DigestThe digest of the content of the file calculated using the selected digest algorithm.
ModifiedTimeThe time this file was last modified.
SizeThe size of the file in bytes.

◆ ManifestSymlink()

sealed record ZeroInstall.Store.Manifests.ManifestSymlink ( string  Digest,
long  Size 
)

A symlink entry in a Manifest.

Parameters
DigestThe digest of the link target path.
SizeThe length of the link target path.