provisioner

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

Documentation

Index

Constants

View Source
const (
	BlobstoreConfigTypeLocal = "local"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobstoreConfig

type BlobstoreConfig struct {
	Type    string                 `json:"provider"`
	Options map[string]interface{} `json:"options"`
}

func (BlobstoreConfig) AsMap

func (c BlobstoreConfig) AsMap() map[string]interface{}

AsMap is used to populate agent infrastructure configuration

func (BlobstoreConfig) LocalPath

func (c BlobstoreConfig) LocalPath() string

func (BlobstoreConfig) Validate

func (c BlobstoreConfig) Validate() error

type BlobstoreProvisioner

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

func NewBlobstoreProvisioner

func NewBlobstoreProvisioner(
	fs boshsys.FileSystem,
	blobstoreConfig BlobstoreConfig,
	logger boshlog.Logger,
) BlobstoreProvisioner

func (BlobstoreProvisioner) Provision

func (p BlobstoreProvisioner) Provision() error

type DeploymentProvisioner

type DeploymentProvisioner interface {
	Provision() error
}

type DeploymentProvisionerConfig

type DeploymentProvisionerConfig struct {
	// If manifest path is empty, release compilation and job provisioning will be skipped
	ManifestPath string `json:"manifest_path"`
}

type ReleaseCompiler

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

func NewReleaseCompiler

func NewReleaseCompiler(
	releaseReaderFactory bprel.ReaderFactory,
	packagesCompilerFactory bppkgscomp.ConcretePackagesCompilerFactory,
	templatesCompiler bptplcomp.TemplatesCompiler,
	vmProvisioner bpvm.Provisioner,
	eventLog bpeventlog.Log,
	logger boshlog.Logger,
) ReleaseCompiler

func (ReleaseCompiler) Compile

func (p ReleaseCompiler) Compile(instance bpdep.Instance, depReleases []bpdep.Release) error

type SingleConfiguredVMProvisioner

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

SingleConfiguredVMProvisioner interprets deployment manifest and configures 1 VM just like regular BOSH VM.

func NewSingleConfiguredVMProvisioner

func NewSingleConfiguredVMProvisioner(
	manifestPath string,
	deploymentReaderFactory bpdep.ReaderFactory,
	vmProvisioner bpvm.Provisioner,
	releaseCompiler ReleaseCompiler,
	instanceProvisioner bpinstance.Provisioner,
	eventLog bpeventlog.Log,
	logger boshlog.Logger,
) SingleConfiguredVMProvisioner

func (SingleConfiguredVMProvisioner) Provision

func (p SingleConfiguredVMProvisioner) Provision() error

type SingleNonConfiguredVMProvisioner

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

SingleNonConfiguredVMProvisioner configures 1 VM as a regular empty BOSH VM.

func NewSingleNonConfiguredVMProvisioner

func NewSingleNonConfiguredVMProvisioner(
	vmProvisioner bpvm.Provisioner,
	eventLog bpeventlog.Log,
	logger boshlog.Logger,
) SingleNonConfiguredVMProvisioner

func (SingleNonConfiguredVMProvisioner) Provision

type SingleVMProvisionerFactory

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

func NewSingleVMProvisionerFactory

func NewSingleVMProvisionerFactory(
	deploymentReaderFactory bpdep.ReaderFactory,
	deploymentProvisionerConfig DeploymentProvisionerConfig,
	vmProvisioner bpvm.Provisioner,
	releaseCompiler ReleaseCompiler,
	instanceProvisioner bpinstance.Provisioner,
	eventLog bpeventlog.Log,
	logger boshlog.Logger,
) SingleVMProvisionerFactory

func (SingleVMProvisionerFactory) NewSingleVMProvisioner

func (f SingleVMProvisionerFactory) NewSingleVMProvisioner() DeploymentProvisioner

Jump to

Keyboard shortcuts

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