pkg

package
v0.0.119 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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 ByName

type ByName []*Package

func (ByName) Len

func (a ByName) Len() int

func (ByName) Less

func (a ByName) Less(i, j int) bool

func (ByName) Swap

func (a ByName) Swap(i, j int)

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) String

func (p CompiledPackage) String() string

type DirReader

type DirReader interface {
	Read(string) (*Package, error)
}

type DirReaderImpl

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

func NewDirReaderImpl

func NewDirReaderImpl(
	archiveFactory ArchiveFunc,
	srcDirPath string,
	blobsDirPath string,
	fs boshsys.FileSystem,
) DirReaderImpl

func (DirReaderImpl) Read

func (r DirReaderImpl) Read(path string) (*Package, error)

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) Build

func (p *Package) Build(dev, final ArchiveIndex) error

func (*Package) CleanUp

func (p *Package) CleanUp() error

func (*Package) DependencyNames

func (p *Package) DependencyNames() []string

func (*Package) Deps

func (p *Package) Deps() []Compilable

func (*Package) ExtractedPath

func (p *Package) ExtractedPath() string

func (*Package) Finalize

func (p *Package) Finalize(final ArchiveIndex) error

func (Package) Fingerprint

func (p Package) Fingerprint() string

func (*Package) IsCompiled

func (p *Package) IsCompiled() bool

func (Package) Name

func (p Package) Name() string

func (Package) String

func (p Package) String() string

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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