installation

package
v0.0.103 Latest Latest
Warning

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

Go to latest
Published: May 23, 2017 License: Apache-2.0 Imports: 23 Imported by: 80

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompiledPackageRef added in v0.0.57

type CompiledPackageRef struct {
	Name        string
	Version     string
	BlobstoreID string
	SHA1        string
}

type Installation

type Installation interface {
	Target() Target
	Job() InstalledJob
	WithRunningRegistry(boshlog.Logger, biui.Stage, func() error) error
	StartRegistry() error
	StopRegistry() error
}

func NewInstallation

func NewInstallation(
	target Target,
	job InstalledJob,
	manifest biinstallmanifest.Manifest,
	registryServerManager biregistry.ServerManager,
) Installation

type InstalledJob added in v0.0.57

type InstalledJob struct {
	RenderedJobRef
	Path string
}

func NewInstalledJob added in v0.0.57

func NewInstalledJob(ref RenderedJobRef, path string) InstalledJob

type Installer

type Installer interface {
	Install(biinstallmanifest.Manifest, biui.Stage) (Installation, error)
	Cleanup(Installation) error
}

func NewInstaller

func NewInstaller(
	target Target,
	jobRenderer JobRenderer,
	jobResolver JobResolver,
	packageCompiler PackageCompiler,
	blobExtractor blobextract.Extractor,
	registryServerManager biregistry.ServerManager,
	logger boshlog.Logger,
) Installer

type InstallerFactory

type InstallerFactory interface {
	NewInstaller(Target) Installer
}

func NewInstallerFactory

func NewInstallerFactory(
	ui biui.UI,
	runner boshsys.CmdRunner,
	extractor boshcmd.Compressor,
	releaseJobResolver bideplrel.JobResolver,
	uuidGenerator boshuuid.Generator,
	registryServerManager biregistry.ServerManager,
	logger boshlog.Logger,
	fs boshsys.FileSystem,
) InstallerFactory

type JobRenderer added in v0.0.46

type JobRenderer interface {
	RenderAndUploadFrom(biinstallmanifest.Manifest, []bireljob.Job, biui.Stage) ([]RenderedJobRef, error)
}

func NewJobRenderer added in v0.0.46

func NewJobRenderer(
	jobListRenderer bitemplate.JobListRenderer,
	compressor boshcmd.Compressor,
	blobstore boshblob.Blobstore,
) JobRenderer

type JobResolver added in v0.0.46

type JobResolver interface {
	From(biinstallmanifest.Manifest) ([]bireljob.Job, error)
}

func NewJobResolver added in v0.0.46

func NewJobResolver(
	releaseJobResolver bideplrel.JobResolver,
) JobResolver

type PackageCompiler added in v0.0.46

type PackageCompiler interface {
	For([]bireljob.Job, biui.Stage) ([]CompiledPackageRef, error)
}

func NewPackageCompiler added in v0.0.46

func NewPackageCompiler(
	jobDependencyCompiler bistatejob.DependencyCompiler,
	fs boshsys.FileSystem,
) PackageCompiler

type RenderedJobRef added in v0.0.57

type RenderedJobRef struct {
	Name        string
	Version     string
	BlobstoreID string
	SHA1        string
}

func NewRenderedJobRef added in v0.0.57

func NewRenderedJobRef(name, version, blobstoreID, sha1 string) RenderedJobRef

type Target

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

func NewTarget

func NewTarget(path string) Target

func (Target) BlobstorePath

func (t Target) BlobstorePath() string

func (Target) CompiledPackagedIndexPath

func (t Target) CompiledPackagedIndexPath() string

func (Target) JobsPath

func (t Target) JobsPath() string

func (Target) PackagesPath

func (t Target) PackagesPath() string

func (Target) Path

func (t Target) Path() string

func (Target) TemplatesIndexPath

func (t Target) TemplatesIndexPath() string

func (Target) TmpPath added in v0.0.59

func (t Target) TmpPath() string

type TargetProvider

type TargetProvider interface {
	NewTarget() (Target, error)
}

func NewTargetProvider

func NewTargetProvider(
	deploymentStateService biconfig.DeploymentStateService,
	uuidGenerator boshuuid.Generator,
	installationsRootPath string,
) TargetProvider

type Uninstaller added in v0.0.42

type Uninstaller interface {
	Uninstall(Target) error
}

func NewUninstaller added in v0.0.42

func NewUninstaller(fs boshsys.FileSystem, logger boshlog.Logger) Uninstaller

Directories

Path Synopsis
fakeblobextract
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