Documentation ¶
Index ¶
- func New(context context.T, pkgArchive archive.IPackageArchive, ...) packageservice.PackageService
- func NewBirdwatcherArchive(ctx context.T, facadeClient facade.BirdwatcherFacade, ...) packageservice.PackageService
- func NewDocumentArchive(context context.T, facadeClient facade.BirdwatcherFacade, ...) packageservice.PackageService
- type NanoTime
- type PackageService
- func (ds *PackageService) DownloadArtifact(tracer trace.Tracer, packageName string, version string) (string, error)
- func (ds *PackageService) DownloadManifest(tracer trace.Tracer, packageName string, version string) (string, string, bool, error)
- func (ds *PackageService) GetPackageArnAndVersion(packageName string, packageVersion string) (name string, version string)
- func (ds *PackageService) PackageServiceName() string
- func (ds *PackageService) ReportResult(tracer trace.Tracer, result packageservice.PackageResult) error
- type TimeImpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(context context.T, pkgArchive archive.IPackageArchive, facadeClient facade.BirdwatcherFacade, manifestCache packageservice.ManifestCache, name string) packageservice.PackageService
New constructor for PackageService
func NewBirdwatcherArchive ¶
func NewBirdwatcherArchive(ctx context.T, facadeClient facade.BirdwatcherFacade, manifestCache packageservice.ManifestCache, context map[string]string) packageservice.PackageService
func NewDocumentArchive ¶
func NewDocumentArchive(context context.T, facadeClient facade.BirdwatcherFacade, manifestCache packageservice.ManifestCache) packageservice.PackageService
Types ¶
type NanoTime ¶
type NanoTime interface {
NowUnixNano() int64
}
NanoTime is helper interface for mocking time
type PackageService ¶
PackageService is the concrete type for Birdwatcher PackageService
func (*PackageService) DownloadArtifact ¶
func (ds *PackageService) DownloadArtifact(tracer trace.Tracer, packageName string, version string) (string, error)
DownloadArtifact downloads the platform matching artifact specified in the manifest
func (*PackageService) DownloadManifest ¶
func (ds *PackageService) DownloadManifest(tracer trace.Tracer, packageName string, version string) (string, string, bool, error)
DownloadManifest downloads the manifest for a given version (or latest) and returns the agent version specified in manifest
func (*PackageService) GetPackageArnAndVersion ¶
func (ds *PackageService) GetPackageArnAndVersion(packageName string, packageVersion string) (name string, version string)
func (*PackageService) PackageServiceName ¶
func (ds *PackageService) PackageServiceName() string
func (*PackageService) ReportResult ¶
func (ds *PackageService) ReportResult(tracer trace.Tracer, result packageservice.PackageResult) error
ReportResult sents back the result of the install/upgrade/uninstall run back to Birdwatcher
Click to show internal directories.
Click to hide internal directories.