cmd

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: May 8, 2015 License: Apache-2.0 Imports: 42 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,
) Cmd

func NewDeployCmd

func NewDeployCmd(
	ui biui.UI,
	fs boshsys.FileSystem,
	logger boshlog.Logger,
	deploymentPreparerProvider func(deploymentManifestPath string) DeploymentPreparer,
) 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 struct {
	// contains filtered or unexported fields
}

func NewDeploymentDeleter

func NewDeploymentDeleter(
	ui biui.UI,
	logTag string,
	logger boshlog.Logger,
	fs boshsys.FileSystem,
	deploymentStateService biconfig.DeploymentStateService,
	releaseManager birel.Manager,
	installerFactory biinstall.InstallerFactory,
	cloudFactory bicloud.Factory,
	agentClientFactory bihttpagent.AgentClientFactory,
	blobstoreFactory biblobstore.Factory,
	deploymentManagerFactory bidepl.ManagerFactory,
	releaseSetParser birelsetmanifest.Parser,
	releaseSetValidator birelsetmanifest.Validator,
	releaseExtractor birel.Extractor,
	installationParser biinstallmanifest.Parser,
	installationValidator biinstallmanifest.Validator,
	deploymentManifestPath string,
	tarballProvider bitarball.Provider,

) DeploymentDeleter

func (*DeploymentDeleter) DeleteDeployment

func (c *DeploymentDeleter) DeleteDeployment(stage biui.Stage) (err error)

type DeploymentPreparer

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

func NewDeploymentPreparer

func NewDeploymentPreparer(
	ui biui.UI,
	fs boshsys.FileSystem,
	logger boshlog.Logger,
	logTag string,
	deploymentStateService biconfig.DeploymentStateService,
	legacyDeploymentStateMigrator biconfig.LegacyDeploymentStateMigrator,
	releaseManager birel.Manager,
	deploymentRecord bidepl.Record,
	installerFactory biinstall.InstallerFactory,
	cloudFactory bicloud.Factory,
	stemcellManagerFactory bistemcell.ManagerFactory,
	agentClientFactory bihttpagent.AgentClientFactory,
	vmManagerFactory bivm.ManagerFactory,
	blobstoreFactory biblobstore.Factory,
	deployer bidepl.Deployer,
	releaseSetParser birelsetmanifest.Parser,
	installationParser biinstallmanifest.Parser,
	deploymentParser bideplmanifest.Parser,
	releaseSetValidator birelsetmanifest.Validator,
	installationValidator biinstallmanifest.Validator,
	deploymentValidator bideplmanifest.Validator,
	releaseExtractor birel.Extractor,
	stemcellExtractor bistemcell.Extractor,
	deploymentManifestPath string,
	tarballProvider bitarball.Provider,

) 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 boshtime.Service,
	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 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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