release

package
v0.0.54 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2015 License: Apache-2.0 Imports: 14 Imported by: 139

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Extractor

type Extractor interface {
	Extract(releaseTarballPath string) (Release, error)
}

func NewExtractor

func NewExtractor(
	fs boshsys.FileSystem,
	compressor boshcmd.Compressor,
	validator Validator,
	logger boshlog.Logger,
) Extractor

type Fetcher added in v0.0.37

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

func NewFetcher added in v0.0.37

func NewFetcher(tarballProvider tarball.Provider, releaseExtractor Extractor, releaseManager Manager) Fetcher

func (Fetcher) DownloadAndExtract added in v0.0.37

func (f Fetcher) DownloadAndExtract(releaseRef manifest.ReleaseRef, stage ui.Stage) error

type Manager

type Manager interface {
	Add(Release)
	List() []Release
	Find(name string) (releases Release, found bool)
	DeleteAll() error
}

func NewManager

func NewManager(
	logger boshlog.Logger,
) Manager

type Reader

type Reader interface {
	Read() (Release, error)
}

func NewReader

func NewReader(
	tarFilePath string,
	extractedReleasePath string,
	fs boshsys.FileSystem,
	extractor boshcmd.Compressor,
) Reader

type Release

type Release interface {
	Name() string
	Version() string
	Jobs() []bireljob.Job
	Packages() []*birelpkg.Package
	FindJobByName(jobName string) (job bireljob.Job, found bool)
	Delete() error
	Exists() bool
}

func NewRelease

func NewRelease(
	name string,
	version string,
	jobs []bireljob.Job,
	packages []*birelpkg.Package,
	extractedPath string,
	fs boshsys.FileSystem,
) Release

type Validator

type Validator interface {
	Validate(release Release) error
}

func NewValidator

func NewValidator(fs boshsys.FileSystem) Validator

Directories

Path Synopsis
job
set

Jump to

Keyboard shortcuts

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