archive

package
v0.0.0-...-f6ab670 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Overview

package archive holds the resources for the archive

Index

Constants

View Source
const (
	PackageArchiveBirdwatcher = "birdwatcher"
	PackageArchiveDocument    = "document"
)

Variables

This section is empty.

Functions

func FormKey

func FormKey(packageName string, packageVersion string) string

func ParseManifest

func ParseManifest(data *[]byte) (*birdwatcher.Manifest, error)

Types

type File

type File struct {
	Name string
	Info birdwatcher.FileInfo
}

type IPackageArchive

type IPackageArchive interface {
	Name() string
	//TODO: Send this by address or reference
	SetManifestCache(cache packageservice.ManifestCache)
	SetResource(packageName string, version string, manifest *birdwatcher.Manifest)
	GetResourceVersion(packageName string, packageVersion string) (name string, version string)
	GetResourceArn(packageName string, version string) string
	GetFileDownloadLocation(file *File, packageName string, version string) (string, error)
	DownloadArchiveInfo(tracer trace.Tracer, packageName string, version string) (string, error)
	ReadManifestFromCache(packageArn string, version string) (*birdwatcher.Manifest, error)
	WriteManifestToCache(packageArn string, version string, manifest []byte) error
	DeleteCachedManifest(packageArn string, version string) error
}

Jump to

Keyboard shortcuts

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