Documentation ¶
Index ¶
- type ArchiveReader
- type ArchiveReaderImpl
- type ByName
- type Compilable
- type CompiledPackage
- func (p CompiledPackage) ArchivePath() string
- func (p CompiledPackage) ArchiveSHA1() string
- func (p *CompiledPackage) AttachDependencies(compiledPkgs []*CompiledPackage) error
- func (p *CompiledPackage) DependencyNames() []string
- func (p *CompiledPackage) Deps() []Compilable
- func (p CompiledPackage) Fingerprint() string
- func (p *CompiledPackage) IsCompiled() bool
- func (p CompiledPackage) Name() string
- func (p CompiledPackage) OSVersionSlug() string
- func (p *CompiledPackage) RehashWithCalculator(digestCalculator crypto.DigestCalculator, ...) (*CompiledPackage, error)
- func (p CompiledPackage) String() string
- type DirReader
- type DirReaderImpl
- type Package
- func (p *Package) ArchivePath() string
- func (p *Package) ArchiveSHA1() string
- func (p *Package) AttachDependencies(packages []*Package) error
- func (p *Package) Build(dev, final ArchiveIndex) error
- func (p *Package) CleanUp() error
- func (p *Package) DependencyNames() []string
- func (p *Package) Deps() []Compilable
- func (p *Package) ExtractedPath() string
- func (p *Package) Finalize(final ArchiveIndex) error
- func (p Package) Fingerprint() string
- func (p *Package) IsCompiled() bool
- func (p Package) Name() string
- func (p *Package) RehashWithCalculator(calculator crypto.DigestCalculator, ...) (*Package, error)
- func (p Package) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArchiveReader ¶
type ArchiveReader interface {
Read(boshman.PackageRef, string) (*Package, error)
}
type ArchiveReaderImpl ¶
type ArchiveReaderImpl struct {
// contains filtered or unexported fields
}
func NewArchiveReaderImpl ¶
func NewArchiveReaderImpl( extract bool, compressor boshcmd.Compressor, fs boshsys.FileSystem, ) ArchiveReaderImpl
func (ArchiveReaderImpl) Read ¶
func (r ArchiveReaderImpl) Read(ref boshman.PackageRef, path string) (*Package, error)
type Compilable ¶
type Compilable interface { Name() string Fingerprint() string ArchivePath() string ArchiveSHA1() string IsCompiled() bool Deps() []Compilable }
func Sort ¶
func Sort(releasePackages []Compilable) ([]Compilable, error)
Topologically sorts an array of packages
type CompiledPackage ¶
type CompiledPackage struct { Dependencies []*CompiledPackage // todo privatize // contains filtered or unexported fields }
func NewCompiledPackageWithArchive ¶
func NewCompiledPackageWithArchive(name, fp, osVersionSlug, path, sha1 string, dependencyNames []string) *CompiledPackage
func NewCompiledPackageWithoutArchive ¶
func NewCompiledPackageWithoutArchive(name, fp, osVersionSlug, sha1 string, dependencyNames []string) *CompiledPackage
func (CompiledPackage) ArchivePath ¶
func (p CompiledPackage) ArchivePath() string
func (CompiledPackage) ArchiveSHA1 ¶
func (p CompiledPackage) ArchiveSHA1() string
func (*CompiledPackage) AttachDependencies ¶
func (p *CompiledPackage) AttachDependencies(compiledPkgs []*CompiledPackage) error
func (*CompiledPackage) DependencyNames ¶
func (p *CompiledPackage) DependencyNames() []string
func (*CompiledPackage) Deps ¶
func (p *CompiledPackage) Deps() []Compilable
func (CompiledPackage) Fingerprint ¶
func (p CompiledPackage) Fingerprint() string
func (*CompiledPackage) IsCompiled ¶
func (p *CompiledPackage) IsCompiled() bool
func (CompiledPackage) Name ¶
func (p CompiledPackage) Name() string
func (CompiledPackage) OSVersionSlug ¶
func (p CompiledPackage) OSVersionSlug() string
func (*CompiledPackage) RehashWithCalculator ¶
func (p *CompiledPackage) RehashWithCalculator(digestCalculator crypto.DigestCalculator, archiveFileReader crypto2.ArchiveDigestFilePathReader) (*CompiledPackage, error)
func (CompiledPackage) String ¶
func (p CompiledPackage) String() string
type DirReaderImpl ¶
type DirReaderImpl struct {
// contains filtered or unexported fields
}
func NewDirReaderImpl ¶
func NewDirReaderImpl( archiveFactory ArchiveFunc, srcDirPath string, blobsDirPath string, fs boshsys.FileSystem, ) DirReaderImpl
type Package ¶
type Package struct { Dependencies []*Package // contains filtered or unexported fields }
func NewExtractedPackage ¶
func NewExtractedPackage(resource Resource, dependencyNames []string, extractedPath string, fs boshsys.FileSystem) *Package
func NewPackage ¶
func (*Package) ArchivePath ¶
func (*Package) ArchiveSHA1 ¶
func (*Package) AttachDependencies ¶
func (*Package) DependencyNames ¶
func (*Package) Deps ¶
func (p *Package) Deps() []Compilable
func (*Package) ExtractedPath ¶
func (Package) Fingerprint ¶
func (*Package) IsCompiled ¶
func (*Package) RehashWithCalculator ¶
func (p *Package) RehashWithCalculator(calculator crypto.DigestCalculator, archiveFileReader crypto2.ArchiveDigestFilePathReader) (*Package, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.