cmd

package
Version: v6.4.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2020 License: Apache-2.0 Imports: 67 Imported by: 71

Documentation

Index

Constants

View Source
const VersionLabel = "[DEV BUILD]"

Variables

View Source
var InstanceTableHeader = InstanceTableValues{
	Name:    boshtbl.NewValueString("Instance"),
	Process: boshtbl.NewValueString("Process"),

	ProcessState: boshtbl.NewValueString("Process State"),
	AZ:           boshtbl.NewValueString("AZ"),
	VMType:       boshtbl.NewValueString("VM Type"),
	Active:       boshtbl.NewValueString("Active"),
	IPs:          boshtbl.NewValueString("IPs"),
	Deployment:   boshtbl.NewValueString("Deployment"),

	State:           boshtbl.NewValueString("State"),
	VMCID:           boshtbl.NewValueString("VM CID"),
	DiskCIDs:        boshtbl.NewValueString("Disk CIDs"),
	AgentID:         boshtbl.NewValueString("Agent ID"),
	Index:           boshtbl.NewValueString("Index"),
	Bootstrap:       boshtbl.NewValueString("Bootstrap"),
	Ignore:          boshtbl.NewValueString("Ignore"),
	VMCreatedAt:     boshtbl.NewValueString("VM Created At"),
	CloudProperties: boshtbl.NewValueString("Cloud Properties"),

	Stemcell: boshtbl.NewValueString("Stemcell"),

	DNS: boshtbl.NewValueString("DNS A Records"),

	Uptime: boshtbl.NewValueString("Uptime"),
	Load:   boshtbl.NewValueString("Load\n(1m, 5m, 15m)"),

	CPUTotal: boshtbl.NewValueString("CPU\nTotal"),
	CPUUser:  boshtbl.NewValueString("CPU\nUser"),
	CPUSys:   boshtbl.NewValueString("CPU\nSys"),
	CPUWait:  boshtbl.NewValueString("CPU\nWait"),

	Memory: boshtbl.NewValueString("Memory\nUsage"),
	Swap:   boshtbl.NewValueString("Swap\nUsage"),

	SystemDisk:     boshtbl.NewValueString("System\nDisk Usage"),
	EphemeralDisk:  boshtbl.NewValueString("Ephemeral\nDisk Usage"),
	PersistentDisk: boshtbl.NewValueString("Persistent\nDisk Usage"),
}

Functions

func NewEnvFactory

func NewEnvFactory(
	deps BasicDeps,
	manifestPath string,
	statePath string,
	manifestVars boshtpl.Variables,
	manifestOp patch.Op,
	recreatePersistentDisks bool,
) *envFactory

func NewStartOpts

func NewStartOpts(opts StartOpts) (boshdir.StartOpts, error)

func NewValueStringPercent

func NewValueStringPercent(str string) boshtbl.Value

Types

type AddBlobCmd

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

func NewAddBlobCmd

func NewAddBlobCmd(blobsDir boshreldir.BlobsDir, fs boshsys.FileSystem, ui boshui.UI) AddBlobCmd

func (AddBlobCmd) Run

func (c AddBlobCmd) Run(opts AddBlobOpts) error

type AliasEnvCmd added in v0.0.96

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

func NewAliasEnvCmd added in v0.0.96

func NewAliasEnvCmd(
	sessionFactory func(cmdconf.Config) Session,
	config cmdconf.Config,
	ui boshui.UI,
) AliasEnvCmd

func (AliasEnvCmd) Run added in v0.0.96

func (c AliasEnvCmd) Run(opts AliasEnvOpts) error

type AttachDiskCmd added in v0.0.105

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

func NewAttachDiskCmd added in v0.0.105

func NewAttachDiskCmd(deployment boshdir.Deployment) AttachDiskCmd

func (AttachDiskCmd) Run added in v0.0.105

func (c AttachDiskCmd) Run(opts AttachDiskOpts) error

type BasicDeps

type BasicDeps struct {
	FS     boshsys.FileSystem
	UI     *boshui.ConfUI
	Logger boshlog.Logger

	UUIDGen                  boshuuid.Generator
	CmdRunner                boshsys.CmdRunner
	Compressor               boshcmd.Compressor
	DigestCalculator         bicrypto.DigestCalculator
	DigestCreationAlgorithms []boshcrypto.Algorithm

	Time clock.Clock
}

func NewBasicDeps

func NewBasicDeps(ui *boshui.ConfUI, logger boshlog.Logger) BasicDeps

func NewBasicDepsWithFS added in v0.0.139

func NewBasicDepsWithFS(ui *boshui.ConfUI, fs boshsys.FileSystem, logger boshlog.Logger) BasicDeps

type BasicLoginStrategy

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

func NewBasicLoginStrategy

func NewBasicLoginStrategy(
	sessionFactory func(cmdconf.Config) Session,
	config cmdconf.Config,
	ui boshui.UI,
) BasicLoginStrategy

func (BasicLoginStrategy) Try

func (s BasicLoginStrategy) Try() error

type BlobsCmd

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

func NewBlobsCmd

func NewBlobsCmd(blobsDir boshreldir.BlobsDir, ui boshui.UI) BlobsCmd

func (BlobsCmd) Run

func (c BlobsCmd) Run() error

type CPIConfigCmd added in v0.0.105

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

func NewCPIConfigCmd added in v0.0.105

func NewCPIConfigCmd(ui boshui.UI, director boshdir.Director) CPIConfigCmd

func (CPIConfigCmd) Run added in v0.0.105

func (c CPIConfigCmd) Run() error

type CancelTaskCmd

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

func NewCancelTaskCmd

func NewCancelTaskCmd(director boshdir.Director) CancelTaskCmd

func (CancelTaskCmd) Run

func (c CancelTaskCmd) Run(opts CancelTaskOpts) error

type CancelTasksCmd

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

