jobsrepo

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CJRepository

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

func NewConcreteJobsRepository

func NewConcreteJobsRepository(
	index bpindex.Index,
	logger boshlog.Logger,
) CJRepository

func (CJRepository) Find

func (r CJRepository) Find(job bprel.Job) (JobRecord, bool, error)

func (CJRepository) FindByReleaseJob

func (r CJRepository) FindByReleaseJob(rec ReleaseJobRecord) (JobRecord, bool, error)

func (CJRepository) Save

func (r CJRepository) Save(job bprel.Job, record JobRecord) error

type CRPRepository

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

func NewConcreteRuntimePackagesRepository

func NewConcreteRuntimePackagesRepository(
	index bpindex.Index,
	logger boshlog.Logger,
) CRPRepository

func (CRPRepository) Find

func (CRPRepository) FindAll

func (r CRPRepository) FindAll(rec ReleaseJobRecord) ([]bprel.Package, bool, error)

func (CRPRepository) Save

func (r CRPRepository) Save(rec ReleaseJobRecord, pkgs []bprel.Package) error

func (CRPRepository) SaveAll

func (r CRPRepository) SaveAll(rec ReleaseJobRecord, pkgs []bprel.Package) error

type CTTJRepository

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

func NewConcreteTemplateToJobRepository

func NewConcreteTemplateToJobRepository(
	index bpindex.Index,
	logger boshlog.Logger,
) CTTJRepository

func (CTTJRepository) FindByTemplate

func (r CTTJRepository) FindByTemplate(template bpdep.Template) (ReleaseJobRecord, bool, error)

func (CTTJRepository) SaveForJob

func (r CTTJRepository) SaveForJob(release bprel.Release, job bprel.Job) (ReleaseJobRecord, error)

type JobRecord

type JobRecord struct {
	BlobID string
	SHA1   string
}

type JobsRepository

type JobsRepository interface {
	Find(bprel.Job) (JobRecord, bool, error)
	Save(bprel.Job, JobRecord) error

	FindByReleaseJob(ReleaseJobRecord) (JobRecord, bool, error)
}

JobsRepository maintains list of job source code as blobs

type ReleaseJobRecord

type ReleaseJobRecord struct {
	ReleaseName    string
	ReleaseVersion string

	JobName        string
	JobVersion     string
	JobFingerprint string
}

func (ReleaseJobRecord) String

func (r ReleaseJobRecord) String() string

type RuntimePackagesRepository

type RuntimePackagesRepository interface {
	Find(ReleaseJobRecord) ([]bprel.Package, bool, error)
	Save(ReleaseJobRecord, []bprel.Package) error

	// Keeps association between all possible packages for a job
	FindAll(ReleaseJobRecord) ([]bprel.Package, bool, error)
	SaveAll(ReleaseJobRecord, []bprel.Package) error
}

RuntimePackagesRepository maintains list of releases' packages

type TemplateToJobRepository

type TemplateToJobRepository interface {
	FindByTemplate(bpdep.Template) (ReleaseJobRecord, bool, error)
	SaveForJob(bprel.Release, bprel.Job) (ReleaseJobRecord, error)
}

Jump to

Keyboard shortcuts

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