Version: v6.4.1+incompatible Latest Latest

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

Go to latest
Published: Oct 17, 2020 License: Apache-2.0 Imports: 14 Imported by: 488




This section is empty.


This section is empty.


This section is empty.


type ArchiveReader

type ArchiveReader interface {
	Read(boshman.JobRef, string) (*Job, 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.JobRef, path string) (*Job, error)

type ByName

type ByName []*Job

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 DirReader

type DirReader interface {
	Read(string) (*Job, error)

type DirReaderImpl

type DirReaderImpl struct {
	// contains filtered or unexported fields

func NewDirReaderImpl

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

func (DirReaderImpl) Read

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

type Job

type Job struct {
	Templates    map[string]string
	PackageNames []string
	Packages     []boshpkg.Compilable
	Properties   map[string]PropertyDefinition
	// contains filtered or unexported fields

func NewExtractedJob

func NewExtractedJob(resource Resource, extractedPath string, fs boshsys.FileSystem) *Job

func NewJob

func NewJob(resource Resource) *Job

func (*Job) ArchiveDigest

func (j *Job) ArchiveDigest() string

func (*Job) ArchivePath

func (j *Job) ArchivePath() string

func (*Job) AttachCompilablePackages

func (j *Job) AttachCompilablePackages(packages []boshpkg.Compilable) error

func (*Job) AttachPackages

func (j *Job) AttachPackages(packages []*boshpkg.Package) error

AttachPackages is left for testing convenience

func (*Job) Build

func (j *Job) Build(dev, final ArchiveIndex) error

func (Job) CleanUp

func (j Job) CleanUp() error

func (Job) ExtractedPath

func (j Job) ExtractedPath() string

func (*Job) Finalize

func (j *Job) Finalize(final ArchiveIndex) error

func (Job) FindTemplateByValue

func (j Job) FindTemplateByValue(value string) (string, bool)

func (Job) Fingerprint

func (j Job) Fingerprint() string

func (Job) Name

func (j Job) Name() string

func (*Job) RehashWithCalculator

func (j *Job) RehashWithCalculator(calculator crypto.DigestCalculator, archiveFilePathReader crypto2.ArchiveDigestFilePathReader) (*Job, error)

type PropertyDefinition

type PropertyDefinition struct {
	Description string
	Default     biproperty.Property


Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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