v7

package
v0.0.0-...-1fe19bb Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 48 Imported by: 0

Documentation

Overview

Package v7 should not be imported by external consumers. It was not designed for external use.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APICommand

type APICommand struct {
	BaseCommand

	OptionalArgs      flag.APITarget `positional-args:"yes"`
	SkipSSLValidation bool           `long:"skip-ssl-validation" description:"Skip verification of the API endpoint. Not recommended!"`
	Unset             bool           `long:"unset" description:"Remove all api endpoint targeting"`
	// contains filtered or unexported fields
}

func (*APICommand) Execute

func (cmd *APICommand) Execute(args []string) error

func (*APICommand) Setup

func (cmd *APICommand) Setup(config command.Config, ui command.UI) error

type ActionType

type ActionType string
const (
	Unset ActionType = "Removing"
	Set   ActionType = "Setting"
)

type Actor

type Actor interface {
	ApplyOrganizationQuotaByName(quotaName string, orgGUID string) (v7action.Warnings, error)
	ApplySpaceQuotaByName(quotaName string, spaceGUID string, orgGUID string) (v7action.Warnings, error)
	AssignIsolationSegmentToSpaceByNameAndSpace(isolationSegmentName string, spaceGUID string) (v7action.Warnings, error)
	Authenticate(credentials map[string]string, origin string, grantType uaa.GrantType) error
	BindSecurityGroupToSpaces(securityGroupGUID string, spaces []resources.Space, lifecycle constant.SecurityGroupLifecycle) (v7action.Warnings, error)
	CancelDeployment(deploymentGUID string) (v7action.Warnings, error)
	CheckRoute(domainName string, hostname string, path string, port int) (bool, v7action.Warnings, error)
	ClearTarget()
	CopyPackage(sourceApp resources.Application, targetApp resources.Application) (resources.Package, v7action.Warnings, error)
	CreateAndUploadBitsPackageByApplicationNameAndSpace(appName string, spaceGUID string, bitsPath string) (resources.Package, v7action.Warnings, error)
	CreateApplicationDroplet(appGUID string) (resources.Droplet, v7action.Warnings, error)
	CreateApplicationInSpace(app resources.Application, spaceGUID string) (resources.Application, v7action.Warnings, error)
	CreateBitsPackageByApplication(appGUID string) (resources.Package, v7action.Warnings, error)
	CreateBuildpack(buildpack resources.Buildpack) (resources.Buildpack, v7action.Warnings, error)
	CreateDeploymentByApplicationAndDroplet(appGUID string, dropletGUID string) (string, v7action.Warnings, error)
	CreateDeploymentByApplicationAndRevision(appGUID string, revisionGUID string) (string, v7action.Warnings, error)
	CreateDockerPackageByApplication(appGUID string, dockerImageCredentials v7action.DockerImageCredentials) (resources.Package, v7action.Warnings, error)
	CreateDockerPackageByApplicationNameAndSpace(appName string, spaceGUID string, dockerImageCredentials v7action.DockerImageCredentials) (resources.Package, v7action.Warnings, error)
	CreateIsolationSegmentByName(isolationSegment resources.IsolationSegment) (v7action.Warnings, error)
	CreateManagedServiceInstance(managedServiceInstanceParams v7action.CreateManagedServiceInstanceParams) (chan v7action.PollJobEvent, v7action.Warnings, error)
	CreateOrgRole(roleType constant.RoleType, orgGUID string, userNameOrGUID string, userOrigin string, isClient bool) (v7action.Warnings, error)
	CreateOrganization(orgName string) (resources.Organization, v7action.Warnings, error)
	CreateOrganizationQuota(name string, limits v7action.QuotaLimits) (v7action.Warnings, error)
	CreatePrivateDomain(domainName string, orgName string) (v7action.Warnings, error)
	CreateRoute(spaceGUID, domainName, hostname, path string, port int) (resources.Route, v7action.Warnings, error)
	CreateRouteBinding(params v7action.CreateRouteBindingParams) (chan v7action.PollJobEvent, v7action.Warnings, error)
	CreateSecurityGroup(name, filePath string) (v7action.Warnings, error)
	CreateServiceAppBinding(params v7action.CreateServiceAppBindingParams) (chan v7action.PollJobEvent, v7action.Warnings, error)
	CreateServiceBroker(model resources.ServiceBroker) (v7action.Warnings, error)
	CreateServiceKey(params v7action.CreateServiceKeyParams) (chan v7action.PollJobEvent, v7action.Warnings, error)
	CreateSharedDomain(domainName string, internal bool, routerGroupName string) (v7action.Warnings, error)
	CreateSpace(spaceName, orgGUID string) (resources.Space, v7action.Warnings, error)
	CreateSpaceQuota(spaceQuotaName string, orgGuid string, limits v7action.QuotaLimits) (v7action.Warnings, error)
	CreateSpaceRole(roleType constant.RoleType, orgGUID string, spaceGUID string, userNameOrGUID string, userOrigin string, isClient bool) (v7action.Warnings, error)
	CreateUser(username string, password string, origin string) (resources.User, v7action.Warnings, error)
	CreateUserProvidedServiceInstance(instance resources.ServiceInstance) (v7action.Warnings, error)
	DeleteApplicationByNameAndSpace(name, spaceGUID string, deleteRoutes bool) (v7action.Warnings, error)
	DeleteBuildpackByNameAndStack(buildpackName string, buildpackStack string) (v7action.Warnings, error)
	DeleteDomain(domain resources.Domain) (v7action.Warnings, error)
	DeleteInstanceByApplicationNameSpaceProcessTypeAndIndex(appName string, spaceGUID string, processType string, instanceIndex int) (v7action.Warnings, error)
	DeleteOrgRole(roleType constant.RoleType, orgGUID string, userNameOrGUID string, userOrigin string, isClient bool) (v7action.Warnings, error)
	DeleteOrganization(orgName string) (v7action.Warnings, error)
	DeleteOrganizationQuota(quotaName string) (v7action.Warnings, error)
	DeleteOrphanedRoutes(spaceGUID string) (v7action.Warnings, error)
	DeleteRoute(domainName, hostname, path string, port int) (v7action.Warnings, error)
	DeleteRouteBinding(params v7action.DeleteRouteBindingParams) (chan v7action.PollJobEvent, v7action.Warnings, error)
	DeleteSecurityGroup(securityGroupName string) (v7action.Warnings, error)
	DeleteServiceAppBinding(params v7action.DeleteServiceAppBindingParams) (chan v7action.PollJobEvent, v7action.Warnings, error)
	DeleteServiceBroker(serviceBrokerGUID string) (v7action.Warnings, error)
	DeleteServiceInstance(serviceInstanceName, spaceGUID string) (chan v7action.PollJobEvent, v7action.Warnings, error)
	DeleteServiceKeyByServiceInstanceAndName(serviceInstanceName, serviceKeyName, spaceGUID string) (chan v7action.PollJobEvent, v7action.Warnings, error)
	DeleteSpaceByNameAndOrganizationName(spaceName string, orgName string) (v7action.Warnings, error)
	DeleteSpaceQuotaByName(quotaName string, orgGUID string) (v7action.Warnings, error)
	DeleteSpaceRole(roleType constant.RoleType, spaceGUID string, userNameOrGUID string, userOrigin string, isClient bool) (v7action.Warnings, error)
	DeleteUser(userGuid string) (v7action.Warnings, error)
	DeleteIsolationSegmentByName(name string) (v7action.Warnings, error)
	DeleteIsolationSegmentOrganizationByName(isolationSegmentName string, orgName string) (v7action.Warnings, error)
	DiffSpaceManifest(spaceGUID string, rawManifest []byte) (resources.ManifestDiff, v7action.Warnings, error)
	DisableFeatureFlag(flagName string) (v7action.Warnings, error)
	DisableServiceAccess(offeringName, brokerName, orgName, planName string) (v7action.SkippedPlans, v7action.Warnings, error)
	DownloadCurrentDropletByAppName(appName string, spaceGUID string) ([]byte, string, v7action.Warnings, error)
	DownloadDropletByGUIDAndAppName(dropletGUID string, appName string, spaceGUID string) ([]byte, v7action.Warnings, error)
	EnableFeatureFlag(flagName string) (v7action.Warnings, error)
	EnableServiceAccess(offeringName, brokerName, orgName, planName string) (v7action.SkippedPlans, v7action.Warnings, error)
	EntitleIsolationSegmentToOrganizationByName(isolationSegmentName string, orgName string) (v7action.Warnings, error)
	GetAppFeature(appGUID string, featureName string) (resources.ApplicationFeature, v7action.Warnings, error)
	GetAppSummariesForSpace(spaceGUID string, labels string) ([]v7action.ApplicationSummary, v7action.Warnings, error)
	GetApplicationByNameAndSpace(appName string, spaceGUID string) (resources.Application, v7action.Warnings, error)
	GetApplicationMapForRoute(route resources.Route) (map[string]resources.Application, v7action.Warnings, error)
	GetApplicationDroplets(appName string, spaceGUID string) ([]resources.Droplet, v7action.Warnings, error)
	GetApplicationLabels(appName string, spaceGUID string) (map[string]types.NullString, v7action.Warnings, error)
	GetApplicationPackages(appName string, spaceGUID string) ([]resources.Package, v7action.Warnings, error)
	GetApplicationProcessHealthChecksByNameAndSpace(appName string, spaceGUID string) ([]v7action.ProcessHealthCheck, v7action.Warnings, error)
	GetApplicationRevisionsDeployed(appGUID string) ([]resources.Revision, v7action.Warnings, error)
	GetApplicationRoutes(appGUID string) ([]resources.Route, v7action.Warnings, error)
	GetApplicationTasks(appName string, sortOrder v7action.SortOrder) ([]resources.Task, v7action.Warnings, error)
	GetApplicationsByNamesAndSpace(appNames []string, spaceGUID string) ([]resources.Application, v7action.Warnings, error)
	GetBuildpackLabels(buildpackName string, buildpackStack string) (map[string]types.NullString, v7action.Warnings, error)
	GetBuildpacks(labelSelector string) ([]resources.Buildpack, v7action.Warnings, error)
	GetCurrentUser() (configv3.User, error)
	GetDefaultDomain(orgGUID string) (resources.Domain, v7action.Warnings, error)
	GetDetailedAppSummary(appName string, spaceGUID string, withObfuscatedValues bool) (v7action.DetailedApplicationSummary, v7action.Warnings, error)
	GetDomain(domainGUID string) (resources.Domain, v7action.Warnings, error)
	GetDomainByName(domainName string) (resources.Domain, v7action.Warnings, error)
	GetDomainLabels(domainName string) (map[string]types.NullString, v7action.Warnings, error)
	GetEffectiveIsolationSegmentBySpace(spaceGUID string, orgDefaultIsolationSegmentGUID string) (resources.IsolationSegment, v7action.Warnings, error)
	GetEnvironmentVariableGroup(group constant.EnvironmentVariableGroupName) (v7action.EnvironmentVariableGroup, v7action.Warnings, error)
	GetEnvironmentVariablesByApplicationNameAndSpace(appName string, spaceGUID string) (v7action.EnvironmentVariableGroups, v7action.Warnings, error)
	GetFeatureFlagByName(featureFlagName string) (resources.FeatureFlag, v7action.Warnings, error)
	GetFeatureFlags() ([]resources.FeatureFlag, v7action.Warnings, error)
	GetGlobalRunningSecurityGroups() ([]resources.SecurityGroup, v7action.Warnings, error)
	GetGlobalStagingSecurityGroups() ([]resources.SecurityGroup, v7action.Warnings, error)
	GetIsolationSegmentsByOrganization(orgName string) ([]resources.IsolationSegment, v7action.Warnings, error)
	GetIsolationSegmentByName(isoSegmentName string) (resources.IsolationSegment, v7action.Warnings, error)
	GetIsolationSegmentSummaries() ([]v7action.IsolationSegmentSummary, v7action.Warnings, error)
	GetLatestActiveDeploymentForApp(appGUID string) (resources.Deployment, v7action.Warnings, error)
	GetLoginPrompts() (map[string]coreconfig.AuthPrompt, error)
	GetNewestReadyPackageForApplication(app resources.Application) (resources.Package, v7action.Warnings, error)
	GetOrgUsersByRoleType(orgGUID string) (map[constant.RoleType][]resources.User, v7action.Warnings, error)
	GetOrganizationByName(orgName string) (resources.Organization, v7action.Warnings, error)
	GetOrganizationDomains(string, string) ([]resources.Domain, v7action.Warnings, error)
	GetOrganizationLabels(orgName string) (map[string]types.NullString, v7action.Warnings, error)
	GetOrganizationQuotaByName(orgQuotaName string) (resources.OrganizationQuota, v7action.Warnings, error)
	GetOrganizationQuotas() ([]resources.OrganizationQuota, v7action.Warnings, error)
	GetOrganizationSpaces(orgGUID string) ([]resources.Space, v7action.Warnings, error)
	GetOrganizationSpacesWithLabelSelector(orgGUID string, labelSelector string) ([]resources.Space, v7action.Warnings, error)
	GetOrganizationSummaryByName(orgName string) (v7action.OrganizationSummary, v7action.Warnings, error)
	GetOrganizations(labelSelector string) ([]resources.Organization, v7action.Warnings, error)
	GetProcessByTypeAndApplication(processType string, appGUID string) (resources.Process, v7action.Warnings, error)
	GetRawApplicationManifestByNameAndSpace(appName string, spaceGUID string) ([]byte, v7action.Warnings, error)
	GetRecentEventsByApplicationNameAndSpace(appName string, spaceGUID string) ([]v7action.Event, v7action.Warnings, error)
	GetRecentLogsForApplicationByNameAndSpace(appName string, spaceGUID string, client sharedaction.LogCacheClient) ([]sharedaction.LogMessage, v7action.Warnings, error)
	GetRootResponse() (v7action.Info, v7action.Warnings, error)
	GetRevisionByApplicationAndVersion(appGUID string, revisionVersion int) (resources.Revision, v7action.Warnings, error)
	GetRevisionsByApplicationNameAndSpace(appName string, spaceGUID string) ([]resources.Revision, v7action.Warnings, error)
	GetRouteByAttributes(domain resources.Domain, hostname string, path string, port int) (resources.Route, v7action.Warnings, error)
	GetRouteDestinationByAppGUID(route resources.Route, appGUID string) (resources.RouteDestination, error)
	GetRouteLabels(routeName string, spaceGUID string) (map[string]types.NullString, v7action.Warnings, error)
	GetRouterGroups() ([]v7action.RouterGroup, error)
	GetRouteSummaries([]resources.Route) ([]v7action.RouteSummary, v7action.Warnings, error)
	GetRoutesByOrg(orgGUID string, labels string) ([]resources.Route, v7action.Warnings, error)
	GetRoutesBySpace(spaceGUID string, labels string) ([]resources.Route, v7action.Warnings, error)
	GetSSHEnabled(appGUID string) (ccv3.SSHEnabled, v7action.Warnings, error)
	GetSSHEnabledByAppName(appName string, spaceGUID string) (ccv3.SSHEnabled, v7action.Warnings, error)
	GetSSHPasscode() (string, error)
	GetSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndex(appName string, spaceGUID string, processType string, processIndex uint) (v7action.SSHAuthentication, v7action.Warnings, error)
	GetSecurityGroup(securityGroupName string) (resources.SecurityGroup, v7action.Warnings, error)
	GetSecurityGroupSummary(securityGroupName string) (v7action.SecurityGroupSummary, v7action.Warnings, error)
	GetSecurityGroups() ([]v7action.SecurityGroupSummary, v7action.Warnings, error)
	GetServiceAccess(offeringName, brokerName, orgName string) ([]v7action.ServicePlanAccess, v7action.Warnings, error)
	GetServiceBrokerByName(serviceBrokerName string) (resources.ServiceBroker, v7action.Warnings, error)
	GetServiceBrokerLabels(serviceBrokerName string) (map[string]types.NullString, v7action.Warnings, error)
	GetServiceBrokers() ([]resources.ServiceBroker, v7action.Warnings, error)
	GetServiceKeyByServiceInstanceAndName(serviceInstanceName, serviceKeyName, spaceGUID string) (resources.ServiceCredentialBinding, v7action.Warnings, error)
	GetServiceKeyDetailsByServiceInstanceAndName(serviceInstanceName, serviceKeyName, spaceGUID string) (resources.ServiceCredentialBindingDetails, v7action.Warnings, error)
	GetServiceInstanceByNameAndSpace(serviceInstanceName, spaceGUID string) (resources.ServiceInstance, v7action.Warnings, error)
	GetServiceInstanceDetails(serviceInstanceName, spaceGUID string, omitApps bool) (v7action.ServiceInstanceDetails, v7action.Warnings, error)
	GetServiceInstanceParameters(serviceInstanceName, spaceGUID string) (v7action.ServiceInstanceParameters, v7action.Warnings, error)
	GetServiceInstanceLabels(serviceInstanceName, spaceGUID string) (map[string]types.NullString, v7action.Warnings, error)
	GetServiceInstancesForSpace(spaceGUID string, omitApps bool) ([]v7action.ServiceInstance, v7action.Warnings, error)
	GetServiceKeysByServiceInstance(serviceInstanceName, spaceGUID string) ([]resources.ServiceCredentialBinding, v7action.Warnings, error)
	GetServiceOfferingLabels(serviceOfferingName, serviceBrokerName string) (map[string]types.NullString, v7action.Warnings, error)
	GetServicePlanLabels(servicePlanName, serviceOfferingName, serviceBrokerName string) (map[string]types.NullString, v7action.Warnings, error)
	GetServicePlanByNameOfferingAndBroker(servicePlanName, serviceOfferingName, serviceBrokerName string) (resources.ServicePlan, v7action.Warnings, error)
	GetSpaceByNameAndOrganization(spaceName string, orgGUID string) (resources.Space, v7action.Warnings, error)
	GetSpaceFeature(spaceName string, orgGUID string, feature string) (bool, v7action.Warnings, error)
	GetSpaceLabels(spaceName string, orgGUID string) (map[string]types.NullString, v7action.Warnings, error)
	GetSpaceQuotaByName(spaceQuotaName string, orgGUID string) (resources.SpaceQuota, v7action.Warnings, error)
	GetSpaceQuotasByOrgGUID(orgGUID string) ([]resources.SpaceQuota, v7action.Warnings, error)
	GetSpaceSummaryByNameAndOrganization(spaceName string, orgGUID string) (v7action.SpaceSummary, v7action.Warnings, error)
	GetSpaceUsersByRoleType(spaceGuid string) (map[constant.RoleType][]resources.User, v7action.Warnings, error)
	GetStackByName(stackName string) (resources.Stack, v7action.Warnings, error)
	GetStackLabels(stackName string) (map[string]types.NullString, v7action.Warnings, error)
	GetStacks(string) ([]resources.Stack, v7action.Warnings, error)
	GetStreamingLogsForApplicationByNameAndSpace(appName string, spaceGUID string, client sharedaction.LogCacheClient) (<-chan sharedaction.LogMessage, <-chan error, context.CancelFunc, v7action.Warnings, error)
	GetTaskBySequenceIDAndApplication(sequenceID int, appGUID string) (resources.Task, v7action.Warnings, error)
	GetUAAAPIVersion() (string, error)
	GetUnstagedNewestPackageGUID(appGuid string) (string, v7action.Warnings, error)
	GetUser(username, origin string) (resources.User, error)
	MakeCurlRequest(httpMethod string, path string, customHeaders []string, httpData string, failOnHTTPError bool) ([]byte, *http.Response, error)
	MapRoute(routeGUID string, appGUID string, destinationProtocol string) (v7action.Warnings, error)
	Marketplace(filter v7action.MarketplaceFilter) ([]v7action.ServiceOfferingWithPlans, v7action.Warnings, error)
	MoveRoute(routeGUID string, spaceGUID string) (v7action.Warnings, error)
	ParseAccessToken(accessToken string) (jwt.JWT, error)
	PollBuild(buildGUID string, appName string) (resources.Droplet, v7action.Warnings, error)
	PollPackage(pkg resources.Package) (resources.Package, v7action.Warnings, error)
	PollStart(app resources.Application, noWait bool, handleProcessStats func(string)) (v7action.Warnings, error)
	PollStartForRolling(app resources.Application, deploymentGUID string, noWait bool, handleProcessStats func(string)) (v7action.Warnings, error)
	PollTask(task resources.Task) (resources.Task, v7action.Warnings, error)
	PollUploadBuildpackJob(jobURL ccv3.JobURL) (v7action.Warnings, error)
	PrepareBuildpackBits(inputPath string, tmpDirPath string, downloader v7action.Downloader) (string, error)
	PurgeServiceInstance(serviceInstanceName, spaceGUID string) (v7action.Warnings, error)
	PurgeServiceOfferingByNameAndBroker(serviceOfferingName, serviceBrokerName string) (v7action.Warnings, error)
	RefreshAccessToken() (string, error)
	RenameApplicationByNameAndSpaceGUID(oldAppName, newAppName, spaceGUID string) (resources.Application, v7action.Warnings, error)
	RenameOrganization(oldOrgName, newOrgName string) (resources.Organization, v7action.Warnings, error)
	RenameServiceInstance(currentServiceInstanceName, spaceGUID, newServiceInstanceName string) (v7action.Warnings, error)
	RenameSpaceByNameAndOrganizationGUID(oldSpaceName, newSpaceName, orgGUID string) (resources.Space, v7action.Warnings, error)
	ResetOrganizationDefaultIsolationSegment(orgGUID string) (v7action.Warnings, error)
	ResetSpaceIsolationSegment(orgGUID string, spaceGUID string) (string, v7action.Warnings, error)
	ResourceMatch(resources []sharedaction.V3Resource) ([]sharedaction.V3Resource, v7action.Warnings, error)
	RestartApplication(appGUID string, noWait bool) (v7action.Warnings, error)
	RevokeAccessAndRefreshTokens() error
	RunTask(appGUID string, task resources.Task) (resources.Task, v7action.Warnings, error)
	ScaleProcessByApplication(appGUID string, process resources.Process) (v7action.Warnings, error)
	ScheduleTokenRefresh(func(time.Duration) <-chan time.Time, chan struct{}, chan struct{}) (<-chan error, error)
	SetApplicationDroplet(appGUID string, dropletGUID string) (v7action.Warnings, error)
	SetApplicationDropletByApplicationNameAndSpace(appName string, spaceGUID string, dropletGUID string) (v7action.Warnings, error)
	SetApplicationManifest(appGUID string, rawManifest []byte) (v7action.Warnings, error)
	SetApplicationProcessHealthCheckTypeByNameAndSpace(appName string, spaceGUID string, healthCheckType constant.HealthCheckType, httpEndpoint string, processType string, invocationTimeout int64) (resources.Application, v7action.Warnings, error)
	SetEnvironmentVariableByApplicationNameAndSpace(appName string, spaceGUID string, envPair v7action.EnvironmentVariablePair) (v7action.Warnings, error)
	SetEnvironmentVariableGroup(group constant.EnvironmentVariableGroupName, envVars resources.EnvironmentVariables) (v7action.Warnings, error)
	SetOrganizationDefaultIsolationSegment(orgGUID string, isoSegGUID string) (v7action.Warnings, error)
	SetSpaceManifest(spaceGUID string, rawManifest []byte) (v7action.Warnings, error)
	SetTarget(settings v7action.TargetSettings) (v7action.Warnings, error)
	SharePrivateDomain(domainName string, orgName string) (v7action.Warnings, error)
	ShareServiceInstanceToSpaceAndOrg(serviceInstanceName, targetedSpaceGUID, targetedOrgGUID string, sharedToDetails v7action.ServiceInstanceSharingParams) (v7action.Warnings, error)
	ShareRoute(routeGUID string, spaceGUID string) (v7action.Warnings, error)
	StageApplicationPackage(pkgGUID string) (resources.Build, v7action.Warnings, error)
	StagePackage(packageGUID, appName, spaceGUID string) (<-chan resources.Droplet, <-chan v7action.Warnings, <-chan error)
	StartApplication(appGUID string) (v7action.Warnings, error)
	StopApplication(appGUID string) (v7action.Warnings, error)
	TerminateTask(taskGUID string) (resources.Task, v7action.Warnings, error)
	UnbindSecurityGroup(securityGroupName string, orgGUID string, spaceGUID string, lifecycle constant.SecurityGroupLifecycle) (v7action.Warnings, error)
	UnmapRoute(routeGUID string, destinationGUID string) (v7action.Warnings, error)
	UnsetEnvironmentVariableByApplicationNameAndSpace(appName string, spaceGUID string, EnvironmentVariableName string) (v7action.Warnings, error)
	UnsetSpaceQuota(spaceQuotaName, spaceName, orgGUID string) (v7action.Warnings, error)
	UnsharePrivateDomain(domainName string, orgName string) (v7action.Warnings, error)
	UnshareRoute(routeGUID string, spaceGUID string) (v7action.Warnings, error)
	UnshareServiceInstanceFromSpaceAndOrg(serviceInstanceName, targetedSpaceGUID, targetedOrgGUID string, unshareFromDetails v7action.ServiceInstanceSharingParams) (v7action.Warnings, error)
	UpdateAppFeature(app resources.Application, enabled bool, featureName string) (v7action.Warnings, error)
	UpdateApplication(app resources.Application) (resources.Application, v7action.Warnings, error)
	UpdateApplicationLabelsByApplicationName(string, string, map[string]types.NullString) (v7action.Warnings, error)
	UpdateBuildpackByNameAndStack(buildpackName string, buildpackStack string, buildpack resources.Buildpack) (resources.Buildpack, v7action.Warnings, error)
	UpdateBuildpackLabelsByBuildpackNameAndStack(string, string, map[string]types.NullString) (v7action.Warnings, error)
	UpdateDestination(string, string, string) (v7action.Warnings, error)
	UpdateDomainLabelsByDomainName(string, map[string]types.NullString) (v7action.Warnings, error)
	UpdateManagedServiceInstance(params v7action.UpdateManagedServiceInstanceParams) (chan v7action.PollJobEvent, v7action.Warnings, error)
	UpgradeManagedServiceInstance(serviceInstanceName, spaceGUID string) (chan v7action.PollJobEvent, v7action.Warnings, error)
	UpdateOrganizationLabelsByOrganizationName(string, map[string]types.NullString) (v7action.Warnings, error)
	UpdateOrganizationQuota(quotaName string, newName string, limits v7action.QuotaLimits) (v7action.Warnings, error)
	UpdateProcessByTypeAndApplication(processType string, appGUID string, updatedProcess resources.Process) (v7action.Warnings, error)
	UpdateRouteLabels(string, string, map[string]types.NullString) (v7action.Warnings, error)
	UpdateSecurityGroup(name, filePath string) (v7action.Warnings, error)
	UpdateSecurityGroupGloballyEnabled(securityGroupName string, lifecycle constant.SecurityGroupLifecycle, enabled bool) (v7action.Warnings, error)
	UpdateServiceBroker(serviceBrokerGUID string, model resources.ServiceBroker) (v7action.Warnings, error)
	UpdateServiceBrokerLabelsByServiceBrokerName(string, map[string]types.NullString) (v7action.Warnings, error)
	UpdateServiceInstanceLabels(serviceInstanceName, spaceGUID string, labels map[string]types.NullString) (v7action.Warnings, error)
	UpdateServiceOfferingLabels(serviceOfferingName string, serviceBrokerName string, labels map[string]types.NullString) (v7action.Warnings, error)
	UpdateServicePlanLabels(servicePlanName string, serviceOfferingName string, serviceBrokerName string, labels map[string]types.NullString) (v7action.Warnings, error)
	UpdateSpaceFeature(spaceName string, orgGUID string, enableds bool, feature string) (v7action.Warnings, error)
	UpdateSpaceLabelsBySpaceName(string, string, map[string]types.NullString) (v7action.Warnings, error)
	UpdateSpaceQuota(quotaName, orgGUID, newName string, limits v7action.QuotaLimits) (v7action.Warnings, error)
	UpdateStackLabelsByStackName(string, map[string]types.NullString) (v7action.Warnings, error)
	UpdateUserPassword(userGUID string, oldPassword string, newPassword string) error
	UpdateUserProvidedServiceInstance(serviceInstanceName, spaceGUID string, serviceInstanceUpdates resources.ServiceInstance) (v7action.Warnings, error)
	UploadBitsPackage(pkg resources.Package, matchedResources []sharedaction.V3Resource, newResources io.Reader, newResourcesLength int64) (resources.Package, v7action.Warnings, error)
	UploadBuildpack(guid string, pathToBuildpackBits string, progressBar v7action.SimpleProgressBar) (ccv3.JobURL, v7action.Warnings, error)
	UploadDroplet(dropletGUID string, dropletPath string, progressReader io.Reader, fileSize int64) (v7action.Warnings, error)
}