func NewCancelTasksCmd

func NewCancelTasksCmd(director boshdir.Director) CancelTasksCmd

func (CancelTasksCmd) Run

func (c CancelTasksCmd) Run(opts CancelTasksOpts) error

type CertificateInfoTable

type CertificateInfoTable struct {
	Certificates []boshdir.CertificateExpiryInfo
	UI           boshui.UI
}

func (CertificateInfoTable) Print

func (t CertificateInfoTable) Print()

type CleanUpCmd

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

func NewCleanUpCmd

func NewCleanUpCmd(ui boshui.UI, director boshdir.Director) CleanUpCmd

func (CleanUpCmd) PrintCleanUpTable

func (c CleanUpCmd) PrintCleanUpTable(resp boshdir.CleanUp)

func (CleanUpCmd) Run

func (c CleanUpCmd) Run(opts CleanUpOpts) error

type CloudCheckCmd

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

func NewCloudCheckCmd

func NewCloudCheckCmd(deployment boshdir.Deployment, ui boshui.UI) CloudCheckCmd

func (CloudCheckCmd) Run

func (c CloudCheckCmd) Run(opts CloudCheckOpts) error

type CloudConfigCmd

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

func NewCloudConfigCmd

func NewCloudConfigCmd(ui boshui.UI, director boshdir.Director) CloudConfigCmd

func (CloudConfigCmd) Run

func (c CloudConfigCmd) Run() error

type Cmd

type Cmd struct {
	BoshOpts BoshOpts
	Opts     interface{}
	// contains filtered or unexported fields
}

func NewCmd

func NewCmd(boshOpts BoshOpts, opts interface{}, deps BasicDeps) Cmd

func (Cmd) Execute

func (c Cmd) Execute() (cmdErr error)

type ConfigCmd

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

func NewConfigCmd

func NewConfigCmd(ui boshui.UI, director boshdir.Director) ConfigCmd

func (ConfigCmd) Run

func (c ConfigCmd) Run(opts ConfigOpts) error

type ConfigDiffTable

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

func NewConfigDiffTable

func NewConfigDiffTable(diff Diff, opts DiffConfigOpts, ui boshui.UI) ConfigDiffTable

func (ConfigDiffTable) Print

func (t ConfigDiffTable) Print()

type ConfigTable

type ConfigTable struct {
	Config boshdir.Config
	UI     boshui.UI
}

func (ConfigTable) Print

func (t ConfigTable) Print()

type ConfigsCmd

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

func NewConfigsCmd

func NewConfigsCmd(ui boshui.UI, director boshdir.Director) ConfigsCmd

func (ConfigsCmd) Run

func (c ConfigsCmd) Run(opts ConfigsOpts) error

type CreateEnvCmd

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

func NewCreateEnvCmd

func NewCreateEnvCmd(ui boshui.UI, envProvider EnvProviderFunction) *CreateEnvCmd

func (*CreateEnvCmd) Run

func (c *CreateEnvCmd) Run(stage boshui.Stage, opts CreateEnvOpts) error

type CreateReleaseCmd

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

func NewCreateReleaseCmd

func NewCreateReleaseCmd(
	releaseDirFactory func(DirOrCWDArg) (boshrel.Reader, boshreldir.ReleaseDir),
	releaseWriter boshrel.Writer,
	fs boshsys.FileSystem,
	ui boshui.UI,
) CreateReleaseCmd

func (CreateReleaseCmd) Run

func (c CreateReleaseCmd) Run(opts CreateReleaseOpts) (boshrel.Release, error)

type CurlCmd

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

func NewCurlCmd

func NewCurlCmd(ui boshui.UI, clientRequest boshdir.ClientRequest) CurlCmd

func (CurlCmd) Run

func (c CurlCmd) Run(opts CurlOpts) error

type DeleteConfigCmd

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

func NewDeleteConfigCmd

func NewDeleteConfigCmd(ui boshui.UI, director boshdir.Director) DeleteConfigCmd

func (DeleteConfigCmd) Run

func (c DeleteConfigCmd) Run(opts DeleteConfigOpts) error

type DeleteDeploymentCmd

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

func NewDeleteDeploymentCmd

func NewDeleteDeploymentCmd(ui boshui.UI, deployment boshdir.Deployment) DeleteDeploymentCmd

func (DeleteDeploymentCmd) Run

func (c DeleteDeploymentCmd) Run(opts DeleteDeploymentOpts) error

type DeleteDiskCmd

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

func NewDeleteDiskCmd

func NewDeleteDiskCmd(ui boshui.UI, director boshdir.Director) DeleteDiskCmd

func (DeleteDiskCmd) Run

func (c DeleteDiskCmd) Run(opts DeleteDiskOpts) error

type DeleteEnvCmd

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

func NewDeleteEnvCmd

func NewDeleteEnvCmd(ui boshui.UI, envProvider func(string, string, boshtpl.Variables, patch.Op) DeploymentDeleter) *DeleteEnvCmd

func (*DeleteEnvCmd) Run

func (c *DeleteEnvCmd) Run(stage boshui.Stage, opts DeleteEnvOpts) error

type DeleteNetworkCmd

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

func NewDeleteNetworkCmd

func NewDeleteNetworkCmd(ui boshui.UI, director boshdir.Director) DeleteNetworkCmd

func (DeleteNetworkCmd) Run

func (c DeleteNetworkCmd) Run(opts DeleteNetworkOpts) error

type DeleteReleaseCmd

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

func NewDeleteReleaseCmd

func NewDeleteReleaseCmd(ui boshui.UI, director boshdir.Director) DeleteReleaseCmd

func (DeleteReleaseCmd) Run

func (c DeleteReleaseCmd) Run(opts DeleteReleaseOpts) error

type DeleteSnapshotCmd

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

func NewDeleteSnapshotCmd

