job

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: 9 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(
	dir string,
	fs boshsys.FileSystem,
	logger boshlog.Logger,
) DirReader

func (DirReader) Close

func (r DirReader) Close() error

func (DirReader) Read

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

type Job

type Job struct {
	Manifest bpreljobman.Manifest `json:"-"`

	Name        string
	Description string

	MonitTemplate Template

	Templates []Template

	DeploymentJobTemplates []bpdep.Template

	// Runtime package dependencies for this job
	Packages []Package

	Properties []Property
}

type Package

type Package struct {
	Name string
}

type Property

type Property struct {
	Name        string
	Description string

	Default interface{}

	Example  interface{}
	Examples []PropertyExample
}

type PropertyExample

type PropertyExample struct {
	Description string
	Value       interface{}
}

type Reader

type Reader interface {
	Read() (Job, 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(url string) Reader

func (ReaderFactory) NewTarReader

func (rf ReaderFactory) NewTarReader(url string) Reader

type TarReader

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

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

func NewTarReader

func NewTarReader(
	path 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() (Job, error)

type Template

type Template struct {
	SrcPathEnd string
	DstPathEnd string // End of the path on the VM

	Path string
}

Directories

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

Jump to

Keyboard shortcuts

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