Documentation ¶
Overview ¶
Package birdwatcherarchive contains the struct that is called when the package information is stored in birdwatcher
Index ¶
- func New(facadeClientSession facade.BirdwatcherFacade, context map[string]string) archive.IPackageArchive
- type PackageArchive
- func (ba *PackageArchive) DeleteCachedManifest(packageArn string, version string) error
- func (ba *PackageArchive) DownloadArchiveInfo(tracer trace.Tracer, packageName string, version string) (string, error)
- func (ba *PackageArchive) GetFileDownloadLocation(file *archive.File, packageName string, version string) (string, error)
- func (ba *PackageArchive) GetResourceArn(packageName string, version string) string
- func (ba *PackageArchive) GetResourceVersion(packageName string, packageVersion string) (name string, version string)
- func (ba *PackageArchive) Name() string
- func (ba *PackageArchive) ReadManifestFromCache(packageArn string, version string) (*birdwatcher.Manifest, error)
- func (ba *PackageArchive) SetManifestCache(manifestCache packageservice.ManifestCache)
- func (ba *PackageArchive) SetResource(packageName string, version string, manifest *birdwatcher.Manifest)
- func (ba *PackageArchive) WriteManifestToCache(packageArn string, version string, manifest []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(facadeClientSession facade.BirdwatcherFacade, context map[string]string) archive.IPackageArchive
New is a constructor for PackageArchive struct
Types ¶
type PackageArchive ¶
type PackageArchive struct {
// contains filtered or unexported fields
}
func (*PackageArchive) DeleteCachedManifest ¶
func (ba *PackageArchive) DeleteCachedManifest(packageArn string, version string) error
DeleteCachedManifest Deletes manifest from cache
func (*PackageArchive) DownloadArchiveInfo ¶
func (ba *PackageArchive) DownloadArchiveInfo(tracer trace.Tracer, packageName string, version string) (string, error)
DownloadArtifactInfo downloads the manifest for the original birwatcher service
func (*PackageArchive) GetFileDownloadLocation ¶
func (ba *PackageArchive) GetFileDownloadLocation(file *archive.File, packageName string, version string) (string, error)
GetFileDownloadLocation obtains the location of the file in the archive
func (*PackageArchive) GetResourceArn ¶
func (ba *PackageArchive) GetResourceArn(packageName string, version string) string
GetResourceArn returns the packageArn that is found i nthe manifest file
func (*PackageArchive) GetResourceVersion ¶
func (ba *PackageArchive) GetResourceVersion(packageName string, packageVersion string) (name string, version string)
GetResourceVersion returns the version
func (*PackageArchive) ReadManifestFromCache ¶
func (ba *PackageArchive) ReadManifestFromCache(packageArn string, version string) (*birdwatcher.Manifest, error)
ReadManifestFromCache to read the manifest from cache Birdwatcher packages store the manifest with the package version
func (*PackageArchive) SetManifestCache ¶
func (ba *PackageArchive) SetManifestCache(manifestCache packageservice.ManifestCache)
SetManifestCache sets the manifest cache
func (*PackageArchive) SetResource ¶
func (ba *PackageArchive) SetResource(packageName string, version string, manifest *birdwatcher.Manifest)
SetResource sets the package name and the manifest version
func (*PackageArchive) WriteManifestToCache ¶
func (ba *PackageArchive) WriteManifestToCache(packageArn string, version string, manifest []byte) error
WriteManifestToCache stores the manifest in cache