func NewDeleteSnapshotCmd(ui boshui.UI, deployment boshdir.Deployment) DeleteSnapshotCmd

func (DeleteSnapshotCmd) Run

func (c DeleteSnapshotCmd) Run(opts DeleteSnapshotOpts) error

type DeleteSnapshotsCmd

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

func NewDeleteSnapshotsCmd

func NewDeleteSnapshotsCmd(ui boshui.UI, deployment boshdir.Deployment) DeleteSnapshotsCmd

func (DeleteSnapshotsCmd) Run

func (c DeleteSnapshotsCmd) Run() error

type DeleteStemcellCmd

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

func NewDeleteStemcellCmd

func NewDeleteStemcellCmd(ui boshui.UI, director boshdir.Director) DeleteStemcellCmd

func (DeleteStemcellCmd) Run

func (c DeleteStemcellCmd) Run(opts DeleteStemcellOpts) error

type DeleteVMCmd added in v0.0.95

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

func NewDeleteVMCmd added in v0.0.95

func NewDeleteVMCmd(ui boshui.UI, deployment boshdir.Deployment) DeleteVMCmd

func (DeleteVMCmd) Run added in v0.0.95

func (c DeleteVMCmd) Run(opts DeleteVMOpts) error

type DeployCmd

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

func NewDeployCmd

func NewDeployCmd(
	ui boshui.UI,
	deployment boshdir.Deployment,
	releaseUploader ReleaseUploader,
) DeployCmd

func (DeployCmd) Run

func (c DeployCmd) Run(opts DeployOpts) error

type DeploymentCmd

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

func NewDeploymentCmd

func NewDeploymentCmd(
	session Session,
	config cmdconf.Config,
	ui biui.UI,
) DeploymentCmd

func (DeploymentCmd) Run

func (c DeploymentCmd) Run() error

type DeploymentDeleter

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

func NewDeploymentDeleter

func NewDeploymentDeleter(
	ui biui.UI,
	logTag string,
	logger boshlog.Logger,
	deploymentStateService biconfig.DeploymentStateService,
	releaseManager boshinst.ReleaseManager,
	cloudFactory bicloud.Factory,
	agentClientFactory bihttpagent.AgentClientFactory,
	blobstoreFactory biblobstore.Factory,
	deploymentManagerFactory bidepl.ManagerFactory,
	deploymentManifestPath string,
	deploymentVars boshtpl.Variables,
	deploymentOp patch.Op,
	cpiInstaller bicpirel.CpiInstaller,
	cpiUninstaller biinstall.Uninstaller,
	releaseFetcher boshinst.ReleaseFetcher,
	releaseSetAndInstallationManifestParser ReleaseSetAndInstallationManifestParser,
	tempRootConfigurator TempRootConfigurator,
	targetProvider biinstall.TargetProvider,
) DeploymentDeleter

type DeploymentManifestParser

type DeploymentManifestParser interface {
	GetDeploymentManifest(path string, vars boshtpl.Variables, op patch.Op, releaseSetManifest birelsetmanifest.Manifest, stage biui.Stage) (bideplmanifest.Manifest, string, error)
	GetDeploymentManifestUpdate(path string, vars boshtpl.Variables, op patch.Op, releaseSetManifest birelsetmanifest.Manifest, stage biui.Stage) (bideplmanifest.Update, error)
}

func NewDeploymentManifestParser

func NewDeploymentManifestParser(
	deploymentParser bideplmanifest.Parser,
	deploymentValidator bideplmanifest.Validator,
	releaseManager birel.Manager,
	templateFactory bidepltpl.DeploymentTemplateFactory) DeploymentManifestParser

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 boshinst.ReleaseManager,
	deploymentRecord bidepl.Record,
	cloudFactory bicloud.Factory,
	stemcellManagerFactory bistemcell.ManagerFactory,
	agentClientFactory bihttpagent.AgentClientFactory,
	vmManagerFactory bivm.ManagerFactory,
	blobstoreFactory biblobstore.Factory,
	deployer bidepl.Deployer,
	deploymentManifestPath string,
	deploymentVars boshtpl.Variables,
	deploymentOp patch.Op,
	cpiInstaller bicpirel.CpiInstaller,
	releaseFetcher boshinst.ReleaseFetcher,
	stemcellFetcher bistemcell.Fetcher,
	releaseSetAndInstallationManifestParser ReleaseSetAndInstallationManifestParser,
	deploymentManifestParser DeploymentManifestParser,
	tempRootConfigurator TempRootConfigurator,
	targetProvider biinstall.TargetProvider,
) DeploymentPreparer

func (*DeploymentPreparer) PrepareDeployment

func (c *DeploymentPreparer) PrepareDeployment(stage biui.Stage, recreate bool, recreatePersistentDisks bool, skipDrain bool) (err error)

type DeploymentStateManager

type DeploymentStateManager interface {
	StopDeployment(skipDrain bool, stage biui.Stage) (err error)
	StartDeployment(stage biui.Stage) (err error)
}

func NewDeploymentStateManager

func NewDeploymentStateManager(
	ui biui.UI,
	logTag string,
	logger boshlog.Logger,
	deploymentStateService biconfig.DeploymentStateService,
	agentClientFactory bihttpagent.AgentClientFactory,
	deploymentManagerFactory bidepl.ManagerFactory,
	deploymentManifestPath string,
	deploymentVars boshtpl.Variables,
	deploymentOp patch.Op,
	releaseSetAndInstallationManifestParser ReleaseSetAndInstallationManifestParser,
	deploymentManifestParser DeploymentManifestParser,
) DeploymentStateManager

type DeploymentTablePrinter

type DeploymentTablePrinter struct {
	Name      string
	Releases  []boshdir.Release
	Stemcells []boshdir.Stemcell
	Teams     []string
	Configs   boshdir.DeploymentConfigs
	UI        boshui.UI
}

func (DeploymentTablePrinter) Print

