pkg

package
v0.0.0-...-e2c346a Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2015 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveDependencies

func ResolveDependencies(pkg *bmrel.Package) []*bmrel.Package

Types

type CompiledPackageRecord

type CompiledPackageRecord struct {
	BlobID   string
	BlobSHA1 string
}

type CompiledPackageRepo

type CompiledPackageRepo interface {
	Save(bmrel.Package, CompiledPackageRecord) error
	Find(bmrel.Package) (CompiledPackageRecord, bool, error)
}

func NewCompiledPackageRepo

func NewCompiledPackageRepo(index bmindex.Index) CompiledPackageRepo

type DependencyAnalysis

type DependencyAnalysis interface {
	DeterminePackageCompilationOrder(release bmrel.Release) ([]*bmrel.Package, error)
}

func NewDependencyAnalysis

func NewDependencyAnalysis() DependencyAnalysis

type PackageCompiler

type PackageCompiler interface {
	Compile(*bmrel.Package) error
}

func NewPackageCompiler

func NewPackageCompiler(
	runner boshsys.CmdRunner,
	packagesDir string,
	fileSystem boshsys.FileSystem,
	compressor boshcmd.Compressor,
	blobstore boshblob.Blobstore,
	compiledPackageRepo CompiledPackageRepo,
	packageInstaller PackageInstaller,
) PackageCompiler

type PackageInstaller

type PackageInstaller interface {
	Install(pkg *bmrel.Package, targetDir string) error
}

func NewPackageInstaller

func NewPackageInstaller(repo CompiledPackageRepo, blobExtractor bminstallblob.Extractor) PackageInstaller

type ReleaseCompiler

type ReleaseCompiler interface {
	Compile(release bmrel.Release, manifest bminstallmanifest.Manifest) error
}

func NewReleaseCompiler

func NewReleaseCompiler(
	packagesCompiler ReleasePackagesCompiler,
	templatesCompiler bmtemcomp.TemplatesCompiler,
	logger boshlog.Logger,
) ReleaseCompiler

type ReleasePackagesCompiler

type ReleasePackagesCompiler interface {
	Compile(bmrel.Release) error
}

func NewReleasePackagesCompiler

func NewReleasePackagesCompiler(
	da DependencyAnalysis,
	packageCompiler PackageCompiler,
	eventLogger bmeventlog.EventLogger,
	timeService boshtime.Service,
) ReleasePackagesCompiler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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