bosh

package
v2.6.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2017 License: Apache-2.0 Imports: 16 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) BoshDirector

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 []string) 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

type CLICoordinator

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

func NewCLICoordinator

func NewCLICoordinator(source concourse.Source, out io.Writer) 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() boshcmd.BoshOpts

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{}
	VarsFiles []string
	OpsFiles  []string
	NoRedact  bool
	DryRun    bool
	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 {
	Deploy(manifestBytes []byte, deployParams DeployParams) error
	Interpolate(manifestBytes []byte, interpolateParams InterpolateParams) ([]byte, error)
	DownloadManifest() ([]byte, error)
	ExportReleases(targetDirectory string, releases []string) error
	UploadRelease(releaseURL string) error
	UploadStemcell(stemcellURL string) error
}

type InterpolateParams

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

type Release

type Release struct {
	Name string

	Version  string
	FilePath string
}

func NewReleases

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

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