Documentation
¶
Index ¶
- Constants
- func CanonicalManifest(m model.Manifest) ([]byte, error)
- func CopyFile(src, dst string) error
- func CopyFileHashed(src, dst string) (string, error)
- func CopyFileHashedLimit(src, dst string, maxBytes int64) (string, error)
- func FileSHA256(path string) (string, error)
- func ManifestStateSHA256(m model.Manifest) string
- func ReadBundle(path string) (model.Manifest, map[string][]byte, []byte, string, error)
- func ReadManifest(path string) (model.Manifest, error)
- func StableCopy(path, dir string) (string, string, int64, string, error)
- func StableRead(path string) ([]byte, string, error)
- func StreamFiles(path string, fn func(name string, data []byte) error) error
- func StreamManifestFiles(path string, fn func(mf model.ManifestFile, r io.Reader) error) error
- func StreamReaders(path string, fn func(name string, size int64, r io.Reader) error) error
- func ValidateManifestBudgets(manifest model.Manifest) error
- func ValidateManifestSemantics(m model.Manifest) error
- func WalkBundle(path string, fn func(name string, size int64, r io.Reader) error) error
- func Write(path string, b Bundle) (string, error)
- type Bundle
- type Options
- type UnsupportedSchemaError
- type WriteInfo
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func CopyFileHashed ¶
func CopyFileHashedLimit ¶
func FileSHA256 ¶
func ManifestStateSHA256 ¶
func ReadBundle ¶
func StreamManifestFiles ¶
func StreamReaders ¶
func ValidateManifestBudgets ¶
func WalkBundle ¶
Types ¶
type Bundle ¶
type Bundle struct {
Manifest model.Manifest
Files []model.CapturedFile
TempDir string
}
type UnsupportedSchemaError ¶
type UnsupportedSchemaError struct {
Schema string
}
func (UnsupportedSchemaError) Error ¶
func (e UnsupportedSchemaError) Error() string
Click to show internal directories.
Click to hide internal directories.