jobs

package
v2.174.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2018 License: Apache-2.0 Imports: 14 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
}

func NewRenderedJobApplier

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

type FixPermissionsFunc

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

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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