cmd

package
v0.0.71 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2015 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

View Source
const VersionLabel = "[DEV BUILD]"

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd interface {
	Name() string

	Meta() Meta

	Run(biui.Stage, []string) error
}

func NewDeleteCmd

func NewDeleteCmd(
	ui biui.UI,
	fs boshsys.FileSystem,
	logger boshlog.Logger,
	deploymentDeleterProvider func(deploymentManifestString string) (DeploymentDeleter, error),
) Cmd

func NewDeployCmd

func NewDeployCmd(
	ui biui.UI,
	fs boshsys.FileSystem,
	logger boshlog.Logger,
	deploymentPreparerProvider func(deploymentManifestPath string) (DeploymentPreparer, error),
) Cmd

func NewHelpCmd

func NewHelpCmd(ui biui.UI, commandList CommandList) Cmd

func NewVersionCmd

func NewVersionCmd(ui biui.UI) Cmd

type CommandList

type CommandList map[string](func() (Cmd, error))

func (CommandList) Create

func (cl CommandList) Create(name string) (Cmd, error)

type DeploymentDeleter

type DeploymentDeleter interface {
	DeleteDeployment(stage biui.Stage) (err error)
}

func NewDeploymentDeleter

func NewDeploymentDeleter(
	ui biui.UI,
	logTag string,
	logger boshlog.Logger,
	deploymentStateService biconfig.DeploymentStateService,
	releaseManager birel.Manager,
	cloudFactory bicloud.Factory,
	agentClientFactory bihttpagent.AgentClientFactory,
	blobstoreFactory biblobstore.Factory,
	deploymentManagerFactory bidepl.ManagerFactory,
	deploymentManifestPath string,
	cpiInstaller bicpirel.CpiInstaller,
	cpiUninstaller biinstall.Uninstaller,
	releaseFetcher birel.Fetcher,
	releaseSetAndInstallationManifestParser ReleaseSetAndInstallationManifestParser,
	tempRootConfigurator TempRootConfigurator,
	targetProvider biinstall.TargetProvider,
) DeploymentDeleter

type DeploymentManifestParser added in v0.0.37

type DeploymentManifestParser struct {
	DeploymentParser    bideplmanifest.Parser
	DeploymentValidator bideplmanifest.Validator
	ReleaseManager      birel.Manager
}

func (DeploymentManifestParser) GetDeploymentManifest added in v0.0.37

func (y DeploymentManifestParser) GetDeploymentManifest(deploymentManifestPath string, releaseSetManifest birelsetmanifest.Manifest, stage biui.Stage) (bideplmanifest.Manifest, error)

type DeploymentPreparer

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

func NewDeploymentPreparer

func NewDeploymentPreparer(
	ui biui.UI,
	logger boshlog.Logger,
	logTag string,
	deploymentStateService biconfig.DeploymentStateService,
	legacyDeploymentStateMigrator biconfig.LegacyDeploymentStateMigrator,
	releaseManager birel.Manager,
	deploymentRecord bidepl.Record,
	cloudFactory bicloud.Factory,
	stemcellManagerFactory bistemcell.ManagerFactory,
	agentClientFactory bihttpagent.AgentClientFactory,
	vmManagerFactory bivm.ManagerFactory,
	blobstoreFactory biblobstore.Factory,
	deployer bidepl.Deployer,
	deploymentManifestPath string,
	cpiInstaller bicpirel.CpiInstaller,
	releaseFetcher birel.Fetcher,
	stemcellFetcher bistemcell.Fetcher,
	releaseSetAndInstallationManifestParser ReleaseSetAndInstallationManifestParser,
	deploymentManifestParser DeploymentManifestParser,
	tempRootConfigurator TempRootConfigurator,
	targetProvider biinstall.TargetProvider,
) DeploymentPreparer

func (*DeploymentPreparer) PrepareDeployment

func (c *DeploymentPreparer) PrepareDeployment(stage biui.Stage) (err error)

type Factory

type Factory interface {
	CreateCommand(name string) (Cmd, error)
}

func NewFactory

func NewFactory(
	fs boshsys.FileSystem,
	ui biui.UI,
	timeService clock.Clock,
	logger boshlog.Logger,
	uuidGenerator boshuuid.Generator,
	workspaceRootPath string,
) Factory

type Meta

type Meta struct {
	Synopsis string
	Usage    string
	Env      map[string]MetaEnv
}

type MetaEnv

type MetaEnv struct {
	Example string
	Default string

	Description string
}

type ReleaseSetAndInstallationManifestParser added in v0.0.37

type ReleaseSetAndInstallationManifestParser struct {
	ReleaseSetParser   birelsetmanifest.Parser
	InstallationParser biinstallmanifest.Parser
}

func (ReleaseSetAndInstallationManifestParser) ReleaseSetAndInstallationManifest added in v0.0.37

func (y ReleaseSetAndInstallationManifestParser) ReleaseSetAndInstallationManifest(deploymentManifestPath string) (birelsetmanifest.Manifest, biinstallmanifest.Manifest, error)

type Runner

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

func NewRunner

func NewRunner(factory Factory) *Runner

func (*Runner) Run

func (r *Runner) Run(stage biui.Stage, args ...string) error

type TempRootConfigurator added in v0.0.59

type TempRootConfigurator interface {
	PrepareAndSetTempRoot(path string, logger logger.Logger) error
}

func NewTempRootConfigurator added in v0.0.59

func NewTempRootConfigurator(fs boshsys.FileSystem) TempRootConfigurator

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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