package
0.102.0
Repository: https://github.com/elastic/elastic-package.git
Documentation: pkg.go.dev

# Functions

CalculatePackageSignatures computes the combined sha1 hash for all the files in the package this is equivalent to doing find <package> -type f -exec <hash tool> {} + | awk '{print $1}' | sort | <hash tool> on the package version directory.
NewPackageVersion function creates an instance of PackageVersion.
NewPackageVersionWithRoot function creates an instance of PackageVersion and defines a custom root.
NewSignedPackageVersion constructs a new SignedPackageVersion struct composed of the package version and signature.
ParsePackageVersions function parses string representation of revisions into structure.

# Structs

PackageVersion represents a package version stored in the package-storage.
SignedPackageVersion represents a package version stored in the package-storage with a calculated signature.

# Type aliases

PackageVersions is an array of PackageVersion.
SignedPackageVersions is an array of SignedPackageVersion.