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 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 }
Click to show internal directories.
Click to hide internal directories.