type ActorReloader

type ActorReloader interface {
	Reload(command.Config, command.UI) (Actor, error)
}

type ActualActorReloader

type ActualActorReloader struct{}

func (ActualActorReloader) Reload

func (a ActualActorReloader) Reload(config command.Config, ui command.UI) (Actor, error)

type AddNetworkPolicyCommand

type AddNetworkPolicyCommand struct {
	BaseCommand

	RequiredArgs flag.AddNetworkPolicyArgsV7 `positional-args:"yes"`
	Port         flag.NetworkPort            `long:"port" description:"Port or range of ports for connection to destination app (Default: 8080)"`
	Protocol     flag.NetworkProtocol        `long:"protocol" description:"Protocol to connect apps with (Default: tcp)"`

	DestinationOrg   string `short:"o" description:"The org of the destination app (Default: targeted org)"`
	DestinationSpace string `short:"s" description:"The space of the destination app (Default: targeted space)"`

	NetworkingActor NetworkingActor
	// contains filtered or unexported fields
}

func (AddNetworkPolicyCommand) Execute

func (cmd AddNetworkPolicyCommand) Execute(args []string) error

func (*AddNetworkPolicyCommand) Setup

func (cmd *AddNetworkPolicyCommand) Setup(config command.Config, ui command.UI) error

type AllowSpaceSSHCommand