func (t DeploymentTablePrinter) Print() error

type DeploymentsCmd

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

func NewDeploymentsCmd

func NewDeploymentsCmd(ui biui.UI, director boshdir.Director) DeploymentsCmd

func (DeploymentsCmd) Run

func (c DeploymentsCmd) Run() error

type DeploymentsTable

type DeploymentsTable struct {
	Deployments []boshdir.DeploymentResp
	UI          boshui.UI
}

func (DeploymentsTable) Print

func (t DeploymentsTable) Print() error

type Diff

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

func NewDiff

func NewDiff(lines [][]interface{}) Diff

func (Diff) Print

func (d Diff) Print(ui boshui.UI)

func (Diff) String

func (d Diff) String() string

type DiffConfigCmd

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

func NewDiffConfigCmd

func NewDiffConfigCmd(ui boshui.UI, director boshdir.Director) DiffConfigCmd

func (DiffConfigCmd) Run

func (c DiffConfigCmd) Run(opts DiffConfigOpts) error

type DisksCmd

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

func NewDisksCmd

func NewDisksCmd(ui boshui.UI, director boshdir.Director) DisksCmd

func (DisksCmd) Run

func (c DisksCmd) Run(opts DisksOpts) error

type Downloader

type Downloader interface {
	Download(blobstoreID, sha1, prefix, dstDirPath string) error
}

type EnvironmentCmd

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

func NewEnvironmentCmd

func NewEnvironmentCmd(ui boshui.UI, director boshdir.Director) EnvironmentCmd

func (EnvironmentCmd) Run

func (c EnvironmentCmd) Run(opts EnvironmentOpts) error

type EnvironmentsCmd

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

func NewEnvironmentsCmd

func NewEnvironmentsCmd(config cmdconf.Config, ui boshui.UI) EnvironmentsCmd

func (EnvironmentsCmd) Run

func (c EnvironmentsCmd) Run() error

type ErrandsCmd

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

func NewErrandsCmd

func NewErrandsCmd(ui boshui.UI, deployment boshdir.Deployment) ErrandsCmd

func (ErrandsCmd) Run

func (c ErrandsCmd) Run() error

type EventCmd

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

func NewEventCmd

func NewEventCmd(ui boshui.UI, director boshdir.Director) EventCmd

func (EventCmd) Run

func (c EventCmd) Run(opts EventOpts) error

type EventContextSorting

type EventContextSorting []string

func (EventContextSorting) Len

func (s EventContextSorting) Len() int

func (EventContextSorting) Less

func (s EventContextSorting) Less(i, j int) bool

func (EventContextSorting) Swap

func (s EventContextSorting) Swap(i, j int)

type EventTable

type EventTable struct {
	Event boshdir.Event
	UI    boshui.UI
}

func (EventTable) Print

func (t EventTable) Print()

type EventsCmd

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

func NewEventsCmd

func NewEventsCmd(ui boshui.UI, director boshdir.Director) EventsCmd

func (EventsCmd) Run

func (c EventsCmd) Run(opts EventsOpts) error

type ExportReleaseCmd

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

func NewExportReleaseCmd

func NewExportReleaseCmd(deployment boshdir.Deployment, downloader Downloader) ExportReleaseCmd

func (ExportReleaseCmd) Run

func (c ExportReleaseCmd) Run(opts ExportReleaseOpts) error

type Factory

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

func NewFactory

func NewFactory(deps BasicDeps) Factory

func (Factory) New

func (f Factory) New(args []string) (Cmd, error)

type FinalizeReleaseCmd

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

func NewFinalizeReleaseCmd

func NewFinalizeReleaseCmd(
	releaseReader boshrel.Reader,
	releaseDir boshreldir.ReleaseDir,
	ui boshui.UI,
) FinalizeReleaseCmd

func (FinalizeReleaseCmd) Run

func (c FinalizeReleaseCmd) Run(opts FinalizeReleaseOpts) error

type GenerateJobCmd

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

func NewGenerateJobCmd

func NewGenerateJobCmd(releaseDir boshreldir.ReleaseDir) GenerateJobCmd

func (GenerateJobCmd) Run

func (c GenerateJobCmd) Run(opts GenerateJobOpts) error

type GeneratePackageCmd

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

func NewGeneratePackageCmd

func NewGeneratePackageCmd(releaseDir boshreldir.ReleaseDir) GeneratePackageCmd

func (GeneratePackageCmd) Run

func (c GeneratePackageCmd) Run(opts GeneratePackageOpts) error

type IgnoreCmd added in v0.0.101

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

func NewIgnoreCmd added in v0.0.101

func NewIgnoreCmd(deployment boshdir.Deployment) IgnoreCmd

func (IgnoreCmd) Run added in v0.0.101

func (cmd IgnoreCmd) Run(opts IgnoreOpts) error

type InfoFeatureSorting

type InfoFeatureSorting []string

func (InfoFeatureSorting) Len

func (s InfoFeatureSorting) Len() int

func (InfoFeatureSorting) Less

func (s InfoFeatureSorting) Less(i, j int) bool

func (InfoFeatureSorting) Swap

func (s InfoFeatureSorting) Swap(i, j int)

type InfoTable

type InfoTable struct {
	Info boshdir.Info
	UI   boshui.UI
}

func (InfoTable) Print

func (t InfoTable) Print()

type InitReleaseCmd

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

func NewInitReleaseCmd

func NewInitReleaseCmd(releaseDir boshreldir.ReleaseDir) InitReleaseCmd

func (InitReleaseCmd) Run

func (c InitReleaseCmd) Run(opts InitReleaseOpts) error

type InspectLocalReleaseCmd

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

func NewInspectLocalReleaseCmd

func NewInspectLocalReleaseCmd(
	reader boshrel.Reader,
	ui biui.UI,
) InspectLocalReleaseCmd

