wacz

package
v1.0.0-beta Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIsWaczFile

func CheckIsWaczFile(filePath string) bool

CheckIsWaczFile checks if a file is a wacz file.

func GetVerifiedMetadata

func GetVerifiedMetadata(filePath string, anonKeys, domains []*common.AllowedKey) (map[string]any, error)

Types

type WaczFileData

type WaczFileData struct {
	DigestData  *waczDigestData
	PackageData *waczPackageData
	UserAgent   string
	KeyName     string
}

func ReadAndVerifyWaczMetadata

func ReadAndVerifyWaczMetadata(filePath string, anonKeys, domains []*common.AllowedKey) (*WaczFileData, error)

ReadAndVerifyWaczMetadata reads and verifies the metadata of a wacz file.

Jump to

Keyboard shortcuts

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