{"modulePath":"github.com/cloudfoundry/cli","version":"v7.1.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package shared\n\nPackage shared should not be imported by external consumers. It was not designed for external use.\n\n## Constants\n\n```go\nconst (\n\tMEGABYTE = 1024 * 1024\n\tGIGABYTE = 1024 * MEGABYTE\n\tTERABYTE = 1024 * GIGABYTE\n)\n```\n\n## Functions\n\n```go\nfunc CheckCCAPIVersion(currentAPIVersion string) (string, error)\n```\n\n```go\nfunc FlagBoolToString(enabled bool) string\n```\n\n```go\nfunc GetNewClientsAndConnectToCF(config command.Config, ui command.UI, minVersionV3 string) (*ccv3.Client, *uaa.Client, *router.Client, error)\n```\n\n```go\nfunc NewNetworkingClient(apiURL string, config command.Config, uaaClient *uaa.Client, ui command.UI) (*cfnetv1.Client, error)\n```\nNewNetworkingClient creates a new cfnetworking client.\n\n```go\nfunc NewWrappedCloudControllerClient(config command.Config, ui command.UI) (*ccv3.Client, *ccWrapper.UAAAuthentication)\n```\n\n```go\nfunc PollStage(dropletStream \u003c-chan resources.Droplet, warningsStream \u003c-chan v7action.Warnings, errStream \u003c-chan error, logStream \u003c-chan sharedaction.LogMessage, logErrStream \u003c-chan error, ui command.UI) (resources.Droplet, error)\n```\n\n## Types\n\n```go\ntype AppStager interface {\n\tStageAndStart(\n\t\tapp resources.Application,\n\t\tspace configv3.Space,\n\t\torganization configv3.Organization,\n\t\tpackageGUID string,\n\t\tstrategy constant.DeploymentStrategy,\n\t\tnoWait bool,\n\t\tappAction constant.ApplicationAction,\n\t) error\n\n\tStageApp(\n\t\tapp resources.Application,\n\t\tpackageGUID string,\n\t\tspace configv3.Space,\n\t) (resources.Droplet, error)\n\n\tStartApp(\n\t\tapp resources.Application,\n\t\tdroplet resources.Droplet,\n\t\tstrategy constant.DeploymentStrategy,\n\t\tnoWait bool,\n\t\tspace configv3.Space,\n\t\torganization configv3.Organization,\n\t\tappAction constant.ApplicationAction,\n\t) error\n}\n```\n\n```go\nfunc NewAppStager(actor stagingAndStartActor, ui command.UI, config command.Config, logCache sharedaction.LogCacheClient) AppStager\n```\n\n```go\ntype AppSummaryDisplayer struct {\n\tUI command.UI\n}\n```\n\n```go\nfunc NewAppSummaryDisplayer(ui command.UI) *AppSummaryDisplayer\n```\n\n```go\nfunc (display AppSummaryDisplayer) AppDisplay(summary v7action.DetailedApplicationSummary, displayStartCommand bool)\n```\n\n```go\ntype PackageDisplayer struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewPackageDisplayer(ui command.UI, config command.Config) PackageDisplayer\n```\n\n```go\nfunc (display PackageDisplayer) DisplaySetupMessage(appName string, isDockerImage bool) error\n```\n\n```go\ntype QuotaDisplayer struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewQuotaDisplayer(ui command.UI) QuotaDisplayer\n```\n\n```go\nfunc (displayer QuotaDisplayer) DisplayQuotasTable(quotas []resources.Quota, emptyMessage string)\n```\n\n```go\nfunc (displayer QuotaDisplayer) DisplaySingleQuota(quota resources.Quota)\n```\n\n```go\ntype Stager struct {\n\tActor    stagingAndStartActor\n\tUI       command.UI\n\tConfig   command.Config\n\tLogCache sharedaction.LogCacheClient\n}\n```\n\n```go\nfunc (stager *Stager) StageAndStart(\n\tapp resources.Application,\n\tspace configv3.Space,\n\torganization configv3.Organization,\n\tpackageGUID string,\n\tstrategy constant.DeploymentStrategy,\n\tnoWait bool,\n\tappAction constant.ApplicationAction,\n) error\n```\n\n```go\nfunc (stager *Stager) StageApp(app resources.Application, packageGUID string, space configv3.Space) (resources.Droplet, error)\n```\n\n```go\nfunc (stager *Stager) StartApp(\n\tapp resources.Application,\n\tdroplet resources.Droplet,\n\tstrategy constant.DeploymentStrategy,\n\tnoWait bool,\n\tspace configv3.Space,\n\torganization configv3.Organization,\n\tappAction constant.ApplicationAction,\n) error\n```\n\n","path":"github.com/cloudfoundry/cli/command/v7/shared","name":"shared","synopsis":"Package shared should not be imported by external consumers.","isRedistributable":true}
