release

package
v0.0.0-...-b9690c5 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DirReader

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

func NewDirReader

func NewDirReader(
	releaseName string,
	releaseVersion string,
	dir string,
	fs boshsys.FileSystem,
	logger boshlog.Logger,
) DirReader

func (DirReader) Close

func (r DirReader) Close() error

func (DirReader) Read

func (r DirReader) Read() (Release, error)

type GitDirReader

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

func NewGitDirReader

func NewGitDirReader(
	dir string,
	fs boshsys.FileSystem,
	logger boshlog.Logger,
) GitDirReader

func (GitDirReader) Close

func (r GitDirReader) Close() error

func (GitDirReader) Read

func (r GitDirReader) Read() (Release, error)

type Job

type Job struct {
	Name    string
	Version string

	Fingerprint string
	SHA1        string

	TarPath string
}

type Package

type Package struct {
	Name    string
	Version string

	Fingerprint string
	SHA1        string

	TarPath string

	// Package dependencies used at compilation of this package
	Dependencies []*Package
}

type Reader

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

type ReaderFactory

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

func NewReaderFactory

func NewReaderFactory(
	downloader bpdload.Downloader,
	extractor bptar.Extractor,
	fs boshsys.FileSystem,
	logger boshlog.Logger,
) ReaderFactory

func (ReaderFactory) NewReader

func (rf ReaderFactory) NewReader(name, version, url string) Reader

func (ReaderFactory) NewTarReader

func (rf ReaderFactory) NewTarReader(url string) Reader

type Release

type Release struct {
	Manifest bprelman.Manifest `json:"-"`

	Name    string
	Version string

	CommitHash         string
	UncommittedChanges bool

	Jobs []Job

	Packages         []*Package
	CompiledPackages []*Package
}

func (Release) ResolvedPackageDependencies

func (r Release) ResolvedPackageDependencies() []*Package

ResolvedPackageDependencies returns list of packages in order such that each package at a higher index only depends on packages at lower indecies.

type TarReader

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

TarReader reads .tgz release file and returns a Release. See unpacked release directory layout at the end of the file.

func NewTarReader

func NewTarReader(
	url string,
	downloader bpdload.Downloader,
	extractor bptar.Extractor,
	fs boshsys.FileSystem,
	logger boshlog.Logger,
) *TarReader

func (TarReader) Close

func (r TarReader) Close() error

func (*TarReader) Read

func (r *TarReader) Read() (Release, error)

Directories

Path Synopsis
job
manifest
Package manifest represents internal structure of a release job.
Package manifest represents internal structure of a release job.
Package manifest represents internal structure of a release.
Package manifest represents internal structure of a release.

Jump to

Keyboard shortcuts

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