func (InspectLocalReleaseCmd) Run

func (cmd InspectLocalReleaseCmd) Run(opts InspectLocalReleaseOpts) error

type InspectReleaseCmd

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

func NewInspectReleaseCmd

func NewInspectReleaseCmd(ui boshui.UI, director boshdir.Director) InspectReleaseCmd

func (InspectReleaseCmd) Run

func (c InspectReleaseCmd) Run(opts InspectReleaseOpts) error

type InspectStemcellTarballCmd

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

func NewInspectStemcellTarballCmd

func NewInspectStemcellTarballCmd(
	stemcellArchiveFactory func(string) boshdir.StemcellArchive,
	ui biui.UI,
) InspectStemcellTarballCmd

func (InspectStemcellTarballCmd) Run

func (c InspectStemcellTarballCmd) Run(opts InspectStemcellTarballOpts) error

type InstanceTable

type InstanceTable struct {
	Processes, VMDetails, DeploymentDetails, Details, Stemcell, DNS, Vitals, CloudProperties bool
}

func (InstanceTable) AsValues

AsValues is public instead of being private to aid ease of accessing vals in tests

func (InstanceTable) ForProcess

func (InstanceTable) ForVMInfo

func (InstanceTable) Headers

func (t InstanceTable) Headers() []boshtbl.Header

type InstanceTableValues

type InstanceTableValues struct {
	Name    boshtbl.Value
	Process boshtbl.Value

	ProcessState boshtbl.Value
	State        boshtbl.Value
	AZ           boshtbl.Value
	VMType       boshtbl.Value
	Active       boshtbl.Value
	IPs          boshtbl.Value
	Deployment   boshtbl.Value

	// Details
	VMCID           boshtbl.Value
	DiskCIDs        boshtbl.Value
	AgentID         boshtbl.Value
	Index           boshtbl.Value
	Bootstrap       boshtbl.Value
	Ignore          boshtbl.Value
	VMCreatedAt     boshtbl.Value
	CloudProperties boshtbl.Value

	Stemcell boshtbl.Value

	// DNS
	DNS boshtbl.Value

	// Vitals
	Uptime boshtbl.Value // only for Process
	Load   boshtbl.Value

	CPUTotal boshtbl.Value // only for Process
	CPUUser  boshtbl.Value
	CPUSys   boshtbl.Value
	CPUWait  boshtbl.Value

	Memory boshtbl.Value
	Swap   boshtbl.Value

	SystemDisk     boshtbl.Value
	EphemeralDisk  boshtbl.Value
	PersistentDisk boshtbl.Value
}

type InstancesCmd

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

func NewInstancesCmd

func NewInstancesCmd(ui boshui.UI, director boshdir.Director, parallel int) InstancesCmd

func (InstancesCmd) Run

func (c InstancesCmd) Run(opts InstancesOpts) error

type InterpolateCmd added in v0.0.120

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

func NewInterpolateCmd added in v0.0.120

func NewInterpolateCmd(ui boshui.UI) InterpolateCmd

func (InterpolateCmd) Run added in v0.0.120

func (c InterpolateCmd) Run(opts InterpolateOpts) error

type LocksCmd

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

func NewLocksCmd

func NewLocksCmd(ui boshui.UI, director boshdir.Director) LocksCmd

func (LocksCmd) Run

func (c LocksCmd) Run() error

type LogInCmd

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

func NewLogInCmd

func NewLogInCmd(
	basicStrategy LoginStrategy,
	uaaStrategy LoginStrategy,
	director boshdir.Director,
) LogInCmd

func (LogInCmd) Run

func (c LogInCmd) Run() error

type LogOutCmd

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

func NewLogOutCmd

func NewLogOutCmd(environment string, config cmdconf.Config, ui biui.UI) LogOutCmd

func (LogOutCmd) Run

func (c LogOutCmd) Run() error

type LoginStrategy

type LoginStrategy interface {
	Try() error
}

type LogsCmd

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

func NewLogsCmd

func NewLogsCmd(
	deployment boshdir.Deployment,
	downloader Downloader,
	uuidGen boshuuid.Generator,
	nonIntSSHRunner boshssh.Runner,
) LogsCmd

func (LogsCmd) Run

func (c LogsCmd) Run(opts LogsOpts) error

type ManifestCmd

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

func NewManifestCmd

func NewManifestCmd(ui boshui.UI, deployment boshdir.Deployment) ManifestCmd

func (ManifestCmd) Run

func (c ManifestCmd) Run() error

type NetworksCmd

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

func NewNetworksCmd

func NewNetworksCmd(ui boshui.UI, director boshdir.Director) NetworksCmd

func (NetworksCmd) Run

func (c NetworksCmd) Run(opts NetworksOpts) error

type OrphanDiskCmd

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

func NewOrphanDiskCmd

func NewOrphanDiskCmd(ui boshui.UI, director boshdir.Director) OrphanDiskCmd

func (OrphanDiskCmd) Run

func (c OrphanDiskCmd) Run(opts OrphanDiskOpts) error

type OrphanedVMsCmd

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

func NewOrphanedVMsCmd

func NewOrphanedVMsCmd(ui ui.UI, director director.Director) OrphanedVMsCmd

func (OrphanedVMsCmd) Run

func (c OrphanedVMsCmd) Run() error

type RecreateCmd

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

func NewRecreateCmd

func NewRecreateCmd(ui boshui.UI, deployment boshdir.Deployment) RecreateCmd

func (RecreateCmd) Run

func (c RecreateCmd) Run(opts RecreateOpts) error

type RedigestReleaseCmd

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

func NewRedigestReleaseCmd

func NewRedigestReleaseCmd(
	reader boshrel.Reader,
	writer boshrel.Writer,
	digestCalculator crypto.DigestCalculator,
	mv boshfu.Mover,
	archiveFilePathReader crypto2.ArchiveDigestFilePathReader,
	ui boshui.UI,
) RedigestReleaseCmd

