release

package
v0.0.29 Latest Latest
Warning

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

Go to latest
Published: May 14, 2015 License: Apache-2.0 Imports: 12 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 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