type AllowSpaceSSHCommand struct {
	BaseCommand

	RequiredArgs flag.Space `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (*AllowSpaceSSHCommand) Execute

func (cmd *AllowSpaceSSHCommand) Execute(args []string) error

type AppCommand

type AppCommand struct {
	BaseCommand

	RequiredArgs flag.AppName `positional-args:"yes"`
	GUID         bool         `` /* 131-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (AppCommand) Execute

func (cmd AppCommand) Execute(args []string) error

type ApplyManifestCommand

type ApplyManifestCommand struct {
	BaseCommand

	PathToManifest   flag.ManifestPathWithExistenceCheck `short:"f" description:"Path to app manifest"`
	Vars             []template.VarKV                    `long:"var" description:"Variable key value pair for variable substitution, (e.g., name=app1); can specify multiple times"`
	PathsToVarsFiles []flag.PathWithExistenceCheck       `long:"vars-file" description:"Path to a variable substitution file for manifest; can specify multiple times"`

	ManifestLocator ManifestLocator
	ManifestParser  ManifestParser

	DiffDisplayer DiffDisplayer
	CWD           string
	// contains filtered or unexported fields
}

func (ApplyManifestCommand) Execute

func (cmd ApplyManifestCommand) Execute(args []string) error

func (*ApplyManifestCommand) Setup

func (cmd *ApplyManifestCommand) Setup(config command.Config, ui command.UI) error

type AppsCommand

type AppsCommand struct {
	BaseCommand

	Labels string `long:"labels" description:"Selector to filter apps by labels"`
	// contains filtered or unexported fields
}

func (AppsCommand) Execute

func (cmd AppsCommand) Execute(args []string) error

type AuthCommand

type AuthCommand struct {
	BaseCommand

	RequiredArgs      flag.Authentication `positional-args:"yes"`
	ClientCredentials bool                `long:"client-credentials" description:"Use (non-user) service account (also called client credentials)"`
	Origin            string              `long:"origin" description:"Indicates the identity provider to be used for authentication"`
	// contains filtered or unexported fields
}

func (AuthCommand) Execute

func (cmd AuthCommand) Execute(args []string) error

type BaseCommand

type BaseCommand struct {
	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       Actor
	// contains filtered or unexported fields
}

func (*BaseCommand) GetClients

func (cmd *BaseCommand) GetClients() (*ccv3.Client, *uaa.Client)

func (*BaseCommand) Setup

func (cmd *BaseCommand) Setup(config command.Config, ui command.UI) error

type BindRouteServiceCommand

type BindRouteServiceCommand struct {
	BaseCommand

	RequiredArgs flag.RouteServiceArgs         `positional-args:"yes"`
	Parameters   flag.JSONOrFileWithValidation `` /* 230-byte string literal not displayed */
	Hostname     string                        `long:"hostname" short:"n" description:"Hostname used in combination with DOMAIN to specify the route to bind"`
	Path         flag.V7RoutePath              `long:"path" description:"Path used in combination with HOSTNAME and DOMAIN to specify the route to bind"`
	Wait         bool                          `short:"w" long:"wait" description:"Wait for the operation to complete"`
	// contains filtered or unexported fields
}

func (BindRouteServiceCommand) Examples

func (cmd BindRouteServiceCommand) Examples() string

func (BindRouteServiceCommand) Execute

func (cmd BindRouteServiceCommand) Execute(args []string) error

func (BindRouteServiceCommand) Usage

func (cmd BindRouteServiceCommand) Usage() string

type BindRunningSecurityGroupCommand

type BindRunningSecurityGroupCommand struct {
	BaseCommand

	SecurityGroup flag.SecurityGroup `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (BindRunningSecurityGroupCommand) Execute

func (cmd BindRunningSecurityGroupCommand) Execute(args []string) error

type BindSecurityGroupCommand

type BindSecurityGroupCommand struct {
	BaseCommand

	RequiredArgs flag.BindSecurityGroupV7Args `positional-args:"yes"`
	Lifecycle    flag.SecurityGroupLifecycle  `long:"lifecycle" choice:"running" choice:"staging" default:"running" description:"Lifecycle phase the group applies to."`
	Space        string                       `long:"space" description:"Space to bind the security group to. (Default: all existing spaces in org)"`
	// contains filtered or unexported fields
}

func (BindSecurityGroupCommand) Execute

func (cmd BindSecurityGroupCommand) Execute(args []string) error

type BindServiceCommand

type BindServiceCommand struct {
	BaseCommand

	RequiredArgs     flag.BindServiceArgs          `positional-args:"yes"`
	BindingName      flag.BindingName              `long:"binding-name" description:"Name to expose service instance to app process with (Default: service instance name)"`
	ParametersAsJSON flag.JSONOrFileWithValidation `` /* 238-byte string literal not displayed */
	Wait             bool                          `short:"w" long:"wait" description:"Wait for the operation to complete"`
	// contains filtered or unexported fields
}

func (BindServiceCommand) Examples

func (cmd BindServiceCommand) Examples() string

func (BindServiceCommand) Execute

func (cmd BindServiceCommand) Execute(args []string) error

func (BindServiceCommand) Usage

func (cmd BindServiceCommand) Usage() string

type BindStagingSecurityGroupCommand

type BindStagingSecurityGroupCommand struct {
	BaseCommand

	SecurityGroup flag.SecurityGroup `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (BindStagingSecurityGroupCommand) Execute

func (cmd BindStagingSecurityGroupCommand) Execute(args []string) error

type BuildpacksCommand

type BuildpacksCommand struct {
	BaseCommand

	Labels string `long:"labels" description:"Selector to filter buildpacks by labels"`
	// contains filtered or unexported fields
}

func (BuildpacksCommand) Execute

func (cmd BuildpacksCommand) Execute(args []string) error

type CancelDeploymentCommand

type CancelDeploymentCommand struct {
	BaseCommand

	RequiredArgs flag.AppName `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (*CancelDeploymentCommand) Execute

func (cmd *CancelDeploymentCommand) Execute(args []string) error

type CheckRouteCommand

type CheckRouteCommand struct {
	BaseCommand

	RequiredArgs flag.Domain      `positional-args:"yes"`
	Hostname     string           `long:"hostname" short:"n" description:"Hostname used to identify the HTTP route"`
	Path         flag.V7RoutePath `long:"path" description:"Path used to identify the HTTP route"`
	Port         int              `long:"port" description:"Port used to identify the TCP route"`
	// contains filtered or unexported fields
}

func (CheckRouteCommand) Examples

func (cmd CheckRouteCommand) Examples() string

func (CheckRouteCommand) Execute

func (cmd CheckRouteCommand) Execute(args []string) error

func (CheckRouteCommand) Usage

func (cmd CheckRouteCommand) Usage() string

type ConfigCommand

type ConfigCommand struct {
	UI           command.UI
	Config       command.Config
	AsyncTimeout flag.Timeout      `long:"async-timeout" description:"Timeout in minutes for async HTTP requests"`
	Color        flag.Color        `long:"color" description:"Enable or disable color in CLI output"`
	Locale       flag.Locale       `long:"locale" description:"Set default locale. If LOCALE is 'CLEAR', previous locale is deleted."`
	Trace        flag.PathWithBool `` /* 177-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (ConfigCommand) Execute

func (cmd ConfigCommand) Execute(args []string) error

func (*ConfigCommand) Setup

func (cmd *ConfigCommand) Setup(config command.Config, ui command.UI) error

type CopySourceCommand

type CopySourceCommand struct {
	BaseCommand

	RequiredArgs flag.CopySourceArgs `positional-args:"yes"`

	Strategy     flag.DeploymentStrategy `long:"strategy" description:"Deployment strategy, either rolling or null"`
	NoWait       bool                    `long:"no-wait" description:"Exit when the first instance of the web process is healthy"`
	NoRestart    bool                    `long:"no-restart" description:"Do not restage the destination application"`
	Organization string                  `short:"o" long:"organization" description:"Org that contains the destination application"`
	Space        string                  `short:"s" long:"space" description:"Space that contains the destination application"`

	Stager shared.AppStager
	// contains filtered or unexported fields
}

func (CopySourceCommand) Execute

func (cmd CopySourceCommand) Execute(args []string) error

func (*CopySourceCommand) Setup

func (cmd *CopySourceCommand) Setup(config command.Config, ui command.UI) error

func (*CopySourceCommand) ValidateFlags

func (cmd *CopySourceCommand) ValidateFlags() error

type CreateAppCommand

type CreateAppCommand struct {
	BaseCommand

	RequiredArgs flag.AppName `positional-args:"yes"`
	AppType      flag.AppType `` /* 128-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (CreateAppCommand) Execute

func (cmd CreateAppCommand) Execute(args []string) error

type CreateAppManifestCommand

type CreateAppManifestCommand struct {
	BaseCommand

	RequiredArgs flag.AppName `positional-args:"yes"`
	FilePath     flag.Path    `` /* 135-byte string literal not displayed */

	PWD string
	// contains filtered or unexported fields
}

func (CreateAppManifestCommand) Execute

func (cmd CreateAppManifestCommand) Execute(args []string) error

func (*CreateAppManifestCommand) Setup

func (cmd *CreateAppManifestCommand) Setup(config command.Config, ui command.UI) error

type CreateBuildpackCommand

type CreateBuildpackCommand struct {
	BaseCommand

	RequiredArgs flag.CreateBuildpackArgs `positional-args:"Yes"`

	Disable bool `long:"disable" description:"Disable the buildpack from being used for staging"`

	ProgressBar v7action.SimpleProgressBar
	// contains filtered or unexported fields
}

func (CreateBuildpackCommand) Execute

func (cmd CreateBuildpackCommand) Execute(args []string) error

func (*CreateBuildpackCommand) Setup

func (cmd *CreateBuildpackCommand) Setup(config command.Config, ui command.UI) error

type CreateIsolationSegmentCommand

type CreateIsolationSegmentCommand struct {
	BaseCommand
	RequiredArgs flag.IsolationSegmentName `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (CreateIsolationSegmentCommand) Execute

func (cmd CreateIsolationSegmentCommand) Execute(args []string) error

type CreateOrgCommand

type CreateOrgCommand struct {
	BaseCommand

	RequiredArgs flag.Organization `positional-args:"yes"`
	Quota        string            `short:"q" long:"quota" description:"Quota to assign to the newly created org"`
	// contains filtered or unexported fields
}

func (CreateOrgCommand) Execute

func (cmd CreateOrgCommand) Execute(args []string) error

type CreateOrgQuotaCommand

type CreateOrgQuotaCommand struct {
	BaseCommand

	RequiredArgs          flag.OrganizationQuota      `positional-args:"yes"`
	NumAppInstances       flag.IntegerLimit           `short:"a" description:"Total number of application instances. (Default: unlimited)."`
	PaidServicePlans      bool                        `long:"allow-paid-service-plans" description:"Allow provisioning instances of paid service plans. (Default: disallowed)."`
	PerProcessMemory      flag.MegabytesWithUnlimited `short:"i" description:"Maximum amount of memory a process can have (e.g. 1024M, 1G, 10G). (Default: unlimited)."`
	TotalMemory           flag.MegabytesWithUnlimited `` /* 142-byte string literal not displayed */
	TotalRoutes           flag.IntegerLimit           `short:"r" description:"Total number of routes. -1 represents an unlimited amount. (Default: 0)."`
	TotalReservedPorts    flag.IntegerLimit           `` /* 147-byte string literal not displayed */
	TotalServiceInstances flag.IntegerLimit           `short:"s" description:"Total number of service instances. -1 represents an unlimited amount. (Default: 0)."`
	TotalLogVolume        flag.BytesWithUnlimited     `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (CreateOrgQuotaCommand) Execute

func (cmd CreateOrgQuotaCommand) Execute(args []string) error

type CreatePackageCommand

type CreatePackageCommand struct {
	BaseCommand

	RequiredArgs flag.AppName                `positional-args:"yes"`
	DockerImage  flag.DockerImage            `long:"docker-image" short:"o" description:"Docker image to use (e.g. user/docker-image-name)"`
	AppPath      flag.PathWithExistenceCheck `short:"p" description:"Path to app directory or to a zip file of the contents of the app directory"`

	PackageDisplayer shared.PackageDisplayer
	// contains filtered or unexported fields
}

func (CreatePackageCommand) Execute

func (cmd CreatePackageCommand) Execute(args []string) error

func (*CreatePackageCommand) Setup

func (cmd *CreatePackageCommand) Setup(config command.Config, ui command.UI) error

type CreatePrivateDomainCommand

type CreatePrivateDomainCommand struct {
	BaseCommand

	RequiredArgs flag.OrgDomain `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (CreatePrivateDomainCommand) Execute

func (cmd CreatePrivateDomainCommand) Execute(args []string) error

type CreateRouteCommand

type CreateRouteCommand struct {
	BaseCommand

	RequiredArgs flag.Domain `positional-args:"yes"`

	Hostname string           `long:"hostname" short:"n" description:"Hostname for the HTTP route (required for shared domains)"`
	Path     flag.V7RoutePath `long:"path" description:"Path for the HTTP route"`
	Port     int              `long:"port" description:"Port for the TCP route (default: random port)"`
	// contains filtered or unexported fields
}

func (CreateRouteCommand) Execute

func (cmd CreateRouteCommand) Execute(args []string) error

type CreateSecurityGroupCommand

type CreateSecurityGroupCommand struct {
	BaseCommand

	RequiredArgs flag.SecurityGroupArgs `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (CreateSecurityGroupCommand) Execute

func (cmd CreateSecurityGroupCommand) Execute(args []string) error

type CreateServiceBrokerCommand

type CreateServiceBrokerCommand struct {
	BaseCommand

	PositionalArgs flag.ServiceBrokerArgs `positional-args:"yes"`
	SpaceScoped    bool                   `long:"space-scoped" description:"Make the broker's service plans only visible within the targeted space"`
	UpdateIfExists bool                   `long:"update-if-exists" description:"If the broker already exists, update it rather than failing. Ignores --space-scoped."`
	// contains filtered or unexported fields
}

func (*CreateServiceBrokerCommand) Execute

func (cmd *CreateServiceBrokerCommand) Execute(args []string) error

type CreateServiceCommand

type CreateServiceCommand struct {
	BaseCommand

	RequiredArgs     flag.CreateServiceArgs        `positional-args:"yes"`
	ServiceBroker    string                        `short:"b" description:"Create a service instance from a particular broker. Required when service offering name is ambiguous"`
	ParametersAsJSON flag.JSONOrFileWithValidation `` /* 238-byte string literal not displayed */
	Tags             flag.Tags                     `short:"t" description:"User provided tags"`
	Wait             bool                          `short:"w" long:"wait" description:"Wait for the operation to complete"`
	// contains filtered or unexported fields
}

func (CreateServiceCommand) Execute

func (cmd CreateServiceCommand) Execute(args []string) error

func (CreateServiceCommand) Usage

func (cmd CreateServiceCommand) Usage() string

type CreateServiceKeyCommand

type CreateServiceKeyCommand struct {
	BaseCommand

	RequiredArgs     flag.ServiceInstanceKey       `positional-args:"yes"`
	ParametersAsJSON flag.JSONOrFileWithValidation `` /* 238-byte string literal not displayed */
	Wait             bool                          `short:"w" long:"wait" description:"Wait for the operation to complete"`
	// contains filtered or unexported fields
}

func (CreateServiceKeyCommand) Examples

func (cmd CreateServiceKeyCommand) Examples() string

func (CreateServiceKeyCommand) Execute

func (cmd CreateServiceKeyCommand) Execute(args []string) error

func (CreateServiceKeyCommand) Usage

func (cmd CreateServiceKeyCommand) Usage() string

type CreateSharedDomainCommand

type CreateSharedDomainCommand struct {
	BaseCommand

	RequiredArgs flag.Domain `positional-args:"yes"`
	RouterGroup  string      `long:"router-group" description:"Routes for this domain will use routers in the specified router group"`
	Internal     bool        `long:"internal" description:"Applications that use internal routes communicate directly on the container network"`
	// contains filtered or unexported fields
}

func (CreateSharedDomainCommand) Execute

func (cmd CreateSharedDomainCommand) Execute(args []string) error

type CreateSpaceActor

type CreateSpaceActor interface {
	CreateSpace(spaceName, orgGUID string) (resources.Space, v7action.Warnings, error)
	CreateSpaceRole(roleType constant.RoleType, orgGUID string, spaceGUID string, userNameOrGUID string, userOrigin string, isClient bool) (v7action.Warnings, error)
	GetOrganizationByName(orgName string) (resources.Organization, v7action.Warnings, error)
	ApplySpaceQuotaByName(quotaName string, spaceGUID string, orgGUID string) (v7action.Warnings, error)
}

type CreateSpaceCommand

type CreateSpaceCommand struct {
	BaseCommand

	RequiredArgs flag.Space `positional-args:"yes"`
	Organization string     `short:"o" description:"Organization"`
	Quota        string     `long:"quota" short:"q" description:"Quota to assign to the newly created space"`
	// contains filtered or unexported fields
}

func (CreateSpaceCommand) Execute

func (cmd CreateSpaceCommand) Execute(args []string) error

type CreateSpaceQuotaCommand

type CreateSpaceQuotaCommand struct {
	BaseCommand

	RequiredArgs          flag.SpaceQuota             `positional-args:"yes"`
	NumAppInstances       flag.IntegerLimit           `short:"a" description:"Total number of application instances. (Default: unlimited)."`
	PaidServicePlans      bool                        `long:"allow-paid-service-plans" description:"Allow provisioning instances of paid service plans. (Default: disallowed)."`
	PerProcessMemory      flag.MegabytesWithUnlimited `short:"i" description:"Maximum amount of memory a process can have (e.g. 1024M, 1G, 10G). (Default: unlimited)."`
	TotalMemory           flag.MegabytesWithUnlimited `` /* 141-byte string literal not displayed */
	TotalRoutes           flag.IntegerLimit           `short:"r" description:"Total number of routes. -1 represents an unlimited amount. (Default: 0)."`
	TotalReservedPorts    flag.IntegerLimit           `` /* 147-byte string literal not displayed */
	TotalServiceInstances flag.IntegerLimit           `short:"s" description:"Total number of service instances. -1 represents an unlimited amount. (Default: 0)."`
	TotalLogVolume        flag.BytesWithUnlimited     `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (CreateSpaceQuotaCommand) Execute

func (cmd CreateSpaceQuotaCommand) Execute([]string) error

type CreateUserCommand

type CreateUserCommand struct {
	BaseCommand

	Args           flag.CreateUser `positional-args:"yes"`
	Origin         string          `long:"origin" description:"Origin for mapping a user account to a user in an external identity provider"`
	PasswordPrompt bool            `long:"password-prompt" description:"Prompt interactively for password"`
	// contains filtered or unexported fields
}

func (*CreateUserCommand) Execute

func (cmd *CreateUserCommand) Execute(args []string) error

type CreateUserProvidedServiceCommand

type CreateUserProvidedServiceCommand struct {
	BaseCommand

	RequiredArgs    flag.ServiceInstance   `positional-args:"yes"`
	SyslogDrainURL  flag.OptionalString    `short:"l" description:"URL to which logs for bound applications will be streamed"`
	Credentials     flag.CredentialsOrJSON `` /* 145-byte string literal not displayed */
	RouteServiceURL flag.OptionalString    `short:"r" description:"URL to which requests for bound routes will be forwarded. Scheme for this URL must be https"`
	Tags            flag.Tags              `short:"t" description:"User provided tags"`
	// contains filtered or unexported fields
}

func (CreateUserProvidedServiceCommand) Execute

func (cmd CreateUserProvidedServiceCommand) Execute(args []string) error

type CurlCommand

type CurlCommand struct {
	BaseCommand

	RequiredArgs           flag.APIPath    `positional-args:"yes"`
	CustomHeaders          []string        `short:"H" description:"Custom headers to include in the request, flag can be specified multiple times"`
	HTTPMethod             string          `short:"X" description:"HTTP method (GET,POST,PUT,DELETE,etc)"`
	HTTPData               flag.PathWithAt `short:"d" description:"HTTP data to include in the request body, or '@' followed by a file name to read the data from"`
	FailOnHTTPError        bool            `short:"f" long:"fail" description:"Server errors return exit code 22"`
	IncludeResponseHeaders bool            `short:"i" description:"Include response headers in the output"`
	OutputFile             flag.Path       `long:"output" description:"Write curl body to FILE instead of stdout"`
	// contains filtered or unexported fields
}

func (CurlCommand) Execute

func (cmd CurlCommand) Execute(args []string) error

type DeleteBuildpackCommand

type DeleteBuildpackCommand struct {
	BaseCommand

	RequiredArgs flag.BuildpackName `positional-args:"yes"`

	Force bool   `long:"force" short:"f" description:"Force deletion without confirmation"`
	Stack string `` /* 139-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (DeleteBuildpackCommand) Execute

func (cmd DeleteBuildpackCommand) Execute(args []string) error

type DeleteCommand

type DeleteCommand struct {
	BaseCommand

	RequiredArgs       flag.AppName `positional-args:"yes"`
	Force              bool         `short:"f" description:"Force deletion without confirmation"`
	DeleteMappedRoutes bool         `short:"r" description:"Also delete any mapped routes"`
	// contains filtered or unexported fields
}

func (DeleteCommand) Execute

func (cmd DeleteCommand) Execute(args []string) error

type DeleteIsolationSegmentCommand

type DeleteIsolationSegmentCommand struct {
	BaseCommand

	RequiredArgs flag.IsolationSegmentName `positional-args:"yes"`
	Force        bool                      `short:"f" description:"Force deletion without confirmation"`
	// contains filtered or unexported fields
}

func (DeleteIsolationSegmentCommand) Execute

func (cmd DeleteIsolationSegmentCommand) Execute(args []string) error

type DeleteOrgCommand

type DeleteOrgCommand struct {
	BaseCommand

	RequiredArgs flag.Organization `positional-args:"yes"`
	Force        bool              `short:"f" description:"Force deletion without confirmation"`
	// contains filtered or unexported fields
}

func (*DeleteOrgCommand) Execute

func (cmd *DeleteOrgCommand) Execute(args []string) error

type DeleteOrgQuotaCommand

type DeleteOrgQuotaCommand struct {
	BaseCommand

	RequiredArgs flag.Quota `positional-args:"yes"`
	Force        bool       `long:"force" short:"f" description:"Force deletion without confirmation"`
	// contains filtered or unexported fields
}

func (DeleteOrgQuotaCommand) Execute

func (cmd DeleteOrgQuotaCommand) Execute(args []string) error

type DeleteOrphanedRoutesCommand

type DeleteOrphanedRoutesCommand struct {
	BaseCommand

	Force bool `short:"f" description:"Force deletion without confirmation"`
	// contains filtered or unexported fields
}

func (DeleteOrphanedRoutesCommand) Execute

func (cmd DeleteOrphanedRoutesCommand) Execute(args []string) error

type DeletePrivateDomainCommand

type DeletePrivateDomainCommand struct {
	BaseCommand

	RequiredArgs flag.Domain `positional-args:"yes"`
	Force        bool        `short:"f" description:"Force deletion without confirmation"`
	// contains filtered or unexported fields
}

func (DeletePrivateDomainCommand) Execute

func (cmd DeletePrivateDomainCommand) Execute(args []string) error

type DeleteRouteCommand

type DeleteRouteCommand struct {
	BaseCommand

	RequiredArgs flag.Domain      `positional-args:"yes"`
	Force        bool             `short:"f" description:"Force deletion without confirmation"`
	Hostname     string           `long:"hostname" short:"n" description:"Hostname used to identify the HTTP route (required for shared domains)"`
	Path         flag.V7RoutePath `long:"path" description:"Path used to identify the HTTP route"`
	Port         int              `long:"port" description:"Port used to identify the TCP route"`
	// contains filtered or unexported fields
}

func (DeleteRouteCommand) Examples

func (cmd DeleteRouteCommand) Examples() string

func (DeleteRouteCommand) Execute

func (cmd DeleteRouteCommand) Execute(args []string) error

func (DeleteRouteCommand) Usage

func (cmd DeleteRouteCommand) Usage() string

type DeleteSecurityGroupCommand

type DeleteSecurityGroupCommand struct {
	BaseCommand

	RequiredArgs flag.SecurityGroup `positional-args:"yes"`
	Force        bool               `long:"force" short:"f" description:"Force deletion without confirmation"`
	// contains filtered or unexported fields
}

func (*DeleteSecurityGroupCommand) Execute

func (cmd *DeleteSecurityGroupCommand) Execute(args []string) error

type DeleteServiceBrokerCommand

type DeleteServiceBrokerCommand struct {
	BaseCommand

	RequiredArgs flag.ServiceBroker `positional-args:"yes"`

	Force bool `short:"f" description:"Force deletion without confirmation"`
	// contains filtered or unexported fields
}

func (DeleteServiceBrokerCommand) Execute

func (cmd DeleteServiceBrokerCommand) Execute(args []string) error

type DeleteServiceCommand

type DeleteServiceCommand struct {
	BaseCommand

	RequiredArgs flag.ServiceInstance `positional-args:"yes"`
	Force        bool                 `short:"f" long:"force" description:"Force deletion without confirmation"`
	Wait         bool                 `short:"w" long:"wait" description:"Wait for the operation to complete"`
	// contains filtered or unexported fields
}

func (DeleteServiceCommand) Execute

func (cmd DeleteServiceCommand) Execute(args []string) error

func (DeleteServiceCommand) Usage

func (cmd DeleteServiceCommand) Usage() string

type DeleteServiceKeyCommand

type DeleteServiceKeyCommand struct {
	BaseCommand

	RequiredArgs flag.ServiceInstanceKey `positional-args:"yes"`
	Force        bool                    `short:"f" description:"Force deletion without confirmation"`
	Wait         bool                    `short:"w" long:"wait" description:"Wait for the operation to complete"`
	// contains filtered or unexported fields
}

func (DeleteServiceKeyCommand) Examples

func (cmd DeleteServiceKeyCommand) Examples() string

func (DeleteServiceKeyCommand) Execute

func (cmd DeleteServiceKeyCommand) Execute(args []string) error

func (DeleteServiceKeyCommand) Usage

func (cmd DeleteServiceKeyCommand) Usage() string

type DeleteSharedDomainCommand

type DeleteSharedDomainCommand struct {
	BaseCommand

	RequiredArgs flag.Domain `positional-args:"yes"`
	Force        bool        `short:"f" description:"Force deletion without confirmation"`
	// contains filtered or unexported fields
}

func (DeleteSharedDomainCommand) Execute

func (cmd DeleteSharedDomainCommand) Execute(args []string) error

type DeleteSpaceCommand

type DeleteSpaceCommand struct {
	BaseCommand

	RequiredArgs flag.Space `positional-args:"yes"`
	Force        bool       `short:"f" description:"Force deletion without confirmation"`
	Org          string     `short:"o" description:"Delete space within specified org"`
	// contains filtered or unexported fields
}

func (DeleteSpaceCommand) Execute

func (cmd DeleteSpaceCommand) Execute(args []string) error

type DeleteSpaceQuotaCommand

type DeleteSpaceQuotaCommand struct {
	BaseCommand

	RequiredArgs flag.Quota `positional-args:"yes"`
	Force        bool       `long:"force" short:"f" description:"Force deletion without confirmation"`
	// contains filtered or unexported fields
}

func (DeleteSpaceQuotaCommand) Execute

func (cmd DeleteSpaceQuotaCommand) Execute(args []string) error

type DeleteUserCommand

type DeleteUserCommand struct {
	BaseCommand

	RequiredArgs flag.Username `positional-args:"yes"`
	Force        bool          `short:"f" description:"Prompt interactively for password"`
	Origin       string        `long:"origin" description:"Origin for mapping a user account to a user in an external identity provider"`
	// contains filtered or unexported fields
}

func (*DeleteUserCommand) Execute

func (cmd *DeleteUserCommand) Execute(args []string) error

type DiffDisplayer

type DiffDisplayer interface {
	DisplayDiff(rawManifest []byte, diff resources.ManifestDiff) error
}

type DisableFeatureFlagCommand

type DisableFeatureFlagCommand struct {
	BaseCommand

	RequiredArgs flag.Feature `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (DisableFeatureFlagCommand) Execute

func (cmd DisableFeatureFlagCommand) Execute(args []string) error

type DisableOrgIsolationCommand

type DisableOrgIsolationCommand struct {
	BaseCommand

	RequiredArgs flag.OrgIsolationArgs `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (DisableOrgIsolationCommand) Execute

func (cmd DisableOrgIsolationCommand) Execute(args []string) error

type DisableSSHCommand

type DisableSSHCommand struct {
	BaseCommand

	RequiredArgs flag.AppName `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (*DisableSSHCommand) Execute

func (cmd *DisableSSHCommand) Execute(args []string) error

type DisableServiceAccessCommand

type DisableServiceAccessCommand struct {
	BaseCommand

	RequiredArgs  flag.ServiceOffering `positional-args:"yes"`
	ServiceBroker string               `` /* 143-byte string literal not displayed */
	Organization  string               `short:"o" description:"Disable access for a specified organization"`
	ServicePlan   string               `short:"p" description:"Disable access to a specified service plan"`
	// contains filtered or unexported fields
}

func (DisableServiceAccessCommand) Execute

func (cmd DisableServiceAccessCommand) Execute(args []string) error

type DisallowSpaceSSHCommand

type DisallowSpaceSSHCommand struct {
	BaseCommand

	RequiredArgs flag.Space `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (*DisallowSpaceSSHCommand) Execute

func (cmd *DisallowSpaceSSHCommand) Execute(args []string) error

type DomainsCommand

type DomainsCommand struct {
	BaseCommand

	Labels string `long:"labels" description:"Selector to filter domains by labels"`
	// contains filtered or unexported fields
}

func (DomainsCommand) Execute

func (cmd DomainsCommand) Execute(args []string) error

type DownloadDropletCommand

type DownloadDropletCommand struct {
	BaseCommand

	RequiredArgs flag.AppName `positional-args:"yes"`
	Droplet      string       `long:"droplet" description:"The guid of the droplet to download (default: app's current droplet)."`
	Path         string       `long:"path" short:"p" description:"File path to download droplet to (default: current working directory)."`
	// contains filtered or unexported fields
}

func (DownloadDropletCommand) Execute

func (cmd DownloadDropletCommand) Execute(args []string) error

type DropletsCommand

type DropletsCommand struct {
	BaseCommand

	RequiredArgs flag.AppName `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (DropletsCommand) Execute

func (cmd DropletsCommand) Execute(args []string) error

type EnableFeatureFlagCommand

type EnableFeatureFlagCommand struct {
	BaseCommand

	RequiredArgs flag.Feature `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (EnableFeatureFlagCommand) Execute

func (cmd EnableFeatureFlagCommand) Execute(args []string) error

type EnableOrgIsolationCommand

type EnableOrgIsolationCommand struct {
	BaseCommand
	RequiredArgs flag.OrgIsolationArgs `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (EnableOrgIsolationCommand) Execute

func (cmd EnableOrgIsolationCommand) Execute(args []string) error

type EnableSSHCommand

type EnableSSHCommand struct {
	BaseCommand

	RequiredArgs flag.AppName `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (*EnableSSHCommand) Execute

func (cmd *EnableSSHCommand) Execute(args []string) error

type EnableServiceAccessCommand

type EnableServiceAccessCommand struct {
	BaseCommand

	RequiredArgs  flag.ServiceOffering `positional-args:"yes"`
	ServiceBroker string               `` /* 142-byte string literal not displayed */
	Organization  string               `short:"o" description:"Enable access for a specified organization"`
	ServicePlan   string               `short:"p" description:"Enable access to a specified service plan"`
	// contains filtered or unexported fields
}

func (EnableServiceAccessCommand) Execute

func (cmd EnableServiceAccessCommand) Execute(args []string) error

type EnvCommand

type EnvCommand struct {
	BaseCommand

	RequiredArgs flag.EnvironmentArgs `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (EnvCommand) Execute

func (cmd EnvCommand) Execute(_ []string) error

type EventsCommand

type EventsCommand struct {
	BaseCommand

	RequiredArgs flag.AppName `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (EventsCommand) Execute

func (cmd EventsCommand) Execute(_ []string) error

type FeatureFlagCommand

type FeatureFlagCommand struct {
	BaseCommand

	RequiredArgs flag.Feature `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (FeatureFlagCommand) Execute

func (cmd FeatureFlagCommand) Execute(args []string) error

type FeatureFlagsCommand

type FeatureFlagsCommand struct {
	BaseCommand
	// contains filtered or unexported fields
}

func (FeatureFlagsCommand) Execute

func (cmd FeatureFlagsCommand) Execute(args []string) error

type GetHealthCheckCommand

type GetHealthCheckCommand struct {
	BaseCommand

	RequiredArgs flag.AppName `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (GetHealthCheckCommand) DisplayProcessTable

func (cmd GetHealthCheckCommand) DisplayProcessTable(processHealthChecks []v7action.ProcessHealthCheck) error

func (GetHealthCheckCommand) Execute

func (cmd GetHealthCheckCommand) Execute(args []string) error

type IsolationSegmentsCommand

type IsolationSegmentsCommand struct {
	BaseCommand
	// contains filtered or unexported fields
}

func (IsolationSegmentsCommand) Execute

func (cmd IsolationSegmentsCommand) Execute(args []string) error

type LabelSetter

type LabelSetter interface {
	Execute(resource TargetResource, labels map[string]types.NullString) error
}

type LabelUnsetter

type LabelUnsetter interface {
	Execute(resource TargetResource, labels map[string]types.NullString) error
}

type LabelUpdater

type LabelUpdater struct {
	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       SetLabelActor

	Username string
	Action   ActionType
	// contains filtered or unexported fields
}

func (*LabelUpdater) Execute

func (cmd *LabelUpdater) Execute(targetResource TargetResource, labels map[string]types.NullString) error

type LabelsCommand

type LabelsCommand struct {
	BaseCommand

	RequiredArgs   flag.LabelsArgs `positional-args:"yes"`
	BuildpackStack string          `long:"stack" short:"s" description:"Specify stack to disambiguate buildpacks with the same name"`

	ServiceBroker   string `` /* 133-byte string literal not displayed */
	ServiceOffering string `long:"offering" short:"e" description:"Specify a service offering to disambiguate service plans with the same name."`
	// contains filtered or unexported fields
}

func (LabelsCommand) Examples

func (cmd LabelsCommand) Examples() string

func (LabelsCommand) Execute

func (cmd LabelsCommand) Execute(args []string) error

func (LabelsCommand) Resources

func (cmd LabelsCommand) Resources() string

func (LabelsCommand) Usage

func (cmd LabelsCommand) Usage() string

type LoginCommand

type LoginCommand struct {
	UI            command.UI
	Actor         Actor
	Config        command.Config
	ActorReloader ActorReloader

	APIEndpoint       string `short:"a" description:"API endpoint (e.g. https://api.example.com)"`
	Organization      string `short:"o" description:"Org"`
	Password          string `short:"p" description:"Password"`
	Space             string `short:"s" description:"Space"`
	SkipSSLValidation bool   `long:"skip-ssl-validation" description:"Skip verification of the API endpoint. Not recommended!"`
	SSO               bool   `long:"sso" description:"Prompt for a one-time passcode to login"`
	SSOPasscode       string `long:"sso-passcode" description:"One-time passcode"`
	Username          string `short:"u" description:"Username"`
	Origin            string `long:"origin" description:"Indicates the identity provider to be used for login"`
	// contains filtered or unexported fields
}

func (*LoginCommand) Execute

func (cmd *LoginCommand) Execute(args []string) error

func (*LoginCommand) Setup

func (cmd *LoginCommand) Setup(config command.Config, ui command.UI) error

type LogoutCommand

type LogoutCommand struct {
	BaseCommand
	// contains filtered or unexported fields
}

func (LogoutCommand) Execute

func (cmd LogoutCommand) Execute(args []string) error

func (*LogoutCommand) Setup

func (cmd *LogoutCommand) Setup(config command.Config, ui command.UI) error

type LogsCommand

type LogsCommand struct {
	BaseCommand

	RequiredArgs flag.AppName `positional-args:"yes"`
	Recent       bool         `long:"recent" description:"Dump recent logs instead of tailing"`

	LogCacheClient sharedaction.LogCacheClient
	// contains filtered or unexported fields
}

func (LogsCommand) Execute

func (cmd LogsCommand) Execute(args []string) error

func (*LogsCommand) Setup

func (cmd *LogsCommand) Setup(config command.Config, ui command.UI) error

type ManifestLocator

type ManifestLocator interface {
	Path(filepathOrDirectory string) (string, bool, error)
}

type ManifestParser

type ManifestParser interface {
	InterpolateManifest(pathToManifest string, pathsToVarsFiles []string, vars []template.VarKV) ([]byte, error)
	ParseManifest(pathToManifest string, rawManifest []byte) (manifestparser.Manifest, error)
	MarshalManifest(manifest manifestparser.Manifest) ([]byte, error)
}

type MapRouteCommand

type MapRouteCommand struct {
	BaseCommand

	RequiredArgs flag.AppDomain   `positional-args:"yes"`
	Hostname     string           `long:"hostname" short:"n" description:"Hostname for the HTTP route (required for shared domains)"`
	Path         flag.V7RoutePath `long:"path" description:"Path for the HTTP route"`
	Port         int              `long:"port" description:"Port for the TCP route (default: random port)"`
	AppProtocol  string           `` /* 145-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (MapRouteCommand) Examples

func (cmd MapRouteCommand) Examples() string

func (MapRouteCommand) Execute

func (cmd MapRouteCommand) Execute(args []string) error

func (MapRouteCommand) Usage

func (cmd MapRouteCommand) Usage() string

type MarketplaceCommand

type MarketplaceCommand struct {
	BaseCommand

	ServiceOfferingName string `short:"e" description:"Show plan details for a particular service offering"`
	ServiceBrokerName   string `short:"b" description:"Only show details for a particular service broker"`
	NoPlans             bool   `long:"no-plans" description:"Hide plan information for service offerings"`
	ShowUnavailable     bool   `long:"show-unavailable" description:"Show plans that are not available for use"`
	// contains filtered or unexported fields
}

func (MarketplaceCommand) Execute

func (cmd MarketplaceCommand) Execute(args []string) error

type MoveRouteCommand

type MoveRouteCommand struct {
	BaseCommand

	RequireArgs      flag.Domain      `positional-args:"yes"`
	Hostname         string           `long:"hostname" short:"n" description:"Hostname for the HTTP route (required for shared domains)"`
	Path             flag.V7RoutePath `long:"path" description:"Path for the HTTP route"`
	DestinationOrg   string           `short:"o" description:"The org of the destination app (Default: targeted org)"`
	DestinationSpace string           `short:"s" description:"The space of the destination app (Default: targeted space)"`
	// contains filtered or unexported fields
}

func (MoveRouteCommand) Examples

func (cmd MoveRouteCommand) Examples() string

func (MoveRouteCommand) Execute

func (cmd MoveRouteCommand) Execute(args []string) error

func (MoveRouteCommand) Usage

func (cmd MoveRouteCommand) Usage() string

type NetworkPoliciesActor

type NetworkPoliciesActor interface {
	NetworkPoliciesBySpaceAndAppName(spaceGUID string, srcAppName string) ([]cfnetworkingaction.Policy, cfnetworkingaction.Warnings, error)
	NetworkPoliciesBySpace(spaceGUID string) ([]cfnetworkingaction.Policy, cfnetworkingaction.Warnings, error)
}

type NetworkPoliciesCommand

type NetworkPoliciesCommand struct {
	BaseCommand

	SourceApp string `long:"source" required:"false" description:"Source app to filter results by"`

	NetworkingActor NetworkPoliciesActor
	// contains filtered or unexported fields
}

func (NetworkPoliciesCommand) Execute

func (cmd NetworkPoliciesCommand) Execute(args []string) error

func (*NetworkPoliciesCommand) Setup

func (cmd *NetworkPoliciesCommand) Setup(config command.Config, ui command.UI) error

type NetworkingActor

type NetworkingActor interface {
	AddNetworkPolicy(srcSpaceGUID string, srcAppName string, destSpaceGUID string, destAppName string, protocol string, startPort int, endPort int) (cfnetworkingaction.Warnings, error)
}

type OauthTokenCommand

type OauthTokenCommand struct {
	BaseCommand
	// contains filtered or unexported fields
}

func (OauthTokenCommand) Execute

func (cmd OauthTokenCommand) Execute(_ []string) error

type OrgCommand

type OrgCommand struct {
	BaseCommand

	RequiredArgs flag.Organization `positional-args:"yes"`
	GUID         bool              `long:"guid" description:"Retrieve and display the given org's guid.  All other output for the org is suppressed."`
	// contains filtered or unexported fields
}

func (OrgCommand) Execute

func (cmd OrgCommand) Execute(args []string) error

type OrgQuotaCommand

type OrgQuotaCommand struct {
	BaseCommand

	RequiredArgs flag.OrganizationQuota `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (OrgQuotaCommand) Execute

func (cmd OrgQuotaCommand) Execute(args []string) error

type OrgQuotasCommand

type OrgQuotasCommand struct {
	BaseCommand
	// contains filtered or unexported fields
}

func (OrgQuotasCommand) Execute

func (cmd OrgQuotasCommand) Execute(args []string) error

type OrgUsersCommand

type OrgUsersCommand struct {
	BaseCommand

	RequiredArgs flag.Organization `positional-args:"yes"`
	AllUsers     bool              `long:"all-users" short:"a" description:"List all users with roles in the org or in spaces within the org"`
	// contains filtered or unexported fields
}

func (*OrgUsersCommand) Execute

func (cmd *OrgUsersCommand) Execute(args []string) error

type OrgsCommand

type OrgsCommand struct {
	BaseCommand

	Labels string `long:"labels" description:"Selector to filter orgs by labels"`
	// contains filtered or unexported fields
}

func (OrgsCommand) Execute

func (cmd OrgsCommand) Execute(args []string) error

type PackagesCommand

type PackagesCommand struct {
	BaseCommand

	RequiredArgs flag.AppName `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (PackagesCommand) Execute

func (cmd PackagesCommand) Execute(args []string) error

type PasswdCommand

type PasswdCommand struct {
	BaseCommand
	// contains filtered or unexported fields
}

func (PasswdCommand) Execute

func (cmd PasswdCommand) Execute(args []string) error

type ProgressBar

type ProgressBar interface {
	v7pushaction.ProgressBar
	Complete()
	Ready()
}

type PurgeServiceInstanceCommand

type PurgeServiceInstanceCommand struct {
	BaseCommand

	RequiredArgs flag.ServiceInstance `positional-args:"yes"`
	Force        bool                 `short:"f" long:"force" description:"Force deletion without confirmation"`
	// contains filtered or unexported fields
}

func (PurgeServiceInstanceCommand) Execute

func (cmd PurgeServiceInstanceCommand) Execute(args []string) error

func (PurgeServiceInstanceCommand) Usage

func (cmd PurgeServiceInstanceCommand) Usage() string

type PurgeServiceOfferingCommand

type PurgeServiceOfferingCommand struct {
	BaseCommand

	RequiredArgs  flag.ServiceOffering `positional-args:"yes"`
	ServiceBroker string               `` /* 131-byte string literal not displayed */
	Force         bool                 `short:"f" description:"Force deletion without confirmation"`
	// contains filtered or unexported fields
}

func (PurgeServiceOfferingCommand) Execute

func (cmd PurgeServiceOfferingCommand) Execute(args []string) error

type PushActor

type PushActor interface {
	HandleFlagOverrides(baseManifest manifestparser.Manifest, flagOverrides v7pushaction.FlagOverrides) (manifestparser.Manifest, error)
	CreatePushPlans(spaceGUID string, orgGUID string, manifest manifestparser.Manifest, overrides v7pushaction.FlagOverrides) ([]v7pushaction.PushPlan, v7action.Warnings, error)
	// Actualize applies any necessary changes.
	Actualize(plan v7pushaction.PushPlan, progressBar v7pushaction.ProgressBar) <-chan *v7pushaction.PushEvent
}

type PushCommand

type PushCommand struct {
	BaseCommand

	OptionalArgs            flag.OptionalAppName                `positional-args:"yes"`
	HealthCheckTimeout      flag.PositiveInteger                `` /* 155-byte string literal not displayed */
	Buildpacks              []string                            `` /* 334-byte string literal not displayed */
	Disk                    string                              `long:"disk" short:"k" description:"Disk limit (e.g. 256M, 1024M, 1G)"`
	DockerImage             flag.DockerImage                    `long:"docker-image" short:"o" description:"Docker image to use (e.g. user/docker-image-name)"`
	DockerUsername          string                              `long:"docker-username" description:"Repository username; used with password from environment variable CF_DOCKER_PASSWORD"`
	DropletPath             flag.PathWithExistenceCheck         `long:"droplet" description:"Path to a tgz file with a pre-staged app"`
	HealthCheckHTTPEndpoint string                              `` /* 129-byte string literal not displayed */
	HealthCheckType         flag.HealthCheckType                `` /* 157-byte string literal not displayed */
	Instances               flag.Instances                      `long:"instances" short:"i" description:"Number of instances"`
	LogRateLimit            string                              `` /* 129-byte string literal not displayed */
	PathToManifest          flag.ManifestPathWithExistenceCheck `long:"manifest" short:"f" description:"Path to manifest"`
	Memory                  string                              `long:"memory" short:"m" description:"Memory limit (e.g. 256M, 1024M, 1G)"`
	NoManifest              bool                                `long:"no-manifest" description:"Ignore manifest file"`
	NoRoute                 bool                                `long:"no-route" description:"Do not map a route to this app"`
	NoStart                 bool                                `long:"no-start" description:"Do not stage and start the app after pushing"`
	NoWait                  bool                                `long:"no-wait" description:"Exit when the first instance of the web process is healthy"`
	AppPath                 flag.PathWithExistenceCheck         `long:"path" short:"p" description:"Path to app directory or to a zip file of the contents of the app directory"`
	RandomRoute             bool                                `long:"random-route" description:"Create a random route for this app (except when no-route is specified in the manifest)"`
	Stack                   string                              `` /* 136-byte string literal not displayed */
	StartCommand            flag.Command                        `long:"start-command" short:"c" description:"Startup command, set to null to reset to default start command"`
	Strategy                flag.DeploymentStrategy             `long:"strategy" description:"Deployment strategy, either rolling or null."`
	Task                    bool                                `` /* 146-byte string literal not displayed */
	Vars                    []template.VarKV                    `long:"var" description:"Variable key value pair for variable substitution, (e.g., name=app1); can specify multiple times"`
	PathsToVarsFiles        []flag.PathWithExistenceCheck       `long:"vars-file" description:"Path to a variable substitution file for manifest; can specify multiple times"`

	LogCacheClient  sharedaction.LogCacheClient
	PushActor       PushActor
	VersionActor    V7ActorForPush
	ProgressBar     ProgressBar
	CWD             string
	ManifestLocator ManifestLocator
	ManifestParser  ManifestParser
	DiffDisplayer   DiffDisplayer
	// contains filtered or unexported fields
}

func (PushCommand) Execute

func (cmd PushCommand) Execute(args []string) error

func (PushCommand) GetBaseManifest

func (cmd PushCommand) GetBaseManifest(flagOverrides v7pushaction.FlagOverrides) (manifestparser.Manifest, error)

func (PushCommand) GetDockerPassword

func (cmd PushCommand) GetDockerPassword(dockerUsername string, containsPrivateDockerImages bool) (string, error)

func (PushCommand) GetFlagOverrides

func (cmd PushCommand) GetFlagOverrides() (v7pushaction.FlagOverrides, error)

func (*PushCommand) Setup

func (cmd *PushCommand) Setup(config command.Config, ui command.UI) error

func (PushCommand) ValidateFlags

func (cmd PushCommand) ValidateFlags() error

type RemoveNetworkPolicyActor

type RemoveNetworkPolicyActor interface {
	RemoveNetworkPolicy(srcSpaceGUID string, srcAppName string, destSpaceGUID string, destAppName string, protocol string, startPort int, endPort int) (cfnetworkingaction.Warnings, error)
}

type RemoveNetworkPolicyCommand

type RemoveNetworkPolicyCommand struct {
	BaseCommand

	RequiredArgs     flag.RemoveNetworkPolicyArgsV7 `positional-args:"yes"`
	Port             flag.NetworkPort               `long:"port" required:"true" description:"Port or range of ports that destination app is connected with"`
	Protocol         flag.NetworkProtocol           `long:"protocol" required:"true" description:"Protocol that apps are connected with"`
	DestinationOrg   string                         `short:"o" description:"The org of the destination app (Default: targeted org)"`
	DestinationSpace string                         `short:"s" description:"The space of the destination app (Default: targeted space)"`

	NetworkingActor RemoveNetworkPolicyActor
	// contains filtered or unexported fields
}

func (RemoveNetworkPolicyCommand) Execute

func (cmd RemoveNetworkPolicyCommand) Execute(args []string) error

func (*RemoveNetworkPolicyCommand) Setup

func (cmd *RemoveNetworkPolicyCommand) Setup(config command.Config, ui command.UI) error

type RenameCommand

type RenameCommand struct {
	BaseCommand

	RequiredArgs flag.Rename `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (RenameCommand) Execute

func (cmd RenameCommand) Execute(args []string) error

type RenameOrgCommand

type RenameOrgCommand struct {
	BaseCommand

	RequiredArgs flag.RenameOrgArgs `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (RenameOrgCommand) Execute

func (cmd RenameOrgCommand) Execute(args []string) error

type RenameServiceBrokerCommand

type RenameServiceBrokerCommand struct {
	BaseCommand

	RequiredArgs flag.RenameServiceBrokerArgs `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (*RenameServiceBrokerCommand) Execute

func (cmd *RenameServiceBrokerCommand) Execute(args []string) error

type RenameServiceCommand

type RenameServiceCommand struct {
	BaseCommand
	RequiredArgs flag.RenameServiceArgs `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (RenameServiceCommand) Execute

func (cmd RenameServiceCommand) Execute(args []string) error

func (RenameServiceCommand) Usage

func (cmd RenameServiceCommand) Usage() string

type RenameSpaceCommand

type RenameSpaceCommand struct {
	BaseCommand

	RequiredArgs flag.RenameSpace `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (RenameSpaceCommand) Execute

func (cmd RenameSpaceCommand) Execute(args []string) error

type ResetOrgDefaultIsolationSegmentCommand

type ResetOrgDefaultIsolationSegmentCommand struct {
	BaseCommand

	RequiredArgs flag.ResetOrgDefaultIsolationArgs `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (ResetOrgDefaultIsolationSegmentCommand) Execute

type ResetSpaceIsolationSegmentCommand

type ResetSpaceIsolationSegmentCommand struct {
	BaseCommand

	RequiredArgs flag.ResetSpaceIsolationArgs `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (ResetSpaceIsolationSegmentCommand) Execute

func (cmd ResetSpaceIsolationSegmentCommand) Execute(args []string) error

type ResourceType

type ResourceType string
const (
	App             ResourceType = "app"
	Buildpack       ResourceType = "buildpack"
	Domain          ResourceType = "domain"
	Org             ResourceType = "org"
	Route           ResourceType = "route"
	Space           ResourceType = "space"
	Stack           ResourceType = "stack"
	ServiceBroker   ResourceType = "service-broker"
	ServiceInstance ResourceType = "service-instance"
	ServiceOffering ResourceType = "service-offering"
	ServicePlan     ResourceType = "service-plan"
)

type RestageCommand

type RestageCommand struct {
	BaseCommand

	RequiredArgs flag.AppName            `positional-args:"yes"`
	Strategy     flag.DeploymentStrategy `long:"strategy" description:"Deployment strategy, either rolling or null."`
	NoWait       bool                    `long:"no-wait" description:"Exit when the first instance of the web process is healthy"`

	Stager shared.AppStager
	// contains filtered or unexported fields
}

func (RestageCommand) Execute

func (cmd RestageCommand) Execute(args []string) error

func (*RestageCommand) Setup

func (cmd *RestageCommand) Setup(config command.Config, ui command.UI) error

type RestartAppInstanceCommand

type RestartAppInstanceCommand struct {
	BaseCommand

	RequiredArgs flag.AppInstance `positional-args:"yes"`
	ProcessType  string           `long:"process" default:"web" description:"Process to restart"`
	// contains filtered or unexported fields
}

func (RestartAppInstanceCommand) Execute

func (cmd RestartAppInstanceCommand) Execute(args []string) error

type RestartCommand

type RestartCommand struct {
	BaseCommand

	RequiredArgs flag.AppName            `positional-args:"yes"`
	Strategy     flag.DeploymentStrategy `long:"strategy" description:"Deployment strategy, either rolling or null."`
	NoWait       bool                    `long:"no-wait" description:"Exit when the first instance of the web process is healthy"`

	Stager shared.AppStager
	// contains filtered or unexported fields
}

func (RestartCommand) Execute

func (cmd RestartCommand) Execute(args []string) error

func (*RestartCommand) Setup

func (cmd *RestartCommand) Setup(config command.Config, ui command.UI) error

type RevisionCommand

type RevisionCommand struct {
	BaseCommand

	RequiredArgs flag.AppName  `positional-args:"yes"`
	Version      flag.Revision `long:"version" required:"true" description:"The integer representing the specific revision to show"`
	// contains filtered or unexported fields
}

func (RevisionCommand) Execute

func (cmd RevisionCommand) Execute(_ []string) error

type RevisionsActor

type RevisionsActor interface {
	GetRevisionsByApplicationNameAndSpace(appName string, spaceGUID string) ([]resources.Revision, v7action.Warnings, error)
}

type RevisionsCommand

type RevisionsCommand struct {
	RequiredArgs flag.EnvironmentArgs `positional-args:"yes"`

	BaseCommand
	// contains filtered or unexported fields
}

func (RevisionsCommand) Execute

func (cmd RevisionsCommand) Execute(_ []string) error

type RollbackCommand

type RollbackCommand struct {
	BaseCommand

	Force        bool          `short:"f" description:"Force rollback without confirmation"`
	RequiredArgs flag.AppName  `positional-args:"yes"`
	Version      flag.Revision `long:"version" required:"true" description:"Roll back to the specified revision"`

	LogCacheClient sharedaction.LogCacheClient
	Stager         shared.AppStager
	// contains filtered or unexported fields
}

func (RollbackCommand) Execute

func (cmd RollbackCommand) Execute(args []string) error

func (*RollbackCommand) Setup

func (cmd *RollbackCommand) Setup(config command.Config, ui command.UI) error

type RouteCommand

type RouteCommand struct {
	BaseCommand

	RequiredArgs flag.Domain      `positional-args:"yes"`
	Hostname     string           `long:"hostname" short:"n" description:"Hostname used to identify the HTTP route"`
	Path         flag.V7RoutePath `long:"path" description:"Path used to identify the HTTP route"`
	Port         int              `long:"port" description:"Port used to identify the TCP route"`
	// contains filtered or unexported fields
}

func (RouteCommand) Examples

func (cmd RouteCommand) Examples() string

func (RouteCommand) Execute

func (cmd RouteCommand) Execute(args []string) error

func (RouteCommand) Usage

func (cmd RouteCommand) Usage() string

type RouterGroupsCommand

type RouterGroupsCommand struct {
	BaseCommand
	// contains filtered or unexported fields
}

func (RouterGroupsCommand) Execute

func (cmd RouterGroupsCommand) Execute(args []string) error

type RoutesCommand

type RoutesCommand struct {
	BaseCommand

	Orglevel bool   `long:"org-level" description:"List all the routes for all spaces of current organization"`
	Labels   string `long:"labels" description:"Selector to filter routes by labels"`
	// contains filtered or unexported fields
}

func (RoutesCommand) Execute

func (cmd RoutesCommand) Execute(args []string) error

type RunTaskCommand

type RunTaskCommand struct {
	BaseCommand

	RequiredArgs flag.RunTaskArgsV7      `positional-args:"yes"`
	Command      string                  `long:"command" short:"c" description:"The command to execute"`
	Disk         flag.Megabytes          `short:"k" description:"Disk limit (e.g. 256M, 1024M, 1G)"`
	LogRateLimit flag.BytesWithUnlimited `short:"l" description:"Log rate limit per second, in bytes (e.g. 128B, 4K, 1M). -l=-1 represents unlimited"`
	Memory       flag.Megabytes          `short:"m" description:"Memory limit (e.g. 256M, 1024M, 1G)"`
	Name         string                  `long:"name" description:"Name to give the task (generated if omitted)"`
	Process      string                  `long:"process" description:"Process type to use as a template for command, memory, and disk for the created task."`
	Wait         bool                    `long:"wait" short:"w" description:"Wait for the task to complete before exiting"`
	// contains filtered or unexported fields
}

func (RunTaskCommand) Execute

func (cmd RunTaskCommand) Execute(args []string) error

type RunningEnvironmentVariableGroupCommand

type RunningEnvironmentVariableGroupCommand struct {
	BaseCommand
	// contains filtered or unexported fields
}

func (RunningEnvironmentVariableGroupCommand) Execute

type RunningSecurityGroupsCommand

type RunningSecurityGroupsCommand struct {
	BaseCommand
	// contains filtered or unexported fields
}

func (RunningSecurityGroupsCommand) Execute

func (cmd RunningSecurityGroupsCommand) Execute(args []string) error

type SSHCodeCommand

type SSHCodeCommand struct {
	BaseCommand
	// contains filtered or unexported fields
}

func (SSHCodeCommand) Execute

func (cmd SSHCodeCommand) Execute(args []string) error

type SSHCommand

type SSHCommand struct {
	BaseCommand

	RequiredArgs          flag.AppName             `positional-args:"yes"`
	ProcessIndex          uint                     `long:"app-instance-index" short:"i" default:"0" description:"App process instance index"`
	Commands              []string                 `long:"command" short:"c" description:"Command to run"`
	DisablePseudoTTY      bool                     `long:"disable-pseudo-tty" short:"T" description:"Disable pseudo-tty allocation"`
	ForcePseudoTTY        bool                     `long:"force-pseudo-tty" description:"Force pseudo-tty allocation"`
	LocalPortForwardSpecs []flag.SSHPortForwarding `short:"L" description:"Local port forward specification"`
	ProcessType           string                   `long:"process" default:"web" description:"App process name"`
	RequestPseudoTTY      bool                     `long:"request-pseudo-tty" short:"t" description:"Request pseudo-tty allocation"`
	SkipHostValidation    bool                     `long:"skip-host-validation" short:"k" description:"Skip host key validation. Not recommended!"`
	SkipRemoteExecution   bool                     `long:"skip-remote-execution" short:"N" description:"Do not execute a remote command"`

	SSHActor  SharedSSHActor
	SSHClient *clissh.SecureShell
	// contains filtered or unexported fields
}

func (SSHCommand) EvaluateTTYOption

func (cmd SSHCommand) EvaluateTTYOption() (sharedaction.TTYOption, error)

EvaluateTTYOption determines which TTY options are mutually exclusive and returns an error accordingly.

func (SSHCommand) Execute

func (cmd SSHCommand) Execute(args []string) error

func (*SSHCommand) Setup

func (cmd *SSHCommand) Setup(config command.Config, ui command.UI) error

type SSHEnabledCommand

type SSHEnabledCommand struct {
	BaseCommand

	RequiredArgs flag.AppName `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (*SSHEnabledCommand) Execute

func (cmd *SSHEnabledCommand) Execute(args []string) error

type ScaleCommand

type ScaleCommand struct {
	BaseCommand

	RequiredArgs flag.AppName            `positional-args:"yes"`
	Force        bool                    `long:"force" short:"f" description:"Force restart of app without prompt"`
	Instances    flag.Instances          `long:"instances" short:"i" required:"false" description:"Number of instances"`
	DiskLimit    flag.Megabytes          `short:"k" required:"false" description:"Disk limit (e.g. 256M, 1024M, 1G)"`
	LogRateLimit flag.BytesWithUnlimited `short:"l" required:"false" description:"Log rate limit per second, in bytes (e.g. 128B, 4K, 1M). -l=-1 represents unlimited"`
	MemoryLimit  flag.Megabytes          `short:"m" required:"false" description:"Memory limit (e.g. 256M, 1024M, 1G)"`
	ProcessType  string                  `long:"process" default:"web" description:"App process to scale"`
	// contains filtered or unexported fields
}

func (ScaleCommand) Execute

func (cmd ScaleCommand) Execute(args []string) error

type SecurityGroupCommand

type SecurityGroupCommand struct {
	BaseCommand

	RequiredArgs flag.SecurityGroup `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (SecurityGroupCommand) Execute

func (cmd SecurityGroupCommand) Execute(args []string) error

type SecurityGroupsCommand

type SecurityGroupsCommand struct {
	BaseCommand
	// contains filtered or unexported fields
}

func (SecurityGroupsCommand) Execute

func (cmd SecurityGroupsCommand) Execute(args []string) error

type ServiceAccessCommand

type ServiceAccessCommand struct {
	BaseCommand

	Broker          string `short:"b" description:"Access for plans of a particular broker"`
	ServiceOffering string `short:"e" description:"Access for plans of a particular service offering"`
	Organization    string `short:"o" description:"Plans accessible by a particular organization"`
	// contains filtered or unexported fields
}

func (ServiceAccessCommand) Execute

func (cmd ServiceAccessCommand) Execute(args []string) error

type ServiceBrokersCommand

type ServiceBrokersCommand struct {
	BaseCommand
	// contains filtered or unexported fields
}

func (*ServiceBrokersCommand) Execute

func (cmd *ServiceBrokersCommand) Execute(args []string) error

type ServiceCommand

type ServiceCommand struct {
	BaseCommand

	RequiredArgs flag.ServiceInstance `positional-args:"yes"`
	ShowGUID     bool                 `long:"guid" description:"Retrieve and display the given service instances's guid. All other output is suppressed."`
	Params       bool                 `long:"params" description:"Retrieve and display the given service instances's parameters. All other output is suppressed."`
	// contains filtered or unexported fields
}

func (ServiceCommand) Execute

func (cmd ServiceCommand) Execute(args []string) error

type ServiceKeyCommand

type ServiceKeyCommand struct {
	BaseCommand

	RequiredArgs flag.ServiceInstanceKey `positional-args:"yes"`
	GUID         bool                    `long:"guid" description:"Retrieve and display the given service-key's guid. All other output is suppressed."`
}

func (ServiceKeyCommand) Examples

func (cmd ServiceKeyCommand) Examples() string

func (ServiceKeyCommand) Execute

func (cmd ServiceKeyCommand) Execute(args []string) error

func (ServiceKeyCommand) Usage

func (cmd ServiceKeyCommand) Usage() string

type ServiceKeysCommand

type ServiceKeysCommand struct {
	BaseCommand

	RequiredArgs flag.ServiceInstance `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (ServiceKeysCommand) Examples

func (cmd ServiceKeysCommand) Examples() string

func (ServiceKeysCommand) Execute

func (cmd ServiceKeysCommand) Execute(args []string) error

func (ServiceKeysCommand) Usage

func (cmd ServiceKeysCommand) Usage() string

type ServicesCommand

type ServicesCommand struct {
	BaseCommand

	OmitApps bool `long:"no-apps" description:"Do not retrieve bound apps information."`
	// contains filtered or unexported fields
}

func (ServicesCommand) Execute

func (cmd ServicesCommand) Execute(args []string) error

func (ServicesCommand) Usage

func (cmd ServicesCommand) Usage() string

type ServicesTable

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

func NewServicesTable

func NewServicesTable(short bool, omitApps bool) *ServicesTable

func (*ServicesTable) AppendRow

func (t *ServicesTable) AppendRow(si v7action.ServiceInstance)

type SetDropletCommand

type SetDropletCommand struct {
	BaseCommand
	RequiredArgs flag.AppDroplet `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (SetDropletCommand) Execute

func (cmd SetDropletCommand) Execute(args []string) error

type SetEnvCommand

type SetEnvCommand struct {
	BaseCommand

	RequiredArgs flag.SetEnvironmentArgs `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (SetEnvCommand) Execute

func (cmd SetEnvCommand) Execute(args []string) error

type SetHealthCheckCommand

type SetHealthCheckCommand struct {
	BaseCommand

	RequiredArgs      flag.SetHealthCheckArgs `positional-args:"yes"`
	HTTPEndpoint      string                  `long:"endpoint" default:"/" description:"Path on the app"`
	InvocationTimeout flag.PositiveInteger    `long:"invocation-timeout" description:"Time (in seconds) that controls individual health check invocations"`
	ProcessType       string                  `long:"process" default:"web" description:"App process to update"`
	// contains filtered or unexported fields
}

func (SetHealthCheckCommand) Execute

func (cmd SetHealthCheckCommand) Execute(args []string) error

type SetLabelActor

type SetLabelActor interface {
	GetCurrentUser() (configv3.User, error)
	UpdateApplicationLabelsByApplicationName(string, string, map[string]types.NullString) (v7action.Warnings, error)
	UpdateBuildpackLabelsByBuildpackNameAndStack(string, string, map[string]types.NullString) (v7action.Warnings, error)
	UpdateDomainLabelsByDomainName(string, map[string]types.NullString) (v7action.Warnings, error)
	UpdateOrganizationLabelsByOrganizationName(string, map[string]types.NullString) (v7action.Warnings, error)
	UpdateRouteLabels(string, string, map[string]types.NullString) (v7action.Warnings, error)
	UpdateSpaceLabelsBySpaceName(string, string, map[string]types.NullString) (v7action.Warnings, error)
	UpdateStackLabelsByStackName(string, map[string]types.NullString) (v7action.Warnings, error)
	UpdateServiceInstanceLabels(string, string, map[string]types.NullString) (v7action.Warnings, error)
	UpdateServiceBrokerLabelsByServiceBrokerName(string, map[string]types.NullString) (v7action.Warnings, error)
	UpdateServiceOfferingLabels(serviceOfferingName string, serviceBrokerName string, labels map[string]types.NullString) (v7action.Warnings, error)
	UpdateServicePlanLabels(servicePlanName string, serviceOfferingName string, serviceBrokerName string, labels map[string]types.NullString) (v7action.Warnings, error)
}

type SetLabelCommand

type SetLabelCommand struct {
	BaseCommand

	RequiredArgs flag.SetLabelArgs `positional-args:"yes"`

	BuildpackStack  string `long:"stack" short:"s" description:"Specify stack to disambiguate buildpacks with the same name"`
	ServiceBroker   string `` /* 133-byte string literal not displayed */
	ServiceOffering string `long:"offering" short:"e" description:"Specify a service offering to disambiguate service plans with the same name."`

	LabelSetter LabelSetter
	// contains filtered or unexported fields
}

func (SetLabelCommand) Examples

func (cmd SetLabelCommand) Examples() string

func (SetLabelCommand) Execute

func (cmd SetLabelCommand) Execute(args []string) error

func (SetLabelCommand) Resources

func (cmd SetLabelCommand) Resources() string

func (*SetLabelCommand) Setup

func (cmd *SetLabelCommand) Setup(config command.Config, ui command.UI) error

func (SetLabelCommand) Usage

func (cmd SetLabelCommand) Usage() string

type SetOrgDefaultIsolationSegmentCommand

type SetOrgDefaultIsolationSegmentCommand struct {
	BaseCommand

	RequiredArgs flag.OrgIsolationArgs `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (SetOrgDefaultIsolationSegmentCommand) Execute

type SetOrgQuotaCommand

type SetOrgQuotaCommand struct {
	BaseCommand

	RequiredArgs flag.SetOrgQuotaArgs `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (*SetOrgQuotaCommand) Execute

func (cmd *SetOrgQuotaCommand) Execute(args []string) error

type SetOrgRoleCommand

type SetOrgRoleCommand struct {
	BaseCommand

	Args     flag.OrgRoleArgs `positional-args:"yes"`
	IsClient bool             `long:"client" description:"Assign an org role to a client-id of a (non-user) service account"`
	Origin   string           `long:"origin" description:"Indicates the identity provider to be used for authentication"`
	// contains filtered or unexported fields
}

func (*SetOrgRoleCommand) Execute

func (cmd *SetOrgRoleCommand) Execute(args []string) error

type SetRunningEnvironmentVariableGroupCommand

type SetRunningEnvironmentVariableGroupCommand struct {
	BaseCommand

	RequiredArgs flag.SetEnvVarGroup `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (SetRunningEnvironmentVariableGroupCommand) Execute

type SetSpaceIsolationSegmentCommand

type SetSpaceIsolationSegmentCommand struct {
	BaseCommand

	RequiredArgs flag.SpaceIsolationArgs `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (SetSpaceIsolationSegmentCommand) Execute

func (cmd SetSpaceIsolationSegmentCommand) Execute(args []string) error

type SetSpaceQuotaCommand

type SetSpaceQuotaCommand struct {
	BaseCommand

	RequiredArgs flag.SetSpaceQuotaArgs `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (*SetSpaceQuotaCommand) Execute

func (cmd *SetSpaceQuotaCommand) Execute(args []string) error

type SetSpaceRoleCommand

type SetSpaceRoleCommand struct {
	BaseCommand

	Args     flag.SpaceRoleArgs `positional-args:"yes"`
	IsClient bool               `long:"client" description:"Assign a space role to a client-id of a (non-user) service account"`
	Origin   string             `long:"origin" description:"Indicates the identity provider to be used for authentication"`
	// contains filtered or unexported fields
}

func (*SetSpaceRoleCommand) Execute

func (cmd *SetSpaceRoleCommand) Execute(args []string) error

type SetStagingEnvironmentVariableGroupCommand

type SetStagingEnvironmentVariableGroupCommand struct {
	BaseCommand

	RequiredArgs flag.SetEnvVarGroup `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (SetStagingEnvironmentVariableGroupCommand) Execute

type SharePrivateDomainCommand

type SharePrivateDomainCommand struct {
	BaseCommand

	RequiredArgs flag.OrgDomain `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (SharePrivateDomainCommand) Execute

func (cmd SharePrivateDomainCommand) Execute(args []string) error

type ShareRouteCommand

type ShareRouteCommand struct {
	BaseCommand

	RequireArgs      flag.Domain      `positional-args:"yes"`
	Hostname         string           `long:"hostname" short:"n" description:"Hostname for the HTTP route (required for shared domains)"`
	Path             flag.V7RoutePath `long:"path" description:"Path for the HTTP route"`
	DestinationOrg   string           `short:"o" description:"The org of the destination space (Default: targeted org)"`
	DestinationSpace string           `short:"s" description:"The space the route will be shared with (Default: targeted space)"`
	// contains filtered or unexported fields
}

func (ShareRouteCommand) Examples

func (cmd ShareRouteCommand) Examples() string

func (ShareRouteCommand) Execute

func (cmd ShareRouteCommand) Execute(args []string) error

func (ShareRouteCommand) Usage

func (cmd ShareRouteCommand) Usage() string

type ShareServiceCommand

type ShareServiceCommand struct {
	BaseCommand

	RequiredArgs flag.ServiceInstance `positional-args:"yes"`
	SpaceName    string               `short:"s" required:"true" description:"The space to share the service instance into"`
	OrgName      flag.OptionalString  `short:"o" required:"false" description:"Org of the other space (Default: targeted org)"`
	// contains filtered or unexported fields
}

func (ShareServiceCommand) Execute

func (cmd ShareServiceCommand) Execute(args []string) error

func (ShareServiceCommand) Usage

func (cmd ShareServiceCommand) Usage() string

type SharedSSHActor

type SharedSSHActor interface {
	ExecuteSecureShell(sshClient sharedaction.SecureShellClient, sshOptions sharedaction.SSHOptions) error
}

type SpaceCommand

type SpaceCommand struct {
	BaseCommand

	RequiredArgs       flag.Space `positional-args:"yes"`
	GUID               bool       `long:"guid" description:"Retrieve and display the given space's guid.  All other output for the space is suppressed."`
	SecurityGroupRules bool       `long:"security-group-rules" description:"Retrieve the rules for all the security groups associated with the space."`
	// contains filtered or unexported fields
}

func (SpaceCommand) Execute

func (cmd SpaceCommand) Execute(args []string) error

type SpaceQuotaCommand

type SpaceQuotaCommand struct {
	BaseCommand

	RequiredArgs flag.SpaceQuota `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (SpaceQuotaCommand) Execute

func (cmd SpaceQuotaCommand) Execute(args []string) error

type SpaceQuotasCommand

type SpaceQuotasCommand struct {
	BaseCommand
	// contains filtered or unexported fields
}

func (SpaceQuotasCommand) Execute

func (cmd SpaceQuotasCommand) Execute(args []string) error

type SpaceSSHAllowedCommand

type SpaceSSHAllowedCommand struct {
	BaseCommand

	RequiredArgs flag.Space `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (SpaceSSHAllowedCommand) Execute

func (cmd SpaceSSHAllowedCommand) Execute(args []string) error

type SpaceUsersCommand

type SpaceUsersCommand struct {
	BaseCommand

	RequiredArgs flag.SpaceUsersArgs `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (*SpaceUsersCommand) Execute

func (cmd *SpaceUsersCommand) Execute(args []string) error

type SpacesCommand

type SpacesCommand struct {
	BaseCommand

	Labels string `long:"labels" description:"Selector to filter spaces by labels"`
	// contains filtered or unexported fields
}

func (SpacesCommand) Execute

func (cmd SpacesCommand) Execute([]string) error

type StackCommand

type StackCommand struct {
	BaseCommand

	RequiredArgs flag.StackName `positional-args:"yes"`
	GUID         bool           `long:"guid" description:"Retrieve and display the given stack's guid. All other output for the stack is suppressed."`
	// contains filtered or unexported fields
}

func (*StackCommand) Execute

func (cmd *StackCommand) Execute(args []string) error

type StacksCommand

type StacksCommand struct {
	BaseCommand

	Labels string `long:"labels" description:"Selector to filter stacks by labels"`
	// contains filtered or unexported fields
}

func (StacksCommand) Execute

func (cmd StacksCommand) Execute(args []string) error

type StagePackageCommand

type StagePackageCommand struct {
	BaseCommand

	RequiredArgs flag.AppName `positional-args:"yes"`
	PackageGUID  string       `long:"package-guid" description:"The guid of the package to stage (default: latest ready package)"`

	LogCacheClient sharedaction.LogCacheClient
	// contains filtered or unexported fields
}

func (StagePackageCommand) Execute

func (cmd StagePackageCommand) Execute(args []string) error

func (*StagePackageCommand) Setup

func (cmd *StagePackageCommand) Setup(config command.Config, ui command.UI) error

type StagingEnvironmentVariableGroupCommand

type StagingEnvironmentVariableGroupCommand struct {
	BaseCommand
	// contains filtered or unexported fields
}

func (StagingEnvironmentVariableGroupCommand) Execute

type StagingSecurityGroupsCommand

type StagingSecurityGroupsCommand struct {
	BaseCommand
	// contains filtered or unexported fields
}

func (StagingSecurityGroupsCommand) Execute

func (cmd StagingSecurityGroupsCommand) Execute(args []string) error

type StartCommand

type StartCommand struct {
	BaseCommand

	RequiredArgs flag.AppName `positional-args:"yes"`

	LogCacheClient sharedaction.LogCacheClient
	Stager         shared.AppStager
	// contains filtered or unexported fields
}

func (StartCommand) Execute

func (cmd StartCommand) Execute(args []string) error

func (*StartCommand) Setup

func (cmd *StartCommand) Setup(config command.Config, ui command.UI) error

type StopCommand

type StopCommand struct {
	BaseCommand

	RequiredArgs flag.AppName `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (StopCommand) Execute

func (cmd StopCommand) Execute(args []string) error

type TargetCommand

type TargetCommand struct {
	BaseCommand

	Organization string `short:"o" description:"Organization"`
	Space        string `short:"s" description:"Space"`
	// contains filtered or unexported fields
}

func (*TargetCommand) Execute

func (cmd *TargetCommand) Execute(args []string) error

type TargetResource

type TargetResource struct {
	ResourceType    string
	ResourceName    string
	BuildpackStack  string
	ServiceBroker   string
	ServiceOffering string
}

type TasksCommand

type TasksCommand struct {
	BaseCommand

	RequiredArgs flag.AppName `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (TasksCommand) Execute

func (cmd TasksCommand) Execute(args []string) error

type TerminateTaskCommand

type TerminateTaskCommand struct {
	BaseCommand

	RequiredArgs flag.TerminateTaskArgs `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (TerminateTaskCommand) Execute

func (cmd TerminateTaskCommand) Execute(args []string) error

type UnbindRouteServiceCommand

type UnbindRouteServiceCommand struct {
	BaseCommand

	RequiredArgs flag.RouteServiceArgs `positional-args:"yes"`
	Force        bool                  `short:"f" description:"Force unbinding without confirmation"`
	Hostname     string                `long:"hostname" short:"n" description:"Hostname used in combination with DOMAIN to specify the route to unbind"`
	Path         flag.V7RoutePath      `long:"path" description:"Path used in combination with HOSTNAME and DOMAIN to specify the route to unbind"`
	Wait         bool                  `short:"w" long:"wait" description:"Wait for the operation to complete"`
	// contains filtered or unexported fields
}

func (UnbindRouteServiceCommand) Examples

func (UnbindRouteServiceCommand) Examples() string

func (UnbindRouteServiceCommand) Execute

func (cmd UnbindRouteServiceCommand) Execute(args []string) error

func (UnbindRouteServiceCommand) Usage

type UnbindRunningSecurityGroupCommand

type UnbindRunningSecurityGroupCommand struct {
	BaseCommand

	RequiredArgs flag.SecurityGroup `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (UnbindRunningSecurityGroupCommand) Execute

func (cmd UnbindRunningSecurityGroupCommand) Execute(args []string) error

type UnbindSecurityGroupCommand

type UnbindSecurityGroupCommand struct {
	BaseCommand

	RequiredArgs flag.UnbindSecurityGroupV7Args `positional-args:"yes"`
	Lifecycle    flag.SecurityGroupLifecycle    `long:"lifecycle" choice:"running" choice:"staging" default:"running" description:"Lifecycle phase the group applies to"`
	// contains filtered or unexported fields
}

func (UnbindSecurityGroupCommand) Execute

func (cmd UnbindSecurityGroupCommand) Execute(args []string) error

type UnbindServiceCommand

type UnbindServiceCommand struct {
	BaseCommand

	RequiredArgs flag.BindServiceArgs `positional-args:"yes"`
	Wait         bool                 `short:"w" long:"wait" description:"Wait for the operation to complete"`
	// contains filtered or unexported fields
}

func (UnbindServiceCommand) Execute

func (cmd UnbindServiceCommand) Execute(args []string) error

func (UnbindServiceCommand) Usage

func (cmd UnbindServiceCommand) Usage() string

type UnbindStagingSecurityGroupCommand

type UnbindStagingSecurityGroupCommand struct {
	BaseCommand

	RequiredArgs flag.SecurityGroup `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (UnbindStagingSecurityGroupCommand) Execute

func (cmd UnbindStagingSecurityGroupCommand) Execute(args []string) error

type UnmapRouteCommand

type UnmapRouteCommand struct {
	BaseCommand

	RequiredArgs flag.AppDomain   `positional-args:"yes"`
	Hostname     string           `long:"hostname" short:"n" description:"Hostname used to identify the HTTP route"`
	Path         flag.V7RoutePath `long:"path" description:"Path used to identify the HTTP route"`
	Port         int              `long:"port" description:"Port used to identify the TCP route"`
	// contains filtered or unexported fields
}

func (UnmapRouteCommand) Examples

func (cmd UnmapRouteCommand) Examples() string

func (UnmapRouteCommand) Execute

func (cmd UnmapRouteCommand) Execute(args []string) error

func (UnmapRouteCommand) Usage

func (cmd UnmapRouteCommand) Usage() string

type UnsetEnvCommand

type UnsetEnvCommand struct {
	BaseCommand

	RequiredArgs flag.UnsetEnvironmentArgs `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (UnsetEnvCommand) Execute

func (cmd UnsetEnvCommand) Execute(args []string) error

type UnsetLabelCommand

type UnsetLabelCommand struct {
	BaseCommand

	RequiredArgs flag.UnsetLabelArgs `positional-args:"yes"`

	BuildpackStack  string `long:"stack" short:"s" description:"Specify stack to disambiguate buildpacks with the same name"`
	ServiceBroker   string `` /* 133-byte string literal not displayed */
	ServiceOffering string `long:"offering" short:"e" description:"Specify a service offering to disambiguate service plans with the same name."`

	LabelUnsetter LabelUnsetter
	// contains filtered or unexported fields
}

func (UnsetLabelCommand) Examples

func (cmd UnsetLabelCommand) Examples() string

func (UnsetLabelCommand) Execute

func (cmd UnsetLabelCommand) Execute(args []string) error

func (UnsetLabelCommand) Resources

func (cmd UnsetLabelCommand) Resources() string

func (*UnsetLabelCommand) Setup

func (cmd *UnsetLabelCommand) Setup(config command.Config, ui command.UI) error

func (UnsetLabelCommand) Usage

func (cmd UnsetLabelCommand) Usage() string

type UnsetOrgRoleCommand

type UnsetOrgRoleCommand struct {
	BaseCommand

	Args     flag.OrgRoleArgs `positional-args:"yes"`
	IsClient bool             `long:"client" description:"Unassign an org role for a client-id of a (non-user) service account"`
	Origin   string           `long:"origin" description:"Indicates the identity provider to be used for authentication"`
	// contains filtered or unexported fields
}

func (*UnsetOrgRoleCommand) Execute

func (cmd *UnsetOrgRoleCommand) Execute(args []string) error

type UnsetSpaceQuotaCommand

type UnsetSpaceQuotaCommand struct {
	BaseCommand

	RequiredArgs flag.UnsetSpaceQuotaArgs `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (*UnsetSpaceQuotaCommand) Execute

func (cmd *UnsetSpaceQuotaCommand) Execute(args []string) error

type UnsetSpaceRoleCommand

type UnsetSpaceRoleCommand struct {
	BaseCommand

	Args     flag.SpaceRoleArgs `positional-args:"yes"`
	IsClient bool               `long:"client" description:"Remove space role from a client-id of a (non-user) service account"`
	Origin   string             `long:"origin" description:"Indicates the identity provider to be used for authentication"`
	// contains filtered or unexported fields
}

func (*UnsetSpaceRoleCommand) Execute

func (cmd *UnsetSpaceRoleCommand) Execute(args []string) error

type UnsharePrivateDomainCommand

type UnsharePrivateDomainCommand struct {
	BaseCommand

	RequiredArgs flag.OrgDomain `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (UnsharePrivateDomainCommand) Execute

func (cmd UnsharePrivateDomainCommand) Execute(args []string) error

type UnshareRouteCommand

type UnshareRouteCommand struct {
	BaseCommand

	RequireArgs      flag.Domain      `positional-args:"yes"`
	Hostname         string           `long:"hostname" short:"n" description:"Hostname for the HTTP route (required for shared domains)"`
	Path             flag.V7RoutePath `long:"path" description:"Path for the HTTP route"`
	DestinationOrg   string           `short:"o" description:"The org of the destination space (Default: targeted org)"`
	DestinationSpace string           `short:"s" description:"The space to be unshared (Default: targeted space)"`
	// contains filtered or unexported fields
}

func (UnshareRouteCommand) Examples

func (cmd UnshareRouteCommand) Examples() string

func (UnshareRouteCommand) Execute

func (cmd UnshareRouteCommand) Execute(args []string) error

func (UnshareRouteCommand) Usage

func (cmd UnshareRouteCommand) Usage() string

type UnshareServiceCommand

type UnshareServiceCommand struct {
	BaseCommand

	RequiredArgs flag.ShareServiceArgs `positional-args:"yes"`
	SpaceName    string                `short:"s" required:"true" description:"Space to unshare the service instance from"`
	OrgName      flag.OptionalString   `short:"o" required:"false" description:"Org of the other space (Default: targeted org)"`
	Force        bool                  `short:"f" description:"Force unshare without confirmation"`
	// contains filtered or unexported fields
}

func (UnshareServiceCommand) Execute

func (cmd UnshareServiceCommand) Execute(args []string) error

func (UnshareServiceCommand) Usage

func (cmd UnshareServiceCommand) Usage() string

type UpdateBuildpackActor

type UpdateBuildpackActor interface {
	UpdateBuildpackByNameAndStack(buildpackName string, buildpackStack string, buildpack resources.Buildpack) (resources.Buildpack, v7action.Warnings, error)
	UploadBuildpack(guid string, pathToBuildpackBits string, progressBar v7action.SimpleProgressBar) (ccv3.JobURL, v7action.Warnings, error)
	PrepareBuildpackBits(inputPath string, tmpDirPath string, downloader v7action.Downloader) (string, error)
	PollUploadBuildpackJob(jobURL ccv3.JobURL) (v7action.Warnings, error)
}

type UpdateBuildpackCommand

type UpdateBuildpackCommand struct {
	BaseCommand

	RequiredArgs flag.BuildpackName `positional-args:"Yes"`

	NewStack     string                           `long:"assign-stack" description:"Assign a stack to a buildpack that does not have a stack association"`
	Disable      bool                             `long:"disable" description:"Disable the buildpack from being used for staging"`
	Enable       bool                             `long:"enable" description:"Enable the buildpack to be used for staging"`
	Lock         bool                             `long:"lock" description:"Lock the buildpack to prevent updates"`
	Path         flag.PathWithExistenceCheckOrURL `long:"path" short:"p" description:"Path to directory or zip file"`
	Position     types.NullInt                    `long:"position" short:"i" description:"The order in which the buildpacks are checked during buildpack auto-detection"`
	NewName      string                           `long:"rename" description:"Rename an existing buildpack"`
	CurrentStack string                           `long:"stack" short:"s" description:"Specify stack to disambiguate buildpacks with the same name"`
	Unlock       bool                             `long:"unlock" description:"Unlock the buildpack to enable updates"`

	ProgressBar v7action.SimpleProgressBar
	// contains filtered or unexported fields
}

func (UpdateBuildpackCommand) Execute

func (cmd UpdateBuildpackCommand) Execute(args []string) error

func (*UpdateBuildpackCommand) Setup

func (cmd *UpdateBuildpackCommand) Setup(config command.Config, ui command.UI) error

type UpdateDestinationCommand

type UpdateDestinationCommand struct {
	BaseCommand

	RequiredArgs flag.AppDomain   `positional-args:"yes"`
	Hostname     string           `long:"hostname" short:"n" description:"Hostname for the HTTP route (required for shared domains)"`
	AppProtocol  string           `long:"app-protocol" description:"New Protocol for the route destination (http1 or http2). Only applied to HTTP routes"`
	Path         flag.V7RoutePath `long:"path" description:"Path for the HTTP route"`
	// contains filtered or unexported fields
}

func (UpdateDestinationCommand) Examples

func (cmd UpdateDestinationCommand) Examples() string

func (UpdateDestinationCommand) Execute

func (cmd UpdateDestinationCommand) Execute(args []string) error

func (UpdateDestinationCommand) Usage

func (cmd UpdateDestinationCommand) Usage() string

type UpdateOrgQuotaCommand

type UpdateOrgQuotaCommand struct {
	BaseCommand

	RequiredArgs          flag.OrganizationQuota      `positional-args:"Yes"`
	NumAppInstances       flag.IntegerLimit           `short:"a" description:"Total number of application instances. -1 represents an unlimited amount."`
	PaidServicePlans      bool                        `long:"allow-paid-service-plans" description:"Allow provisioning instances of paid service plans."`
	NoPaidServicePlans    bool                        `long:"disallow-paid-service-plans" description:"Disallow provisioning instances of paid service plans."`
	PerProcessMemory      flag.MegabytesWithUnlimited `short:"i" description:"Maximum amount of memory a process can have (e.g. 1024M, 1G, 10G). -1 represents an unlimited amount."`
	TotalMemory           flag.MegabytesWithUnlimited `` /* 128-byte string literal not displayed */
	NewName               string                      `short:"n" description:"New name"`
	TotalRoutes           flag.IntegerLimit           `short:"r" description:"Total number of routes. -1 represents an unlimited amount."`
	TotalReservedPorts    flag.IntegerLimit           `` /* 133-byte string literal not displayed */
	TotalServiceInstances flag.IntegerLimit           `short:"s" description:"Total number of service instances. -1 represents an unlimited amount."`
	TotalLogVolume        flag.BytesWithUnlimited     `` /* 140-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (UpdateOrgQuotaCommand) Execute

func (cmd UpdateOrgQuotaCommand) Execute(args []string) error

type UpdateSecurityGroupCommand

type UpdateSecurityGroupCommand struct {
	BaseCommand

	RequiredArgs flag.SecurityGroupArgs `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (UpdateSecurityGroupCommand) Execute

func (cmd UpdateSecurityGroupCommand) Execute(args []string) error

type UpdateServiceBrokerCommand

type UpdateServiceBrokerCommand struct {
	BaseCommand

	PositionalArgs flag.ServiceBrokerArgs `positional-args:"yes"`
	// contains filtered or unexported fields
}

func (UpdateServiceBrokerCommand) Execute

func (cmd UpdateServiceBrokerCommand) Execute(args []string) error

type UpdateServiceCommand

type UpdateServiceCommand struct {
	BaseCommand

	RequiredArgs flag.ServiceInstance          `positional-args:"yes"`
	Parameters   flag.JSONOrFileWithValidation `` /* 238-byte string literal not displayed */
	Plan         string                        `short:"p" description:"Change service plan for a service instance"`
	Tags         flag.Tags                     `short:"t" description:"User provided tags"`
	Wait         bool                          `short:"w" long:"wait" description:"Wait for the operation to complete"`
	Upgrade      bool                          `long:"upgrade" hidden:"true"`
	// contains filtered or unexported fields
}

func (UpdateServiceCommand) Examples

func (cmd UpdateServiceCommand) Examples() string

func (UpdateServiceCommand) Execute

func (cmd UpdateServiceCommand) Execute(args []string) error

func (UpdateServiceCommand) Usage

func (cmd UpdateServiceCommand) Usage() string

type UpdateSpaceQuotaCommand

type UpdateSpaceQuotaCommand struct {
	BaseCommand

	RequiredArgs          flag.SpaceQuota             `positional-args:"Yes"`
	NumAppInstances       flag.IntegerLimit           `short:"a" description:"Total number of application instances. -1 represents an unlimited amount."`
	PaidServicePlans      bool                        `long:"allow-paid-service-plans" description:"Allow provisioning instances of paid service plans."`
	NoPaidServicePlans    bool                        `long:"disallow-paid-service-plans" description:"Disallow provisioning instances of paid service plans."`
	PerProcessMemory      flag.MegabytesWithUnlimited `short:"i" description:"Maximum amount of memory a process can have (e.g. 1024M, 1G, 10G). -1 represents an unlimited amount."`
	TotalMemory           flag.MegabytesWithUnlimited `` /* 128-byte string literal not displayed */
	NewName               string                      `short:"n" description:"New name"`
	TotalRoutes           flag.IntegerLimit           `short:"r" description:"Total number of routes. -1 represents an unlimited amount."`
	TotalReservedPorts    flag.IntegerLimit           `` /* 133-byte string literal not displayed */
	TotalServiceInstances flag.IntegerLimit           `short:"s" description:"Total number of service instances. -1 represents an unlimited amount."`
	TotalLogVolume        flag.BytesWithUnlimited     `` /* 140-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (UpdateSpaceQuotaCommand) Execute

func (cmd UpdateSpaceQuotaCommand) Execute(args []string) error

type UpdateUserProvidedServiceCommand

type UpdateUserProvidedServiceCommand struct {
	BaseCommand

	RequiredArgs    flag.ServiceInstance   `positional-args:"yes"`
	SyslogDrainURL  flag.OptionalString    `short:"l" description:"URL to which logs for bound applications will be streamed"`
	Credentials     flag.CredentialsOrJSON `` /* 203-byte string literal not displayed */
	RouteServiceURL flag.OptionalString    `short:"r" description:"URL to which requests for bound routes will be forwarded. Scheme for this URL must be https"`
	Tags            flag.Tags              `short:"t" description:"User provided tags"`
	// contains filtered or unexported fields
}

func (*UpdateUserProvidedServiceCommand) Execute

func (cmd *UpdateUserProvidedServiceCommand) Execute(args []string) error

type UpgradeServiceCommand

type UpgradeServiceCommand struct {
	BaseCommand

	RequiredArgs flag.ServiceInstance `positional-args:"yes"`
	Force        bool                 `short:"f" long:"force" description:"Force upgrade without asking for confirmation"`
	Wait         bool                 `short:"w" long:"wait" description:"Wait for the operation to complete"`
	// contains filtered or unexported fields
}

func (UpgradeServiceCommand) Execute

func (cmd UpgradeServiceCommand) Execute(args []string) error

func (UpgradeServiceCommand) Usage

func (cmd UpgradeServiceCommand) Usage() string

type V7ActorForPush

type V7ActorForPush interface {
	GetApplicationByNameAndSpace(name string, spaceGUID string) (resources.Application, v7action.Warnings, error)
	GetDetailedAppSummary(appName string, spaceGUID string, withObfuscatedValues bool) (v7action.DetailedApplicationSummary, v7action.Warnings, error)
	SetSpaceManifest(spaceGUID string, rawManifest []byte) (v7action.Warnings, error)
	GetStreamingLogsForApplicationByNameAndSpace(appName string, spaceGUID string, client sharedaction.LogCacheClient) (<-chan sharedaction.LogMessage, <-chan error, context.CancelFunc, v7action.Warnings, error)
	RestartApplication(appGUID string, noWait bool) (v7action.Warnings, error)
}

Source Files

Directories

Path Synopsis
Package shared should not be imported by external consumers.
Package shared should not be imported by external consumers.
sharedfakes
Code generated by counterfeiter.
Code generated by counterfeiter.
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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