func (RedigestReleaseCmd) Run

func (cmd RedigestReleaseCmd) Run(args RedigestReleaseArgs) error

type ReleaseCreatingCmd added in v0.0.63

type ReleaseCreatingCmd interface {
	Run(CreateReleaseOpts) (boshrel.Release, error)
}

type ReleaseManager added in v0.0.63

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

func NewReleaseManager added in v0.0.63

func NewReleaseManager(
	createReleaseCmd ReleaseCreatingCmd,
	uploadReleaseCmd ReleaseUploadingCmd,
	parallelThreads int,
) ReleaseManager

func (ReleaseManager) UploadReleases added in v0.0.63

func (m ReleaseManager) UploadReleases(bytes []byte) ([]byte, error)

func (ReleaseManager) UploadReleasesWithFix

func (m ReleaseManager) UploadReleasesWithFix(bytes []byte) ([]byte, error)

type ReleaseSetAndInstallationManifestParser

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

func (ReleaseSetAndInstallationManifestParser) ReleaseSetAndInstallationManifest

func (y ReleaseSetAndInstallationManifestParser) ReleaseSetAndInstallationManifest(deploymentManifestPath string, vars boshtpl.Variables, op patch.Op) (birelsetmanifest.Manifest, biinstallmanifest.Manifest, error)

type ReleaseTables

type ReleaseTables struct {
	Release     boshrel.Release
	ArchivePath string
}

func (ReleaseTables) Print

func (t ReleaseTables) Print(ui boshui.UI)

type ReleaseUploader added in v0.0.63

type ReleaseUploader interface {
	UploadReleases([]byte) ([]byte, error)
	UploadReleasesWithFix([]byte) ([]byte, error)
}

type ReleaseUploadingCmd

type ReleaseUploadingCmd interface {
	Run(UploadReleaseOpts) error
}

type ReleasesCmd

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

func NewReleasesCmd

func NewReleasesCmd(ui boshui.UI, director boshdir.Director) ReleasesCmd

func (ReleasesCmd) Run

func (c ReleasesCmd) Run() error

type RemoveBlobCmd

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

func NewRemoveBlobCmd

func NewRemoveBlobCmd(blobsDir boshreldir.BlobsDir, ui biui.UI) RemoveBlobCmd

func (RemoveBlobCmd) Run

func (c RemoveBlobCmd) Run(opts RemoveBlobOpts) error

type RepackStemcellCmd

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

func NewRepackStemcellCmd

func NewRepackStemcellCmd(
	ui boshui.UI,
	fs boshsys.FileSystem,
	stemcellExtractor stemcell.Extractor,
) RepackStemcellCmd

func (RepackStemcellCmd) Run

func (c RepackStemcellCmd) Run(opts RepackStemcellOpts) error

type ResetReleaseCmd

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

func NewResetReleaseCmd

func NewResetReleaseCmd(releaseDir boshreldir.ReleaseDir) ResetReleaseCmd

func (ResetReleaseCmd) Run

func (c ResetReleaseCmd) Run(opts ResetReleaseOpts) error

type RestartCmd

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

func NewRestartCmd

func NewRestartCmd(ui boshui.UI, deployment boshdir.Deployment) RestartCmd

func (RestartCmd) Run

func (c RestartCmd) Run(opts RestartOpts) error

type RunErrandCmd

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

func NewRunErrandCmd

func NewRunErrandCmd(
	deployment boshdir.Deployment,
	downloader Downloader,
	ui biui.UI,
) RunErrandCmd

func (RunErrandCmd) Run

func (c RunErrandCmd) Run(opts RunErrandOpts) error

type RuntimeConfigCmd

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

func NewRuntimeConfigCmd

func NewRuntimeConfigCmd(ui boshui.UI, director boshdir.Director) RuntimeConfigCmd

func (RuntimeConfigCmd) Run

func (c RuntimeConfigCmd) Run(opts RuntimeConfigOpts) error

type SCPCmd

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

func NewSCPCmd

func NewSCPCmd(
	uuidGen boshuuid.Generator,
	scpRunner boshssh.SCPRunner,
	ui biui.UI,
	hostBuilder boshssh.HostBuilder,
) SCPCmd

func (SCPCmd) Run

func (c SCPCmd) Run(opts SCPOpts, deploymentFetcher boshssh.DeploymentFetcher) error

type SSHCmd

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

func NewSSHCmd

func NewSSHCmd(
	uuidGen boshuuid.Generator,
	intSSHRunner boshssh.Runner,
	nonIntSSHRunner boshssh.Runner,
	resultsSSHRunner boshssh.Runner,
	ui boshui.UI,
	hostBuilder boshssh.HostBuilder,
) SSHCmd

func (SSHCmd) Run

func (c SSHCmd) Run(opts SSHOpts, deploymentFetcher boshssh.DeploymentFetcher) error

type Session

type Session interface {
	Environment() string
	Credentials() cmdconf.Creds

	UAA() (boshuaa.UAA, error)

	Director() (boshdir.Director, error)
	AnonymousDirector() (boshdir.Director, error)

	Deployment() (boshdir.Deployment, error)
}

func NewSessionFromOpts

func NewSessionFromOpts(
	opts BoshOpts,
	config cmdconf.Config,
	ui boshui.UI,
	printEnvironment bool,
	printDeployment bool,
	fs boshsys.FileSystem,
	logger boshlog.Logger,
) Session

type SessionContext

type SessionContext interface {
	Environment() string
	CACert() string
	Config() cmdconf.Config
	Credentials() cmdconf.Creds

	Deployment() string
}

type SessionContextImpl

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

SessionContextImpl prefers options over config values

func NewSessionContextImpl

func NewSessionContextImpl(
	opts BoshOpts,
	config cmdconf.Config,
	fs boshsys.FileSystem,
) *SessionContextImpl

