cmd

package
v0.0.0-...-34d941c Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2015 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

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,
	userConfig biconfig.UserConfig,
	fs boshsys.FileSystem,
	releaseSetParser birelsetmanifest.Parser,
	installationParser biinstallmanifest.Parser,
	deploymentConfigService biconfig.DeploymentConfigService,
	releaseSetValidator birelsetmanifest.Validator,
	installationValidator biinstallmanifest.Validator,
	installerFactory biinstall.InstallerFactory,
	releaseExtractor birel.Extractor,
	releaseManager birel.Manager,
	releaseResolver birelset.Resolver,
	cloudFactory bicloud.Factory,
	agentClientFactory bihttpagent.AgentClientFactory,
	blobstoreFactory biblobstore.Factory,
	deploymentManagerFactory bidepl.ManagerFactory,
	logger boshlog.Logger,
) Cmd

func NewDeployCmd

func NewDeployCmd(
	ui biui.UI,
	userConfig biconfig.UserConfig,
	fs boshsys.FileSystem,
	releaseSetParser birelsetmanifest.Parser,
	installationParser biinstallmanifest.Parser,
	deploymentParser bideplmanifest.Parser,
	legacyDeploymentConfigMigrator biconfig.LegacyDeploymentConfigMigrator,
	deploymentConfigService biconfig.DeploymentConfigService,
	releaseSetValidator birelsetmanifest.Validator,
	installationValidator biinstallmanifest.Validator,
	deploymentValidator bideplmanifest.Validator,
	installerFactory biinstall.InstallerFactory,
	releaseExtractor birel.Extractor,
	releaseManager birel.Manager,
	releaseResolver birelset.Resolver,
	cloudFactory bicloud.Factory,
	agentClientFactory bihttpagent.AgentClientFactory,
	vmManagerFactory bivm.ManagerFactory,
	stemcellExtractor bistemcell.Extractor,
	stemcellManagerFactory bistemcell.ManagerFactory,
	deploymentRecord bidepl.Record,
	blobstoreFactory biblobstore.Factory,
	deployer bidepl.Deployer,
	uuidGenerator uuid.Generator,
	logger boshlog.Logger,
) Cmd

func NewHelpCmd

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

type CommandList

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

func (CommandList) Create

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

type Deployment

type Deployment struct{}

type Factory

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

func NewFactory

func NewFactory(
	userConfig biconfig.UserConfig,
	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