jobs

package
v2.185.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FixPermissions

func FixPermissions(fs boshsys.FileSystem, path string, user string, group string) error

FixPermissions changes the permissions of the rendered job templates to be consistent for every job. The path is the root of the job templates directory e.g. /var/vcap/data/jobs/JOBNAME.

Types

type Applier

type Applier interface {
	Prepare(job models.Job) error
	Apply(job models.Job) error
	Configure(job models.Job, jobIndex int) error
	KeepOnly(jobs []models.Job) error
	DeleteSourceBlobs(jobs []models.Job) error
}

func NewRenderedJobApplier

func NewRenderedJobApplier(
	dirProvider directories.Provider,
	jobsBc boshbc.BundleCollection,
	jobSupervisor boshjobsuper.JobSupervisor,
	packageApplierProvider packages.ApplierProvider,
	blobstore boshblob.DigestBlobstore,
	fixPermissions FixPermissionsFunc,
	fs boshsys.FileSystem,
	logger boshlog.Logger,
) Applier

type FixPermissionsFunc

type FixPermissionsFunc func(boshsys.FileSystem, string, string, string) error

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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