release

package
v0.0.0-...-9a89ba0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2014 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJobReader

func NewJobReader(
	archivePath string,
	extractedJobPath string,
	extractor boshcmd.Compressor,
	fs boshsys.FileSystem,
) *jobReader

func NewPackageRepo

func NewPackageRepo() *packageRepo

func NewReader

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

Types

type Job

type Job struct {
	Name          string
	Fingerprint   string
	SHA1          string
	ExtractedPath string
	Templates     map[string]string
	PackageNames  []string
	Packages      []*Package
	Properties    map[string]PropertyDefinition
}

func (Job) FindTemplateByValue

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

type JobReader

type JobReader interface {
	Read() (Job, error)
}

type Manifest

type Manifest struct {
	Name       string                        `yaml:"name"`
	Templates  map[string]string             `yaml:"templates"`
	Packages   []string                      `yaml:"packages"`
	Properties map[string]PropertyDefinition `yaml:"properties"`
}

Manifest - for reading job.MF

type Package

type Package struct {
	Name          string
	Fingerprint   string
	SHA1          string
	Dependencies  []*Package
	ExtractedPath string
}

func (Package) String

func (p Package) String() string

type PropertyDefinition

type PropertyDefinition struct {
	Description string      `yaml:"description"`
	RawDefault  interface{} `yaml:"default"`
}

func (PropertyDefinition) Default

func (d PropertyDefinition) Default() (interface{}, error)

type Reader

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

type Release

type Release struct {
	Name    string
	Version string

	CommitHash         string
	UncommittedChanges bool

	Jobs          []Job
	Packages      []*Package
	ExtractedPath string
	TarballPath   string
}

func (Release) FindJobByName

func (r Release) FindJobByName(jobName string) (Job, bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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