func (SessionContextImpl) CACert

func (c SessionContextImpl) CACert() string

func (SessionContextImpl) Config

func (c SessionContextImpl) Config() cmdconf.Config

func (SessionContextImpl) Credentials

func (c SessionContextImpl) Credentials() cmdconf.Creds

func (SessionContextImpl) Deployment

func (c SessionContextImpl) Deployment() string

func (SessionContextImpl) Environment

func (c SessionContextImpl) Environment() string

type SessionImpl

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

func NewSessionImpl

func NewSessionImpl(
	context SessionContext,
	ui boshui.UI,
	printEnvironment bool,
	printDeployment bool,
	logger boshlog.Logger,
) *SessionImpl

func (*SessionImpl) AnonymousDirector

func (c *SessionImpl) AnonymousDirector() (boshdir.Director, error)

func (SessionImpl) Credentials

func (c SessionImpl) Credentials() cmdconf.Creds

func (*SessionImpl) Deployment

func (c *SessionImpl) Deployment() (boshdir.Deployment, error)

func (*SessionImpl) Director

func (c *SessionImpl) Director() (boshdir.Director, error)

func (SessionImpl) Environment

func (c SessionImpl) Environment() string

func (SessionImpl) UAA

func (c SessionImpl) UAA() (boshuaa.UAA, error)

type SnapshotsCmd

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

func NewSnapshotsCmd

func NewSnapshotsCmd(ui boshui.UI, deployment boshdir.Deployment) SnapshotsCmd

func (SnapshotsCmd) Run

func (c SnapshotsCmd) Run(opts SnapshotsOpts) error

type StartCmd

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

func NewStartCmd

func NewStartCmd(ui boshui.UI, deployment boshdir.Deployment) StartCmd

func (StartCmd) Run

func (c StartCmd) Run(opts StartOpts) error

type StartEnvCmd

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

func NewStartEnvCmd

func NewStartEnvCmd(ui boshui.UI, envProvider func(string, string, boshtpl.Variables, patch.Op) DeploymentStateManager) *StartEnvCmd

func (*StartEnvCmd) Run

func (c *StartEnvCmd) Run(stage boshui.Stage, opts StartEnvOpts) error

type StemcellsCmd

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

func NewStemcellsCmd

func NewStemcellsCmd(ui boshui.UI, director boshdir.Director) StemcellsCmd

func (StemcellsCmd) Run

func (c StemcellsCmd) Run() error

type StopCmd

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

func NewStopCmd

func NewStopCmd(ui boshui.UI, deployment boshdir.Deployment) StopCmd

func (StopCmd) Run

func (c StopCmd) Run(opts StopOpts) error

type StopEnvCmd

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

func NewStopEnvCmd

func NewStopEnvCmd(ui boshui.UI, envProvider func(string, string, boshtpl.Variables, patch.Op) DeploymentStateManager) *StopEnvCmd

func (*StopEnvCmd) Run

func (c *StopEnvCmd) Run(stage boshui.Stage, opts StopEnvOpts) error

type SyncBlobsCmd

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

func NewSyncBlobsCmd

func NewSyncBlobsCmd(blobsDir boshreldir.BlobsDir, numOfParallelWorkers int) SyncBlobsCmd

func (SyncBlobsCmd) Run

func (c SyncBlobsCmd) Run() error

type TakeSnapshotCmd

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

func NewTakeSnapshotCmd

func NewTakeSnapshotCmd(deployment boshdir.Deployment) TakeSnapshotCmd

func (TakeSnapshotCmd) Run

func (c TakeSnapshotCmd) Run(opts TakeSnapshotOpts) error

type TaskCmd

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

func NewTaskCmd

func NewTaskCmd(
	eventsTaskReporter boshuit.Reporter,
	plainTaskReporter boshuit.Reporter,
	director boshdir.Director,
) TaskCmd

func (TaskCmd) Run

func (c TaskCmd) Run(opts TaskOpts) error

type TasksCmd

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

func NewTasksCmd

func NewTasksCmd(ui boshui.UI, director boshdir.Director) TasksCmd

func (TasksCmd) Run

func (c TasksCmd) Run(opts TasksOpts) error

type TempRootConfigurator

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

func NewTempRootConfigurator

func NewTempRootConfigurator(fs boshsys.FileSystem) TempRootConfigurator

type UAALoginStrategy

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

func NewUAALoginStrategy

func NewUAALoginStrategy(
	sessionFactory func(cmdconf.Config) Session,
	config cmdconf.Config,
	ui boshui.UI,
	logger boshlog.Logger,
) UAALoginStrategy

func (UAALoginStrategy) Try

func (c UAALoginStrategy) Try() error

type UIDownloader

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

func NewUIDownloader

func NewUIDownloader(
	director boshdir.Director,
	timeService clock.Clock,
	fs boshsys.FileSystem,
	ui biui.UI,
) UIDownloader

func (UIDownloader) Download

func (d UIDownloader) Download(blobstoreID, sha1, prefix, dstDirPath string) error

type UnaliasEnvCmd

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

func NewUnaliasEnvCmd

func NewUnaliasEnvCmd(config cmdconf.Config) *UnaliasEnvCmd

func (UnaliasEnvCmd) Run

func (c UnaliasEnvCmd) Run(opts UnaliasEnvOpts) error

type UnignoreCmd added in v0.0.101

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

func NewUnignoreCmd added in v0.0.101

func NewUnignoreCmd(deployment boshdir.Deployment) UnignoreCmd

func (UnignoreCmd) Run added in v0.0.101

func (cmd UnignoreCmd) Run(opts UnignoreOpts) error

type UpdateCPIConfigCmd added in v0.0.105

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

func NewUpdateCPIConfigCmd added in v0.0.105

func NewUpdateCPIConfigCmd(ui boshui.UI, director boshdir.Director) UpdateCPIConfigCmd

