jobs

package
Version: v2.367.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: Apache-2.0 Imports: 14 Imported by: 3

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(
	blobstore blobstore_delegator.BlobstoreDelegator,
	dirProvider directories.Provider,
	jobsBc boshbc.BundleCollection,
	jobSupervisor boshjobsuper.JobSupervisor,
	packageApplierProvider packages.ApplierProvider,
	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