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) 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) 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
type Compilable ¶
type Compilable interface {
Name() string
Fingerprint() string
ArchivePath() string
ArchiveSHA1() string
IsCompiled() bool
Deps() []Compilable
}
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) Fingerprint ¶
func (p CompiledPackage) Fingerprint() string
func (*CompiledPackage) IsCompiled ¶
func (p *CompiledPackage) IsCompiled() bool
func (CompiledPackage) OSVersionSlug ¶
func (p CompiledPackage) OSVersionSlug() 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 NewPackage(resource Resource, dependencyNames []string) *Package
func (*Package) ArchivePath ¶
func (p *Package) ArchivePath() string
func (*Package) ArchiveSHA1 ¶
func (p *Package) ArchiveSHA1() string
func (*Package) AttachDependencies ¶
func (p *Package) AttachDependencies(packages []*Package) error
func (*Package) DependencyNames ¶
func (p *Package) DependencyNames() []string
func (*Package) ExtractedPath ¶
func (p *Package) ExtractedPath() string
func (Package) Fingerprint ¶
func (p Package) Fingerprint() string
func (*Package) IsCompiled ¶
func (p *Package) IsCompiled() bool
Source Files
¶
Click to show internal directories.
Click to hide internal directories.