func (UpdateCPIConfigCmd) Run added in v0.0.105

func (c UpdateCPIConfigCmd) Run(opts UpdateCPIConfigOpts) error

type UpdateCloudConfigCmd

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

func NewUpdateCloudConfigCmd

func NewUpdateCloudConfigCmd(ui boshui.UI, director boshdir.Director) UpdateCloudConfigCmd

func (UpdateCloudConfigCmd) Run

func (c UpdateCloudConfigCmd) Run(opts UpdateCloudConfigOpts) error

type UpdateConfigCmd

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

func NewUpdateConfigCmd

func NewUpdateConfigCmd(ui boshui.UI, director boshdir.Director) UpdateConfigCmd

func (UpdateConfigCmd) Run

func (c UpdateConfigCmd) Run(opts UpdateConfigOpts) error

type UpdateResurrectionCmd added in v0.0.61

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

func NewUpdateResurrectionCmd added in v0.0.61

func NewUpdateResurrectionCmd(director boshdir.Director) UpdateResurrectionCmd

func (UpdateResurrectionCmd) Run added in v0.0.61

func (c UpdateResurrectionCmd) Run(opts UpdateResurrectionOpts) error

type UpdateRuntimeConfigCmd

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

func NewUpdateRuntimeConfigCmd

func NewUpdateRuntimeConfigCmd(ui boshui.UI, director boshdir.Director, releaseUploader ReleaseUploader) UpdateRuntimeConfigCmd

func (UpdateRuntimeConfigCmd) Run

func (c UpdateRuntimeConfigCmd) Run(opts UpdateRuntimeConfigOpts) error

type UploadBlobsCmd

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

func NewUploadBlobsCmd

func NewUploadBlobsCmd(blobsDir boshreldir.BlobsDir) UploadBlobsCmd

func (UploadBlobsCmd) Run

func (c UploadBlobsCmd) Run() error

type UploadReleaseCmd

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

func NewUploadReleaseCmd

func NewUploadReleaseCmd(
	releaseDirFactory func(DirOrCWDArg) (boshrel.Reader, boshreldir.ReleaseDir),
	releaseArchiveWriter boshrel.Writer,
	director boshdir.Director,
	releaseArchiveFactory func(string) boshdir.ReleaseArchive,
	cmdRunner boshsys.CmdRunner,
	fs boshsys.FileSystem,
	ui boshui.UI,
) UploadReleaseCmd

func (UploadReleaseCmd) Run

func (c UploadReleaseCmd) Run(opts UploadReleaseOpts) error

type UploadStemcellCmd

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

func NewUploadStemcellCmd

func NewUploadStemcellCmd(
	director boshdir.Director,
	stemcellArchiveFactory func(string) boshdir.StemcellArchive,
	ui biui.UI,
) UploadStemcellCmd

func (UploadStemcellCmd) Run

func (c UploadStemcellCmd) Run(opts UploadStemcellOpts) error

type VMsCmd

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

func NewVMsCmd

func NewVMsCmd(ui boshui.UI, director boshdir.Director, parallel int) VMsCmd

func (VMsCmd) Run

func (c VMsCmd) Run(opts VMsOpts) error

type ValueCPUTotal

type ValueCPUTotal struct {
	Total *float64
}

func (ValueCPUTotal) Compare

func (t ValueCPUTotal) Compare(other boshtbl.Value) int

func (ValueCPUTotal) String

func (t ValueCPUTotal) String() string

func (ValueCPUTotal) Value

func (t ValueCPUTotal) Value() boshtbl.Value

type ValueDiskSize

type ValueDiskSize struct {
	Size boshdir.VMInfoVitalsDiskSize
}

func (ValueDiskSize) Compare

func (t ValueDiskSize) Compare(other boshtbl.Value) int

func (ValueDiskSize) String

func (t ValueDiskSize) String() string

func (ValueDiskSize) Value

func (t ValueDiskSize) Value() boshtbl.Value

type ValueMemIntSize

type ValueMemIntSize struct {
	Size boshdir.VMInfoVitalsMemIntSize
}

func (ValueMemIntSize) Compare

func (t ValueMemIntSize) Compare(other boshtbl.Value) int

func (ValueMemIntSize) String

func (t ValueMemIntSize) String() string

func (ValueMemIntSize) Value

func (t ValueMemIntSize) Value() boshtbl.Value

type ValueMemSize

type ValueMemSize struct {
	Size boshdir.VMInfoVitalsMemSize
}

func (ValueMemSize) Compare

func (t ValueMemSize) Compare(other boshtbl.Value) int

func (ValueMemSize) String

func (t ValueMemSize) String() string

func (ValueMemSize) Value

func (t ValueMemSize) Value() boshtbl.Value

type ValueUptime

type ValueUptime struct {
	Secs *uint64
}

func (ValueUptime) Compare

func (t ValueUptime) Compare(other boshtbl.Value) int

func (ValueUptime) String

func (t ValueUptime) String() string

func (ValueUptime) Value

func (t ValueUptime) Value() boshtbl.Value

type VariablesCmd added in v0.0.136

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

func NewVariablesCmd added in v0.0.136

func NewVariablesCmd(ui boshui.UI, deployment boshdir.Deployment) VariablesCmd

func (VariablesCmd) Run added in v0.0.136

func (c VariablesCmd) Run(opts VariablesOpts) error

type VendorPackageCmd

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

func NewVendorPackageCmd

func NewVendorPackageCmd(
	releaseDirFactory func(DirOrCWDArg) boshreldir.ReleaseDir,
	ui boshui.UI,
) VendorPackageCmd

func (VendorPackageCmd) Run

func (c VendorPackageCmd) Run(opts VendorPackageOpts) error

Source Files

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.
configfakes
Code generated by counterfeiter.
Code generated by counterfeiter.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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