bosh

package
v2.13.1+incompatible Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 19 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoshDirector

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

func NewBoshDirector

func NewBoshDirector(source concourse.Source, commandRunner Runner, cliDirector boshdir.Director, writer io.Writer) BoshDirector

func (BoshDirector) Delete

func (d BoshDirector) Delete(force bool) error

func (BoshDirector) Deploy

func (d BoshDirector) Deploy(manifestBytes []byte, deployParams DeployParams) error

func (BoshDirector) DownloadManifest

func (d BoshDirector) DownloadManifest() ([]byte, error)

func (BoshDirector) ExportReleases

func (d BoshDirector) ExportReleases(targetDirectory string, releases []ReleaseSpec) error

func (BoshDirector) Interpolate

func (d BoshDirector) Interpolate(manifestBytes []byte, interpolateParams InterpolateParams) ([]byte, error)

func (BoshDirector) UploadRelease

func (d BoshDirector) UploadRelease(URL string) error

func (BoshDirector) UploadStemcell

func (d BoshDirector) UploadStemcell(URL string) error

func (BoshDirector) WaitForDeployLock

func (d BoshDirector) WaitForDeployLock() error

type CLICoordinator

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

func NewCLICoordinator

func NewCLICoordinator(source concourse.Source, out io.Writer, proxy Proxy) CLICoordinator

func (CLICoordinator) BasicDeps

func (c CLICoordinator) BasicDeps(writer io.Writer) boshcmd.BasicDeps

func (CLICoordinator) Director

func (c CLICoordinator) Director() (boshdir.Director, error)

func (CLICoordinator) GlobalOpts

func (c CLICoordinator) GlobalOpts(proxyAddr string) boshcmd.BoshOpts

func (CLICoordinator) StartProxy

func (c CLICoordinator) StartProxy() (string, error)

type CommandRunner

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

func NewCommandRunner

func NewCommandRunner(cliCoordinator CLICoordinator) CommandRunner

func (CommandRunner) Execute

func (c CommandRunner) Execute(commandOpts interface{}) error

func (CommandRunner) ExecuteWithDefaultOverride

func (c CommandRunner) ExecuteWithDefaultOverride(commandOpts interface{}, override func(interface{}) (interface{}, error), writer io.Writer) error

func (CommandRunner) ExecuteWithWriter

func (c CommandRunner) ExecuteWithWriter(commandOpts interface{}, writer io.Writer) error

type DeployParams

type DeployParams struct {
	Vars        map[string]interface{}
	VarFiles    map[string]string
	VarsFiles   []string
	OpsFiles    []string
	NoRedact    bool
	DryRun      bool
	MaxInFlight int
	Recreate    bool
	SkipDrain   []string
	Cleanup     bool
	VarsStore   string
}

type DeploymentManifest

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

func NewDeploymentManifest

func NewDeploymentManifest(manifest []byte) (DeploymentManifest, error)

func (DeploymentManifest) Manifest

func (d DeploymentManifest) Manifest() []byte

func (DeploymentManifest) UseReleaseVersion

func (d DeploymentManifest) UseReleaseVersion(releaseName, version string) error

func (DeploymentManifest) UseStemcellVersion

func (d DeploymentManifest) UseStemcellVersion(stemcellName, os, version string) error

type Director

type Director interface {
	Delete(force bool) error
	Deploy(manifestBytes []byte, deployParams DeployParams) error
	Interpolate(manifestBytes []byte, interpolateParams InterpolateParams) ([]byte, error)
	DownloadManifest() ([]byte, error)
	ExportReleases(targetDirectory string, releases []ReleaseSpec) error
	UploadRelease(releaseURL string) error
	UploadStemcell(stemcellURL string) error
	WaitForDeployLock() error
}

type InterpolateParams

type InterpolateParams struct {
	Vars      map[string]interface{}
	VarsFiles []string
	OpsFiles  []string
	VarsStore string
}

type Proxy

type Proxy interface {
	Start(string, string, string) error
	Addr() (string, error)
}

type Release

type Release struct {
	Name string

	Version  string
	FilePath string
}

func NewReleases

func NewReleases(basePath string, releasePathGlobs []string) ([]Release, error)

type ReleaseSpec

type ReleaseSpec struct {
	Name string
	Jobs []string
}

type Runner

type Runner interface {
	ExecuteWithWriter(commandOpts interface{}, writer io.Writer) error
	Execute(commandOpts interface{}) error
	ExecuteWithDefaultOverride(commandOpts interface{}, override func(interface{}) (interface{}, error), writer io.Writer) error
}

type Stemcell

type Stemcell struct {
	Name            string
	OperatingSystem string `yaml:"operating_system"`
	Version         string
	FilePath        string
}

func NewStemcells

func NewStemcells(basePath string, stemcellPathGlobs []string) ([]Stemcell, 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