birdwatcherarchive

package
v0.0.0-...-0117b6e Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Overview

Package birdwatcherarchive contains the struct that is called when the package information is stored in birdwatcher

Index

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) Name

func (ba *PackageArchive) Name() string

Name of archive type

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

Jump to

Keyboard shortcuts

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