packagesrepo

package
v0.0.0-...-b9690c5 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPRepository

type CPRepository struct {
	// contains filtered or unexported fields
}

func NewConcretePackagesRepository

func NewConcretePackagesRepository(
	index bpindex.Index,
	logger boshlog.Logger,
) CPRepository

func (CPRepository) Find

func (CPRepository) Save

func (r CPRepository) Save(pkg bprel.Package, record PackageRecord) error

type PackageRecord

type PackageRecord struct {
	BlobID string
	SHA1   string
}

type PackagesRepository

type PackagesRepository interface {
	Find(bprel.Package) (PackageRecord, bool, error)
	Save(bprel.Package, PackageRecord) error
}

PackagesRepository maintains list of package source code as blobs.

Jump to

Keyboard shortcuts

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