v7

package
v6.50.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2020 License: Apache-2.0 Imports: 40 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 APIActor

type APIActor interface {
	ClearTarget()
	SetTarget(settings v7action.TargetSettings) (v7action.Warnings, error)
}

type APICommand

type APICommand struct {
	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"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       APIActor
	// 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 AllowSpaceSSHActor

type AllowSpaceSSHActor interface {
	UpdateSpaceFeature(spaceName string, orgGUID string, enableds bool, feature string) (v7action.Warnings, error)
}

type AllowSpaceSSHCommand

type AllowSpaceSSHCommand struct {
	RequiredArgs flag.Space `positional-args:"yes"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       AllowSpaceSSHActor
	// contains filtered or unexported fields
}

func (*AllowSpaceSSHCommand) Execute

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

func (*AllowSpaceSSHCommand) Setup

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

type AppActor

type AppActor interface {
	GetApplicationByNameAndSpace(name string, spaceGUID string) (v7action.Application, v7action.Warnings, error)
	GetDetailedAppSummary(appName string, spaceGUID string, withObfuscatedValues bool) (v7action.DetailedApplicationSummary, v7action.Warnings, error)
}

type AppCommand

type AppCommand struct {
	RequiredArgs flag.AppName `positional-args:"yes"`
	GUID         bool         `` /* 131-byte string literal not displayed */

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       AppActor
	// contains filtered or unexported fields
}

func (AppCommand) Execute

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

func (*AppCommand) Setup

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

type ApplyManifestActor

type ApplyManifestActor interface {
	SetSpaceManifest(spaceGUID string, rawManifest []byte) (v7action.Warnings, error)
}

type ApplyManifestCommand

type ApplyManifestCommand struct {
	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"`

	UI              command.UI
	Config          command.Config
	SharedActor     command.SharedActor
	Actor           ApplyManifestActor
	ManifestLocator ManifestLocator
	ManifestParser  ManifestParser
	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 AppsActor

type AppsActor interface {
	GetAppSummariesForSpace(spaceGUID string, labels string) ([]v7action.ApplicationSummary, v7action.Warnings, error)
}

type AppsCommand

type AppsCommand struct {
	Labels      string `long:"labels" description:"Selector to filter apps by labels"`
	UI          command.UI
	Config      command.Config
	Actor       AppsActor
	SharedActor command.SharedActor
	// contains filtered or unexported fields
}

func (AppsCommand) Execute

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

func (*AppsCommand) Setup

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

type AuthActor

type AuthActor interface {
	Authenticate(credentials map[string]string, origin string, grantType constant.GrantType) error
	CloudControllerAPIVersion() string
	UAAAPIVersion() string
}

type AuthCommand

type AuthCommand struct {
	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"`

	UI     command.UI
	Config command.Config
	Actor  AuthActor
	// contains filtered or unexported fields
}

func (AuthCommand) Execute

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

func (*AuthCommand) Setup

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

type BuildpacksActor

type BuildpacksActor interface {
	GetBuildpacks(labelSelector string) ([]v7action.Buildpack, v7action.Warnings, error)
}

type BuildpacksCommand

type BuildpacksCommand struct {
	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       BuildpacksActor
	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

func (*BuildpacksCommand) Setup

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

type CancelDeploymentActor

type CancelDeploymentActor interface {
	GetApplicationByNameAndSpace(appName string, spaceGUID string) (v7action.Application, v7action.Warnings, error)
	GetLatestActiveDeploymentForApp(appGUID string) (v7action.Deployment, v7action.Warnings, error)
	CancelDeployment(deploymentGUID string) (v7action.Warnings, error)
}

type CancelDeploymentCommand

type CancelDeploymentCommand struct {
	RequiredArgs flag.AppName `positional-args:"yes"`

	UI          command.UI
	Config      command.Config
	Actor       CancelDeploymentActor
	SharedActor command.SharedActor
	// contains filtered or unexported fields
}

func (*CancelDeploymentCommand) Execute

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

func (*CancelDeploymentCommand) Setup

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

type CheckRouteActor

type CheckRouteActor interface {
	CheckRoute(domainName string, hostname string, path string) (bool, v7action.Warnings, error)
}

type CheckRouteCommand

type CheckRouteCommand struct {
	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 for the route"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       CheckRouteActor
	// contains filtered or unexported fields
}

func (CheckRouteCommand) Execute

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

func (*CheckRouteCommand) Setup

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

type CreateAppActor

type CreateAppActor interface {
	CreateApplicationInSpace(app v7action.Application, spaceGUID string) (v7action.Application, v7action.Warnings, error)
}

type CreateAppCommand

type CreateAppCommand struct {
	RequiredArgs flag.AppName `positional-args:"yes"`
	AppType      flag.AppType `` /* 128-byte string literal not displayed */

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       CreateAppActor
	// contains filtered or unexported fields
}

func (CreateAppCommand) Execute

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

func (*CreateAppCommand) Setup

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

type CreateAppManifestActor

type CreateAppManifestActor interface {
	GetRawApplicationManifestByNameAndSpace(appName string, spaceGUID string) ([]byte, v7action.Warnings, error)
}

type CreateAppManifestCommand

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

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       CreateAppManifestActor
	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 CreateBuildpackActor

type CreateBuildpackActor interface {
	CreateBuildpack(buildpack v7action.Buildpack) (v7action.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 CreateBuildpackCommand

type CreateBuildpackCommand struct {
	RequiredArgs flag.CreateBuildpackArgs `positional-args:"Yes"`

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

	UI          command.UI
	Config      command.Config
	ProgressBar v7action.SimpleProgressBar
	SharedActor command.SharedActor
	Actor       CreateBuildpackActor
	// 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 CreateOrgActor

type CreateOrgActor interface {
	CreateOrganization(orgName string) (v7action.Organization, v7action.Warnings, error)
	CreateOrgRole(roleType constant.RoleType, orgGUID string, userNameOrGUID string, userOrigin string, isClient bool) (v7action.Warnings, error)
	ApplyOrganizationQuotaByName(quotaName string, orgGUID string) (v7action.Warnings, error)
}

type CreateOrgCommand

type CreateOrgCommand struct {
	RequiredArgs flag.Organization `positional-args:"yes"`
	Quota        string            `short:"q" long:"quota" description:"Quota to assign to the newly created org"`

	UI          command.UI
	Config      command.Config
	Actor       CreateOrgActor
	SharedActor command.SharedActor
	// contains filtered or unexported fields
}

func (CreateOrgCommand) Execute

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

func (*CreateOrgCommand) Setup

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

type CreateOrgQuotaActor

type CreateOrgQuotaActor interface {
	CreateOrganizationQuota(name string, limits v7action.QuotaLimits) (v7action.Warnings, error)
}

type CreateOrgQuotaCommand

type CreateOrgQuotaCommand struct {
	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.MemoryWithUnlimited `short:"i" description:"Maximum amount of memory a process can have (e.g. 1024M, 1G, 10G). (Default: unlimited)."`
	TotalMemory           flag.MemoryWithUnlimited `` /* 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)."`

	UI          command.UI
	Config      command.Config
	Actor       CreateOrgQuotaActor
	SharedActor command.SharedActor
	// contains filtered or unexported fields
}

func (CreateOrgQuotaCommand) Execute

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

func (*CreateOrgQuotaCommand) Setup

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

type CreatePackageActor

type CreatePackageActor interface {
	CreateDockerPackageByApplicationNameAndSpace(appName string, spaceGUID string, dockerImageCredentials v7action.DockerImageCredentials) (v7action.Package, v7action.Warnings, error)
	CreateAndUploadBitsPackageByApplicationNameAndSpace(appName string, spaceGUID string, bitsPath string) (v7action.Package, v7action.Warnings, error)
}

type CreatePackageCommand

type CreatePackageCommand struct {
	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"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       CreatePackageActor

	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 CreatePrivateDomainActor

type CreatePrivateDomainActor interface {
	CreatePrivateDomain(domainName string, orgName string) (v7action.Warnings, error)
}

type CreatePrivateDomainCommand

type CreatePrivateDomainCommand struct {
	RequiredArgs flag.OrgDomain `positional-args:"yes"`

	UI          command.UI
	Config      command.Config
	Actor       CreatePrivateDomainActor
	SharedActor command.SharedActor
	// contains filtered or unexported fields
}

func (CreatePrivateDomainCommand) Execute

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

func (*CreatePrivateDomainCommand) Setup

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

type CreateRouteActor

type CreateRouteActor interface {
	CreateRoute(spaceGUID, domainName, hostname, path string) (v7action.Route, v7action.Warnings, error)
}

type CreateRouteCommand

type CreateRouteCommand struct {
	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"`

	UI          command.UI
	Config      command.Config
	Actor       CreateRouteActor
	SharedActor command.SharedActor
	// contains filtered or unexported fields
}

func (CreateRouteCommand) Execute

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

func (*CreateRouteCommand) Setup

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

type CreateSecurityGroupActor

type CreateSecurityGroupActor interface {
	CreateSecurityGroup(name, filePath string) (v7action.Warnings, error)
}

type CreateSecurityGroupCommand

type CreateSecurityGroupCommand struct {
	RequiredArgs flag.SecurityGroupArgs `positional-args:"yes"`

	UI          command.UI
	Config      command.Config
	Actor       CreateSecurityGroupActor
	SharedActor command.SharedActor
	// contains filtered or unexported fields
}

func (CreateSecurityGroupCommand) Execute

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

func (*CreateSecurityGroupCommand) Setup

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

type CreateServiceBrokerActor

type CreateServiceBrokerActor interface {
	CreateServiceBroker(model v7action.ServiceBrokerModel) (v7action.Warnings, error)
}

type CreateServiceBrokerCommand

type CreateServiceBrokerCommand struct {
	RequiredArgs flag.ServiceBrokerArgs `positional-args:"yes"`
	SpaceScoped  bool                   `long:"space-scoped" description:"Make the broker's service plans only visible within the targeted space"`

	SharedActor command.SharedActor
	Config      command.Config
	UI          command.UI
	Actor       CreateServiceBrokerActor
	// contains filtered or unexported fields
}

func (*CreateServiceBrokerCommand) Execute

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

func (*CreateServiceBrokerCommand) Setup

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

type CreateSharedDomainActor

type CreateSharedDomainActor interface {
	CreateSharedDomain(domainName string, internal bool) (v7action.Warnings, error)
}

type CreateSharedDomainCommand

type CreateSharedDomainCommand struct {
	RequiredArgs flag.Domain `positional-args:"yes"`
	Internal     bool        `long:"internal" description:"Applications that use internal routes communicate directly on the container network"`

	UI          command.UI
	Config      command.Config
	Actor       CreateSharedDomainActor
	SharedActor command.SharedActor
	// contains filtered or unexported fields
}

func (CreateSharedDomainCommand) Execute

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

func (*CreateSharedDomainCommand) Setup

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

type CreateSpaceActor

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

type CreateSpaceCommand

type CreateSpaceCommand struct {
	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"`

	UI          command.UI
	Config      command.Config
	Actor       CreateSpaceActor
	SharedActor command.SharedActor
	// contains filtered or unexported fields
}

func (CreateSpaceCommand) Execute

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

func (*CreateSpaceCommand) Setup

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

type CreateSpaceQuotaActor

type CreateSpaceQuotaActor interface {
	CreateSpaceQuota(spaceQuotaName string, orgGuid string, limits v7action.QuotaLimits) (v7action.Warnings, error)
}

type CreateSpaceQuotaCommand

type CreateSpaceQuotaCommand struct {
	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.MemoryWithUnlimited `short:"i" description:"Maximum amount of memory a process can have (e.g. 1024M, 1G, 10G). (Default: unlimited)."`
	TotalMemory           flag.MemoryWithUnlimited `` /* 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)."`

	UI          command.UI
	Config      command.Config
	Actor       CreateSpaceQuotaActor
	SharedActor command.SharedActor
	// contains filtered or unexported fields
}

func (CreateSpaceQuotaCommand) Execute

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

func (*CreateSpaceQuotaCommand) Setup

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

type CreateUserActor

type CreateUserActor interface {
	CreateUser(username string, password string, origin string) (v7action.User, v7action.Warnings, error)
	GetUser(username, origin string) (v7action.User, error)
}

type CreateUserCommand

type CreateUserCommand struct {
	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"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       CreateUserActor
	// contains filtered or unexported fields
}

func (*CreateUserCommand) Execute

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

func (*CreateUserCommand) Setup

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

type DeleteActor

type DeleteActor interface {
	CloudControllerAPIVersion() string
	DeleteApplicationByNameAndSpace(name, spaceGUID string, deleteRoutes bool) (v7action.Warnings, error)
}

type DeleteBuildpackActor

type DeleteBuildpackActor interface {
	DeleteBuildpackByNameAndStack(buildpackName string, buildpackStack string) (v7action.Warnings, error)
}

type DeleteBuildpackCommand

type DeleteBuildpackCommand struct {
	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 */
	Actor       DeleteBuildpackActor
	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	// contains filtered or unexported fields
}

func (DeleteBuildpackCommand) Execute

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

func (*DeleteBuildpackCommand) Setup

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

type DeleteCommand

type DeleteCommand struct {
	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"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       DeleteActor
	// contains filtered or unexported fields
}

func (DeleteCommand) Execute

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

func (*DeleteCommand) Setup

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

type DeleteOrgCommand

type DeleteOrgCommand struct {
	RequiredArgs flag.Organization `positional-args:"yes"`
	Force        bool              `short:"f" description:"Force deletion without confirmation"`

	Config      command.Config
	UI          command.UI
	SharedActor command.SharedActor
	Actor       DeleteOrganizationActor
	// contains filtered or unexported fields
}

func (*DeleteOrgCommand) Execute

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

func (*DeleteOrgCommand) Setup

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

type DeleteOrgQuotaActor

type DeleteOrgQuotaActor interface {
	DeleteOrganizationQuota(quotaName string) (v7action.Warnings, error)
}

type DeleteOrgQuotaCommand

type DeleteOrgQuotaCommand struct {
	RequiredArgs flag.Quota `positional-args:"yes"`
	Force        bool       `long:"force" short:"f" description:"Force deletion without confirmation"`

	UI          command.UI
	Config      command.Config
	Actor       DeleteOrgQuotaActor
	SharedActor command.SharedActor
	// contains filtered or unexported fields
}

func (DeleteOrgQuotaCommand) Execute

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

func (*DeleteOrgQuotaCommand) Setup

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

type DeleteOrganizationActor

type DeleteOrganizationActor interface {
	DeleteOrganization(orgName string) (v7action.Warnings, error)
}

type DeleteOrphanedRoutesActor

type DeleteOrphanedRoutesActor interface {
	DeleteOrphanedRoutes(spaceGUID string) (v7action.Warnings, error)
}

type DeleteOrphanedRoutesCommand

type DeleteOrphanedRoutesCommand struct {
	Force bool `short:"f" description:"Force deletion without confirmation"`

	UI          command.UI
	Config      command.Config
	Actor       DeleteOrphanedRoutesActor
	SharedActor command.SharedActor
	// contains filtered or unexported fields
}

func (DeleteOrphanedRoutesCommand) Execute

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

func (*DeleteOrphanedRoutesCommand) Setup

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

type DeletePrivateDomainActor

type DeletePrivateDomainActor interface {
	DeleteDomain(domain v7action.Domain) (v7action.Warnings, error)
	GetDomainByName(domainName string) (v7action.Domain, v7action.Warnings, error)
}

type DeletePrivateDomainCommand

type DeletePrivateDomainCommand struct {
	RequiredArgs flag.Domain `positional-args:"yes"`
	Force        bool        `short:"f" description:"Force deletion without confirmation"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       DeletePrivateDomainActor
	// contains filtered or unexported fields
}

func (DeletePrivateDomainCommand) Execute

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

func (*DeletePrivateDomainCommand) Setup

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

type DeleteRouteActor

type DeleteRouteActor interface {
	DeleteRoute(domainName, hostname, path string) (v7action.Warnings, error)
}

type DeleteRouteCommand

type DeleteRouteCommand struct {
	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"`

	UI          command.UI
	Config      command.Config
	Actor       DeleteRouteActor
	SharedActor command.SharedActor
	// contains filtered or unexported fields
}

func (DeleteRouteCommand) Execute

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

func (*DeleteRouteCommand) Setup

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

type DeleteServiceBrokerActor

type DeleteServiceBrokerActor interface {
	GetServiceBrokerByName(serviceBrokerName string) (v7action.ServiceBroker, v7action.Warnings, error)
	DeleteServiceBroker(serviceBrokerGUID string) (v7action.Warnings, error)
}

type DeleteServiceBrokerCommand

type DeleteServiceBrokerCommand struct {
	RequiredArgs flag.ServiceBroker `positional-args:"yes"`

	Force bool `short:"f" description:"Force deletion without confirmation"`

	UI          command.UI
	Config      command.Config
	Actor       DeleteServiceBrokerActor
	SharedActor command.SharedActor
	// contains filtered or unexported fields
}

func (DeleteServiceBrokerCommand) Execute

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

func (*DeleteServiceBrokerCommand) Setup

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

type DeleteSharedDomainActor

type DeleteSharedDomainActor interface {
	DeleteDomain(domain v7action.Domain) (v7action.Warnings, error)
	GetDomainByName(domainName string) (v7action.Domain, v7action.Warnings, error)
}

type DeleteSharedDomainCommand

type DeleteSharedDomainCommand struct {
	RequiredArgs flag.Domain `positional-args:"yes"`
	Force        bool        `short:"f" description:"Force deletion without confirmation"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       DeleteSharedDomainActor
	// contains filtered or unexported fields
}

func (DeleteSharedDomainCommand) Execute

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

func (*DeleteSharedDomainCommand) Setup

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

type DeleteSpaceActor

type DeleteSpaceActor interface {
	DeleteSpaceByNameAndOrganizationName(spaceName string, orgName string) (v7action.Warnings, error)
}

type DeleteSpaceCommand

type DeleteSpaceCommand struct {
	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"`

	Config      command.Config
	UI          command.UI
	SharedActor command.SharedActor
	Actor       DeleteSpaceActor
	// contains filtered or unexported fields
}

func (DeleteSpaceCommand) Execute

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

func (*DeleteSpaceCommand) Setup

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

type DeleteSpaceQuotaActor

type DeleteSpaceQuotaActor interface {
	DeleteSpaceQuotaByName(quotaName string, orgGUID string) (v7action.Warnings, error)
}

type DeleteSpaceQuotaCommand

type DeleteSpaceQuotaCommand struct {
	RequiredArgs flag.Quota `positional-args:"yes"`
	Force        bool       `long:"force" short:"f" description:"Force deletion without confirmation"`

	UI          command.UI
	Config      command.Config
	Actor       DeleteSpaceQuotaActor
	SharedActor command.SharedActor
	// contains filtered or unexported fields
}

func (DeleteSpaceQuotaCommand) Execute

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

func (*DeleteSpaceQuotaCommand) Setup

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

type DeleteUserActor

type DeleteUserActor interface {
	DeleteUser(userGuid string) (v7action.Warnings, error)
	GetUser(username, origin string) (v7action.User, error)
}

type DeleteUserCommand

type DeleteUserCommand struct {
	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"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       DeleteUserActor
	// contains filtered or unexported fields
}

func (*DeleteUserCommand) Execute

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

func (*DeleteUserCommand) Setup

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

type DisableFeatureFlagActor

type DisableFeatureFlagActor interface {
	DisableFeatureFlag(flagName string) (v7action.Warnings, error)
}

type DisableFeatureFlagCommand

type DisableFeatureFlagCommand struct {
	RequiredArgs flag.Feature `positional-args:"yes"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       DisableFeatureFlagActor
	// contains filtered or unexported fields
}

func (DisableFeatureFlagCommand) Execute

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

func (*DisableFeatureFlagCommand) Setup

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

type DisableSSHActor

type DisableSSHActor interface {
	GetApplicationByNameAndSpace(appName string, spaceGUID string) (v7action.Application, v7action.Warnings, error)
	GetAppFeature(appGUID string, featureName string) (ccv3.ApplicationFeature, v7action.Warnings, error)
	UpdateAppFeature(app v7action.Application, enabled bool, featureName string) (v7action.Warnings, error)
}

type DisableSSHCommand

type DisableSSHCommand struct {
	RequiredArgs flag.AppName `positional-args:"yes"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       DisableSSHActor
	// contains filtered or unexported fields
}

func (*DisableSSHCommand) Execute

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

func (*DisableSSHCommand) Setup

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

type DisallowSpaceSSHActor

type DisallowSpaceSSHActor interface {
	UpdateSpaceFeature(spaceName string, orgGUID string, enabled bool, feature string) (v7action.Warnings, error)
}

type DisallowSpaceSSHCommand

type DisallowSpaceSSHCommand struct {
	RequiredArgs flag.Space `positional-args:"yes"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       DisallowSpaceSSHActor
	// contains filtered or unexported fields
}

func (*DisallowSpaceSSHCommand) Execute

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

func (*DisallowSpaceSSHCommand) Setup

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

type DomainsActor

type DomainsActor interface {
	GetOrganizationDomains(string, string) ([]v7action.Domain, v7action.Warnings, error)
}

type DomainsCommand

type DomainsCommand struct {
	Labels      string `long:"labels" description:"Selector to filter domains by labels"`
	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       DomainsActor
	// contains filtered or unexported fields
}

func (DomainsCommand) Execute

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

func (*DomainsCommand) Setup

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

type DropletsActor

type DropletsActor interface {
	GetApplicationDroplets(appName string, spaceGUID string) ([]v7action.Droplet, v7action.Warnings, error)
}

type DropletsCommand

type DropletsCommand struct {
	RequiredArgs flag.AppName `positional-args:"yes"`

	UI          command.UI
	Config      command.Config
	Actor       DropletsActor
	SharedActor command.SharedActor
	// contains filtered or unexported fields
}

func (DropletsCommand) Execute

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

func (*DropletsCommand) Setup

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

type EnableFeatureFlagActor

type EnableFeatureFlagActor interface {
	EnableFeatureFlag(flagName string) (v7action.Warnings, error)
}

type EnableFeatureFlagCommand

type EnableFeatureFlagCommand struct {
	RequiredArgs flag.Feature `positional-args:"yes"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       EnableFeatureFlagActor
	// contains filtered or unexported fields
}

func (EnableFeatureFlagCommand) Execute

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

func (*EnableFeatureFlagCommand) Setup

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

type EnableSSHActor

type EnableSSHActor interface {
	GetApplicationByNameAndSpace(appName string, spaceGUID string) (v7action.Application, v7action.Warnings, error)
	GetAppFeature(appGUID string, featureName string) (ccv3.ApplicationFeature, v7action.Warnings, error)
	GetSSHEnabled(appGUID string) (ccv3.SSHEnabled, v7action.Warnings, error)
	UpdateAppFeature(app v7action.Application, enabled bool, featureName string) (v7action.Warnings, error)
}

type EnableSSHCommand

type EnableSSHCommand struct {
	RequiredArgs flag.AppName `positional-args:"yes"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       EnableSSHActor
	// contains filtered or unexported fields
}

func (*EnableSSHCommand) Execute

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

func (*EnableSSHCommand) Setup

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

type EnvActor

type EnvActor interface {
	GetEnvironmentVariablesByApplicationNameAndSpace(appName string, spaceGUID string) (v7action.EnvironmentVariableGroups, v7action.Warnings, error)
}

type EnvCommand

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

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       EnvActor
	// contains filtered or unexported fields
}

func (EnvCommand) Execute

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

func (*EnvCommand) Setup

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

type EventsActor

type EventsActor interface {
	GetRecentEventsByApplicationNameAndSpace(appName string, spaceGUID string) ([]v7action.Event, v7action.Warnings, error)
}

type EventsCommand

type EventsCommand struct {
	RequiredArgs flag.AppName `positional-args:"yes"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       EventsActor
	// contains filtered or unexported fields
}

func (EventsCommand) Execute

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

func (*EventsCommand) Setup

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

type FeatureFlagActor

type FeatureFlagActor interface {
	GetFeatureFlagByName(featureFlagName string) (v7action.FeatureFlag, v7action.Warnings, error)
}

type FeatureFlagCommand

type FeatureFlagCommand struct {
	RequiredArgs flag.Feature `positional-args:"yes"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       FeatureFlagActor
	// contains filtered or unexported fields
}

func (FeatureFlagCommand) Execute

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

func (*FeatureFlagCommand) Setup

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

type FeatureFlagsActor

type FeatureFlagsActor interface {
	GetFeatureFlags() ([]v7action.FeatureFlag, v7action.Warnings, error)
}

type FeatureFlagsCommand

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

func (FeatureFlagsCommand) Execute

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

func (*FeatureFlagsCommand) Setup

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

type GetHealthCheckActor

type GetHealthCheckActor interface {
	CloudControllerAPIVersion() string
	GetApplicationProcessHealthChecksByNameAndSpace(appName string, spaceGUID string) ([]v7action.ProcessHealthCheck, v7action.Warnings, error)
}

type GetHealthCheckCommand

type GetHealthCheckCommand struct {
	RequiredArgs flag.AppName `positional-args:"yes"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       GetHealthCheckActor
	// 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

func (*GetHealthCheckCommand) Setup

func (cmd *GetHealthCheckCommand) Setup(config command.Config, ui command.UI) 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 LabelsActor

type LabelsActor interface {
	GetApplicationLabels(appName string, spaceGUID string) (map[string]types.NullString, v7action.Warnings, error)
	GetDomainLabels(domainName string) (map[string]types.NullString, v7action.Warnings, error)
	GetOrganizationLabels(orgName string) (map[string]types.NullString, v7action.Warnings, error)
	GetRouteLabels(routeName string, spaceGUID string) (map[string]types.NullString, v7action.Warnings, error)
	GetSpaceLabels(spaceName string, orgGUID string) (map[string]types.NullString, v7action.Warnings, error)
	GetBuildpackLabels(buildpackName string, buildpackStack string) (map[string]types.NullString, v7action.Warnings, error)
	GetStackLabels(stackName string) (map[string]types.NullString, v7action.Warnings, error)
	GetServiceBrokerLabels(serviceBrokerName string) (map[string]types.NullString, 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)
}

type LabelsCommand

type LabelsCommand struct {
	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."`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       LabelsActor
	// contains filtered or unexported fields
}

func (LabelsCommand) Execute

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

func (*LabelsCommand) Setup

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

type LogsActor

type LogsActor interface {
	GetRecentLogsForApplicationByNameAndSpace(appName string, spaceGUID string, client sharedaction.LogCacheClient) ([]sharedaction.LogMessage, v7action.Warnings, error)
	GetStreamingLogsForApplicationByNameAndSpace(appName string, spaceGUID string, client sharedaction.LogCacheClient) (<-chan sharedaction.LogMessage, <-chan error, context.CancelFunc, v7action.Warnings, error)
	ScheduleTokenRefresh(func(time.Duration) <-chan time.Time, chan struct{}, chan struct{}) (<-chan error, error)
}

type LogsCommand

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

	UI             command.UI
	Config         command.Config
	CC_Client      *ccv3.Client
	SharedActor    command.SharedActor
	Actor          LogsActor
	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 {
	InterpolateAndParse(pathToManifest string, pathsToVarsFiles []string, vars []template.VarKV) (manifestparser.Manifest, error)
	MarshalManifest(manifest manifestparser.Manifest) ([]byte, error)
}

type MapRouteActor

type MapRouteActor interface {
	GetApplicationByNameAndSpace(appName string, spaceGUID string) (v7action.Application, v7action.Warnings, error)
	GetRouteByAttributes(domainName string, domainGUID string, hostname string, path string) (v7action.Route, v7action.Warnings, error)
	GetDomainByName(domainName string) (v7action.Domain, v7action.Warnings, error)
	CreateRoute(spaceGUID, domainName, hostname, path string) (v7action.Route, v7action.Warnings, error)
	GetRouteDestinationByAppGUID(routeGUID string, appGUID string) (v7action.RouteDestination, v7action.Warnings, error)
	MapRoute(routeGUID string, appGUID string) (v7action.Warnings, error)
}

type MapRouteCommand

type MapRouteCommand struct {
	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"`

	UI          command.UI
	Config      command.Config
	Actor       MapRouteActor
	SharedActor command.SharedActor
	// contains filtered or unexported fields
}

func (MapRouteCommand) Execute

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

func (*MapRouteCommand) Setup

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

type OrgActor

type OrgActor interface {
	GetOrganizationByName(orgName string) (v7action.Organization, v7action.Warnings, error)
	GetOrganizationSummaryByName(orgName string) (v7action.OrganizationSummary, v7action.Warnings, error)
	GetIsolationSegmentsByOrganization(orgName string) ([]v7action.IsolationSegment, v7action.Warnings, error)
}

type OrgCommand

type OrgCommand struct {
	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."`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       OrgActor
	// contains filtered or unexported fields
}

func (OrgCommand) Execute

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

func (*OrgCommand) Setup

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

type OrgQuotaActor

type OrgQuotaActor interface {
	GetOrganizationQuotaByName(orgQuotaName string) (v7action.OrganizationQuota, v7action.Warnings, error)
}

type OrgQuotaCommand

type OrgQuotaCommand struct {
	RequiredArgs flag.OrganizationQuota `positional-args:"yes"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       OrgQuotaActor
	// contains filtered or unexported fields
}

func (OrgQuotaCommand) Execute

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

func (*OrgQuotaCommand) Setup

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

type OrgQuotasActor

type OrgQuotasActor interface {
	GetOrganizationQuotas() ([]v7action.OrganizationQuota, v7action.Warnings, error)
}

type OrgQuotasCommand

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

func (OrgQuotasCommand) Execute

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

func (*OrgQuotasCommand) Setup

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

type OrgUsersActor

type OrgUsersActor interface {
	GetOrganizationByName(name string) (v7action.Organization, v7action.Warnings, error)
	GetOrgUsersByRoleType(orgGUID string) (map[constant.RoleType][]v7action.User, v7action.Warnings, error)
}

type OrgUsersCommand

type OrgUsersCommand struct {
	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"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       OrgUsersActor
	// contains filtered or unexported fields
}

func (*OrgUsersCommand) Execute

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

func (*OrgUsersCommand) Setup

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

type OrgsActor

type OrgsActor interface {
	GetOrganizations(labelSelector string) ([]v7action.Organization, v7action.Warnings, error)
}

type OrgsCommand

type OrgsCommand struct {
	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       OrgsActor
	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

func (*OrgsCommand) Setup

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

type PackagesActor

type PackagesActor interface {
	GetApplicationPackages(appName string, spaceGUID string) ([]v7action.Package, v7action.Warnings, error)
}

type PackagesCommand

type PackagesCommand struct {
	RequiredArgs flag.AppName `positional-args:"yes"`

	UI          command.UI
	Config      command.Config
	Actor       PackagesActor
	SharedActor command.SharedActor
	// contains filtered or unexported fields
}

func (PackagesCommand) Execute

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

func (*PackagesCommand) Setup

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

type ProgressBar

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

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 {
	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"`
	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                                `` /* 143-byte string literal not displayed */
	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"`

	Config          command.Config
	UI              command.UI
	LogCacheClient  sharedaction.LogCacheClient
	Actor           PushActor
	VersionActor    V7ActorForPush
	SharedActor     command.SharedActor
	ProgressBar     ProgressBar
	CWD             string
	ManifestLocator ManifestLocator
	ManifestParser  ManifestParser
	// 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 RenameActor

type RenameActor interface {
	RenameApplicationByNameAndSpaceGUID(oldAppName, newAppName, spaceGUID string) (v7action.Application, v7action.Warnings, error)
}

type RenameCommand

type RenameCommand struct {
	RequiredArgs flag.Rename `positional-args:"yes"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       RenameActor
	// contains filtered or unexported fields
}

func (RenameCommand) Execute

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

func (*RenameCommand) Setup

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

type RenameOrgCommand

type RenameOrgCommand struct {
	RequiredArgs flag.RenameOrgArgs `positional-args:"yes"`

	Config      command.Config
	UI          command.UI
	SharedActor command.SharedActor
	Actor       RenameOrganizationActor
	// contains filtered or unexported fields
}

func (RenameOrgCommand) Execute

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

func (*RenameOrgCommand) Setup

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

type RenameOrganizationActor

type RenameOrganizationActor interface {
	RenameOrganization(oldOrgName, newOrgName string) (v7action.Organization, v7action.Warnings, error)
}

type RenameServiceBrokerCommand

type RenameServiceBrokerCommand struct {
	RequiredArgs flag.RenameServiceBrokerArgs `positional-args:"yes"`

	UI          command.UI
	Config      command.Config
	Actor       UpdateServiceBrokerActor
	SharedActor command.SharedActor
	// contains filtered or unexported fields
}

func (*RenameServiceBrokerCommand) Execute

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

func (*RenameServiceBrokerCommand) Setup

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

type RenameSpaceActor

type RenameSpaceActor interface {
	RenameSpaceByNameAndOrganizationGUID(oldSpaceName, newSpaceName, orgGUID string) (v7action.Space, v7action.Warnings, error)
}

type RenameSpaceCommand

type RenameSpaceCommand struct {
	RequiredArgs flag.RenameSpace `positional-args:"yes"`

	Config      command.Config
	UI          command.UI
	SharedActor command.SharedActor
	Actor       RenameSpaceActor
	// contains filtered or unexported fields
}

func (RenameSpaceCommand) Execute

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

func (*RenameSpaceCommand) Setup

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

type ResetSpaceIsolationSegmentActor

type ResetSpaceIsolationSegmentActor interface {
	ResetSpaceIsolationSegment(orgGUID string, spaceGUID string) (string, v7action.Warnings, error)
}

type ResetSpaceIsolationSegmentActorV2

type ResetSpaceIsolationSegmentActorV2 interface {
	GetSpaceByOrganizationAndName(orgGUID string, spaceName string) (v2action.Space, v2action.Warnings, error)
}

type ResetSpaceIsolationSegmentCommand

type ResetSpaceIsolationSegmentCommand struct {
	RequiredArgs flag.ResetSpaceIsolationArgs `positional-args:"yes"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       ResetSpaceIsolationSegmentActor
	ActorV2     ResetSpaceIsolationSegmentActorV2
	// contains filtered or unexported fields
}

func (ResetSpaceIsolationSegmentCommand) Execute

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

func (*ResetSpaceIsolationSegmentCommand) Setup

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"
	ServiceOffering ResourceType = "service-offering"
	ServicePlan     ResourceType = "service-plan"
)

type RestageActor

type RestageActor interface {
	GetStreamingLogsForApplicationByNameAndSpace(appName string, spaceGUID string, client sharedaction.LogCacheClient) (<-chan sharedaction.LogMessage, <-chan error, context.CancelFunc, v7action.Warnings, error)
	GetApplicationByNameAndSpace(appName string, spaceGUID string) (v7action.Application, v7action.Warnings, error)
	GetNewestReadyPackageForApplication(appGUID string) (v7action.Package, v7action.Warnings, error)
	GetDetailedAppSummary(appName string, spaceGUID string, withObfuscatedValues bool) (v7action.DetailedApplicationSummary, v7action.Warnings, error)
	SetApplicationDroplet(appGUID string, dropletGUID string) (v7action.Warnings, error)
	StagePackage(packageGUID, appName, spaceGUID string) (<-chan v7action.Droplet, <-chan v7action.Warnings, <-chan error)
	StartApplication(appGUID string) (v7action.Warnings, error)
	StopApplication(appGUID string) (v7action.Warnings, error)
	PollStart(appGUID string, noWait bool) (v7action.Warnings, error)
	CreateDeployment(appGUID string, dropletGUID string) (string, v7action.Warnings, error)
	PollStartForRolling(appGUID string, deploymentGUID string, noWait bool) (v7action.Warnings, error)
}

type RestageCommand

type RestageCommand struct {
	RequiredArgs flag.AppName            `positional-args:"yes"`
	Strategy     flag.DeploymentStrategy `long:"strategy" description:"Deployment strategy, either rolling or null."`
	NoWait       bool                    `` /* 146-byte string literal not displayed */

	UI             command.UI
	Config         command.Config
	SharedActor    command.SharedActor
	LogCacheClient sharedaction.LogCacheClient
	Actor          RestageActor
	// 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 RestartActor

type RestartActor interface {
	GetApplicationByNameAndSpace(appName string, spaceGUID string) (v7action.Application, v7action.Warnings, error)
	GetDetailedAppSummary(appName string, spaceGUID string, withObfuscatedValues bool) (v7action.DetailedApplicationSummary, v7action.Warnings, error)
	PollStart(appGUID string, noWait bool) (v7action.Warnings, error)
	StartApplication(appGUID string) (v7action.Warnings, error)
	StopApplication(appGUID string) (v7action.Warnings, error)
	CreateDeployment(appGUID string, dropletGUID string) (string, v7action.Warnings, error)
	PollStartForRolling(appGUID string, deploymentGUID string, noWait bool) (v7action.Warnings, error)
}

type RestartAppInstanceActor

type RestartAppInstanceActor interface {
	DeleteInstanceByApplicationNameSpaceProcessTypeAndIndex(appName string, spaceGUID string, processType string, instanceIndex int) (v7action.Warnings, error)
}

type RestartAppInstanceCommand

type RestartAppInstanceCommand struct {
	RequiredArgs flag.AppInstance `positional-args:"yes"`
	ProcessType  string           `long:"process" default:"web" description:"Process to restart"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       RestartAppInstanceActor
	// contains filtered or unexported fields
}

func (RestartAppInstanceCommand) Execute

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

func (*RestartAppInstanceCommand) Setup

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

type RestartCommand

type RestartCommand struct {
	RequiredArgs flag.AppName            `positional-args:"yes"`
	Strategy     flag.DeploymentStrategy `long:"strategy" description:"Deployment strategy, either rolling or null."`
	NoWait       bool                    `` /* 143-byte string literal not displayed */

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       RestartActor
	// 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 RoutesActor

type RoutesActor interface {
	GetRoutesBySpace(spaceGUID string, labels string) ([]v7action.Route, v7action.Warnings, error)
	GetRoutesByOrg(orgGUID string, labels string) ([]v7action.Route, v7action.Warnings, error)
	GetRouteSummaries([]v7action.Route) ([]v7action.RouteSummary, v7action.Warnings, error)
}

type RoutesCommand

type RoutesCommand struct {
	Orglevel bool   `long:"orglevel" description:"List all the routes for all spaces of current organization"`
	Labels   string `long:"labels" description:"Selector to filter routes by labels"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       RoutesActor
	// contains filtered or unexported fields
}

func (RoutesCommand) Execute

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

func (*RoutesCommand) Setup

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

type RunTaskActor

type RunTaskActor interface {
	GetApplicationByNameAndSpace(appName string, spaceGUID string) (v7action.Application, v7action.Warnings, error)
	RunTask(appGUID string, task v7action.Task) (v7action.Task, v7action.Warnings, error)
	GetProcessByTypeAndApplication(processType string, appGUID string) (v7action.Process, v7action.Warnings, error)
}

type RunTaskCommand

type RunTaskCommand struct {
	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)"`
	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."`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       RunTaskActor
	// contains filtered or unexported fields
}

func (RunTaskCommand) Execute

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

func (*RunTaskCommand) Setup

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

type RunningEnvironmentVariableGroupActor

type RunningEnvironmentVariableGroupActor interface {
	GetEnvironmentVariableGroup(group constant.EnvironmentVariableGroupName) (v7action.EnvironmentVariableGroup, v7action.Warnings, error)
}

type RunningEnvironmentVariableGroupCommand

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

func (RunningEnvironmentVariableGroupCommand) Execute

func (*RunningEnvironmentVariableGroupCommand) Setup

type SSHActor

type SSHActor interface {
	GetSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndex(appName string, spaceGUID string, processType string, processIndex uint) (v7action.SSHAuthentication, v7action.Warnings, error)
}

type SSHCommand

type SSHCommand struct {
	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"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       SSHActor
	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 SSHEnabledActor

type SSHEnabledActor interface {
	GetSSHEnabledByAppName(appName string, spaceGUID string) (ccv3.SSHEnabled, v7action.Warnings, error)
}

type SSHEnabledCommand

type SSHEnabledCommand struct {
	RequiredArgs flag.AppName `positional-args:"yes"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       SSHEnabledActor
	// contains filtered or unexported fields
}

func (*SSHEnabledCommand) Execute

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

func (*SSHEnabledCommand) Setup

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

type ScaleActor

type ScaleActor interface {
	AppActor

	ScaleProcessByApplication(appGUID string, process v7action.Process) (v7action.Warnings, error)
	StopApplication(appGUID string) (v7action.Warnings, error)
	StartApplication(appGUID string) (v7action.Warnings, error)
	PollStart(appGUID string, noWait bool) (v7action.Warnings, error)
}

type ScaleCommand

type ScaleCommand struct {
	RequiredArgs flag.AppName   `positional-args:"yes"`
	Force        bool           `short:"f" description:"Force restart of app without prompt"`
	Instances    flag.Instances `short:"i" required:"false" description:"Number of instances"`
	DiskLimit    flag.Megabytes `short:"k" required:"false" description:"Disk limit (e.g. 256M, 1024M, 1G)"`
	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"`

	UI          command.UI
	Config      command.Config
	Actor       ScaleActor
	SharedActor command.SharedActor
	// contains filtered or unexported fields
}

func (ScaleCommand) Execute

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

func (*ScaleCommand) Setup

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

type ServiceAccessActor

type ServiceAccessActor interface {
	GetServiceAccess(broker, service, organization string) ([]v7action.ServicePlanAccess, v7action.Warnings, error)
}

type ServiceAccessCommand

type ServiceAccessCommand struct {
	Broker          string `short:"b" description:"Access for plans of a particular broker"`
	ServiceOffering string `short:"e" description:"Access for service name of a particular service offering"`
	Organization    string `short:"o" description:"Plans accessible by a particular organization"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       ServiceAccessActor
	// contains filtered or unexported fields
}

func (ServiceAccessCommand) Execute

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

func (*ServiceAccessCommand) Setup

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

type ServiceBrokersActor

type ServiceBrokersActor interface {
	GetServiceBrokers() ([]v7action.ServiceBroker, v7action.Warnings, error)
}

type ServiceBrokersCommand

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

func (*ServiceBrokersCommand) Execute

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

func (*ServiceBrokersCommand) Setup

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

type SetDropletActor

type SetDropletActor interface {
	SetApplicationDropletByApplicationNameAndSpace(appName string, spaceGUID string, dropletGUID string) (v7action.Warnings, error)
}

type SetDropletCommand

type SetDropletCommand struct {
	RequiredArgs flag.AppDroplet `positional-args:"yes"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       SetDropletActor
	// contains filtered or unexported fields
}

func (SetDropletCommand) Execute

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

func (*SetDropletCommand) Setup

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

type SetEnvActor

type SetEnvActor interface {
	CloudControllerAPIVersion() string
	SetEnvironmentVariableByApplicationNameAndSpace(appName string, spaceGUID string, envPair v7action.EnvironmentVariablePair) (v7action.Warnings, error)
}

type SetEnvCommand

type SetEnvCommand struct {
	RequiredArgs flag.SetEnvironmentArgs `positional-args:"yes"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       SetEnvActor
	// contains filtered or unexported fields
}

func (SetEnvCommand) Execute

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

func (*SetEnvCommand) Setup

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

type SetHealthCheckActor

type SetHealthCheckActor interface {
	CloudControllerAPIVersion() string
	SetApplicationProcessHealthCheckTypeByNameAndSpace(appName string, spaceGUID string, healthCheckType constant.HealthCheckType, httpEndpoint string, processType string, invocationTimeout int64) (v7action.Application, v7action.Warnings, error)
}

type SetHealthCheckCommand

type SetHealthCheckCommand struct {
	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"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       SetHealthCheckActor
	// contains filtered or unexported fields
}

func (SetHealthCheckCommand) Execute

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

func (*SetHealthCheckCommand) Setup

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

type SetLabelActor

type SetLabelActor interface {
	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)
	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 {
	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) Execute

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

func (*SetLabelCommand) Setup

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

type SetOrgQuotaActor

type SetOrgQuotaActor interface {
	GetOrganizationByName(orgName string) (v7action.Organization, v7action.Warnings, error)
	ApplyOrganizationQuotaByName(quotaName, orgGUID string) (v7action.Warnings, error)
}

type SetOrgQuotaCommand

type SetOrgQuotaCommand struct {
	RequiredArgs flag.SetOrgQuotaArgs `positional-args:"yes"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       SetOrgQuotaActor
	// contains filtered or unexported fields
}

func (*SetOrgQuotaCommand) Execute

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

func (*SetOrgQuotaCommand) Setup

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

type SetOrgRoleActor

type SetOrgRoleActor interface {
	CreateOrgRole(roleType constant.RoleType, orgGUID string, userNameOrGUID string, userOrigin string, isClient bool) (v7action.Warnings, error)
	GetOrganizationByName(name string) (v7action.Organization, v7action.Warnings, error)
	GetUser(username, origin string) (v7action.User, error)
}

type SetOrgRoleCommand

type SetOrgRoleCommand struct {
	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"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       SetOrgRoleActor
	// contains filtered or unexported fields
}

func (*SetOrgRoleCommand) Execute

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

func (*SetOrgRoleCommand) Setup

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

type SetRunningEnvironmentVariableGroupActor

type SetRunningEnvironmentVariableGroupActor interface {
	SetEnvironmentVariableGroup(group constant.EnvironmentVariableGroupName, envVars ccv3.EnvironmentVariables) (v7action.Warnings, error)
}

type SetRunningEnvironmentVariableGroupCommand

type SetRunningEnvironmentVariableGroupCommand struct {
	RequiredArgs flag.SetEnvVarGroup `positional-args:"yes"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       SetRunningEnvironmentVariableGroupActor
	// contains filtered or unexported fields
}

func (SetRunningEnvironmentVariableGroupCommand) Execute

func (*SetRunningEnvironmentVariableGroupCommand) Setup

type SetSpaceQuotaActor

type SetSpaceQuotaActor interface {
	GetSpaceByNameAndOrganization(spaceName string, orgGUID string) (v7action.Space, v7action.Warnings, error)
	ApplySpaceQuotaByName(quotaName, spaceGUID string, orgGUID string) (v7action.Warnings, error)
}

type SetSpaceQuotaCommand

type SetSpaceQuotaCommand struct {
	RequiredArgs flag.SetSpaceQuotaArgs `positional-args:"yes"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       SetSpaceQuotaActor
	// contains filtered or unexported fields
}

func (*SetSpaceQuotaCommand) Execute

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

func (*SetSpaceQuotaCommand) Setup

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

type SetSpaceRoleActor

type SetSpaceRoleActor interface {
	CreateSpaceRole(roleType constant.RoleType, orgGUID string, spaceGUID string, userNameOrGUID string, userOrigin string, isClient bool) (v7action.Warnings, error)
	GetOrganizationByName(name string) (v7action.Organization, v7action.Warnings, error)
	GetSpaceByNameAndOrganization(spaceName string, orgGUID string) (v7action.Space, v7action.Warnings, error)
	GetUser(username, origin string) (v7action.User, error)
}

type SetSpaceRoleCommand

type SetSpaceRoleCommand struct {
	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"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       SetSpaceRoleActor
	// contains filtered or unexported fields
}

func (*SetSpaceRoleCommand) Execute

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

func (*SetSpaceRoleCommand) Setup

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

type SetStagingEnvironmentVariableGroupActor

type SetStagingEnvironmentVariableGroupActor interface {
	SetEnvironmentVariableGroup(group constant.EnvironmentVariableGroupName, envVars ccv3.EnvironmentVariables) (v7action.Warnings, error)
}

type SetStagingEnvironmentVariableGroupCommand

type SetStagingEnvironmentVariableGroupCommand struct {
	RequiredArgs flag.SetEnvVarGroup `positional-args:"yes"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       SetStagingEnvironmentVariableGroupActor
	// contains filtered or unexported fields
}

func (SetStagingEnvironmentVariableGroupCommand) Execute

func (*SetStagingEnvironmentVariableGroupCommand) Setup

type SharePrivateDomainActor

type SharePrivateDomainActor interface {
	SharePrivateDomain(domainName string, orgName string) (v7action.Warnings, error)
}

type SharePrivateDomainCommand

type SharePrivateDomainCommand struct {
	RequiredArgs flag.OrgDomain `positional-args:"yes"`

	UI          command.UI
	Config      command.Config
	Actor       SharePrivateDomainActor
	SharedActor command.SharedActor
	// contains filtered or unexported fields
}

func (SharePrivateDomainCommand) Execute

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

func (*SharePrivateDomainCommand) Setup

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

type SharedSSHActor

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

type SpaceActor

type SpaceActor interface {
	GetSpaceByNameAndOrganization(spaceName string, orgGUID string) (v7action.Space, v7action.Warnings, error)
	GetSpaceSummaryByNameAndOrganization(spaceName string, orgGUID string) (v7action.SpaceSummary, v7action.Warnings, error)
	GetEffectiveIsolationSegmentBySpace(spaceGUID string, orgDefaultIsolationSegmentGUID string) (v7action.IsolationSegment, v7action.Warnings, error)
}

type SpaceCommand

type SpaceCommand struct {
	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."`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       SpaceActor
	// contains filtered or unexported fields
}

func (SpaceCommand) Execute

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

func (*SpaceCommand) Setup

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

type SpaceQuotaActor

type SpaceQuotaActor interface {
	GetSpaceQuotaByName(spaceQuotaName string, orgGUID string) (v7action.SpaceQuota, v7action.Warnings, error)
}

type SpaceQuotaCommand

type SpaceQuotaCommand struct {
	RequiredArgs flag.SpaceQuota `positional-args:"yes"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       SpaceQuotaActor
	// contains filtered or unexported fields
}

func (SpaceQuotaCommand) Execute

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

func (*SpaceQuotaCommand) Setup

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

type SpaceQuotasActor

type SpaceQuotasActor interface {
	GetSpaceQuotasByOrgGUID(orgGUID string) ([]v7action.SpaceQuota, v7action.Warnings, error)
}

type SpaceQuotasCommand

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

func (SpaceQuotasCommand) Execute

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

func (*SpaceQuotasCommand) Setup

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

type SpaceSSHAllowedActor

type SpaceSSHAllowedActor interface {
	GetSpaceFeature(spaceName string, orgGUID string, feature string) (bool, v7action.Warnings, error)
}

type SpaceSSHAllowedCommand

type SpaceSSHAllowedCommand struct {
	RequiredArgs flag.Space `positional-args:"yes"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       SpaceSSHAllowedActor
	// contains filtered or unexported fields
}

func (SpaceSSHAllowedCommand) Execute

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

func (*SpaceSSHAllowedCommand) Setup

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

type SpaceUsersActor

type SpaceUsersActor interface {
	GetOrganizationByName(name string) (v7action.Organization, v7action.Warnings, error)
	GetSpaceByNameAndOrganization(spaceName string, orgGUID string) (v7action.Space, v7action.Warnings, error)
	GetSpaceUsersByRoleType(spaceGuid string) (map[constant.RoleType][]v7action.User, v7action.Warnings, error)
}

type SpaceUsersCommand

type SpaceUsersCommand struct {
	RequiredArgs flag.SpaceUsersArgs `positional-args:"yes"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       SpaceUsersActor
	// contains filtered or unexported fields
}

func (*SpaceUsersCommand) Execute

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

func (*SpaceUsersCommand) Setup

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

type SpacesActor

type SpacesActor interface {
	GetOrganizationSpacesWithLabelSelector(orgGUID string, labelSelector string) ([]v7action.Space, v7action.Warnings, error)
}

type SpacesCommand

type SpacesCommand struct {
	Labels string `long:"labels" description:"Selector to filter spaces by labels"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       SpacesActor
	// contains filtered or unexported fields
}

func (SpacesCommand) Execute

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

func (*SpacesCommand) Setup

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

type StackActor

type StackActor interface {
	GetStackByName(stackName string) (v7action.Stack, v7action.Warnings, error)
}

type StackCommand

type StackCommand struct {
	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."`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       StackActor
	// contains filtered or unexported fields
}

func (*StackCommand) Execute

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

func (*StackCommand) Setup

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

type StacksActor

type StacksActor interface {
	GetStacks(string) ([]v7action.Stack, v7action.Warnings, error)
}

type StacksCommand

type StacksCommand struct {
	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       StacksActor
	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

func (*StacksCommand) Setup

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

type StageActor

type StageActor interface {
	GetStreamingLogsForApplicationByNameAndSpace(appName string, spaceGUID string, client sharedaction.LogCacheClient) (<-chan sharedaction.LogMessage, <-chan error, context.CancelFunc, v7action.Warnings, error)
	StagePackage(packageGUID, appName, spaceGUID string) (<-chan v7action.Droplet, <-chan v7action.Warnings, <-chan error)
	GetApplicationByNameAndSpace(appName string, spaceGUID string) (v7action.Application, v7action.Warnings, error)
	GetNewestReadyPackageForApplication(appGUID string) (v7action.Package, v7action.Warnings, error)
}

type StageCommand

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

	UI             command.UI
	Config         command.Config
	LogCacheClient sharedaction.LogCacheClient
	SharedActor    command.SharedActor
	Actor          StageActor
	// contains filtered or unexported fields
}

func (StageCommand) Execute

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

func (*StageCommand) Setup

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

type StagingEnvironmentVariableGroupActor

type StagingEnvironmentVariableGroupActor interface {
	GetEnvironmentVariableGroup(group constant.EnvironmentVariableGroupName) (v7action.EnvironmentVariableGroup, v7action.Warnings, error)
}

type StagingEnvironmentVariableGroupCommand

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

func (StagingEnvironmentVariableGroupCommand) Execute

func (*StagingEnvironmentVariableGroupCommand) Setup

type StartActor

type StartActor interface {
	GetApplicationByNameAndSpace(appName string, spaceGUID string) (v7action.Application, v7action.Warnings, error)
	GetDetailedAppSummary(appName string, spaceGUID string, withObfuscatedValues bool) (v7action.DetailedApplicationSummary, v7action.Warnings, error)
	PollStart(appGUID string, noWait bool) (v7action.Warnings, error)
	StartApplication(appGUID string) (v7action.Warnings, error)
	GetUnstagedNewestPackageGUID(appGuid string) (string, v7action.Warnings, error)
	StagePackage(packageGUID, appName, spaceGUID string) (<-chan v7action.Droplet, <-chan v7action.Warnings, <-chan error)
	GetStreamingLogsForApplicationByNameAndSpace(appName string, spaceGUID string, client sharedaction.LogCacheClient) (<-chan sharedaction.LogMessage, <-chan error, context.CancelFunc, v7action.Warnings, error)
	SetApplicationDroplet(appGUID string, dropletGUID string) (v7action.Warnings, error)
}

type StartCommand

type StartCommand struct {
	RequiredArgs flag.AppName `positional-args:"yes"`

	UI             command.UI
	Config         command.Config
	LogCacheClient sharedaction.LogCacheClient
	SharedActor    command.SharedActor
	Actor          StartActor
	// 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 StopActor

type StopActor interface {
	GetApplicationByNameAndSpace(appName string, spaceGUID string) (v7action.Application, v7action.Warnings, error)
	StopApplication(appGUID string) (v7action.Warnings, error)
}

type StopCommand

type StopCommand struct {
	RequiredArgs flag.AppName `positional-args:"yes"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       StopActor
	// contains filtered or unexported fields
}

func (StopCommand) Execute

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

func (*StopCommand) Setup

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

type TargetActor

type TargetActor interface {
	GetOrganizationByName(orgName string) (v7action.Organization, v7action.Warnings, error)
	GetOrganizationSpaces(orgGUID string) ([]v7action.Space, v7action.Warnings, error)
	GetSpaceByNameAndOrganization(spaceName string, orgGUID string) (v7action.Space, v7action.Warnings, error)
	CloudControllerAPIVersion() string
}

type TargetCommand

type TargetCommand struct {
	Organization string `short:"o" description:"Organization"`
	Space        string `short:"s" description:"Space"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       TargetActor
	// contains filtered or unexported fields
}

func (*TargetCommand) Execute

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

func (*TargetCommand) Setup

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

type TargetResource

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

type TasksActor

type TasksActor interface {
	GetApplicationByNameAndSpace(appName string, spaceGUID string) (v7action.Application, v7action.Warnings, error)
	GetApplicationTasks(appName string, sortOrder v7action.SortOrder) ([]v7action.Task, v7action.Warnings, error)
}

type TasksCommand

type TasksCommand struct {
	RequiredArgs flag.AppName `positional-args:"yes"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       TasksActor
	// contains filtered or unexported fields
}

func (TasksCommand) Execute

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

func (*TasksCommand) Setup

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

type TerminateTaskActor

type TerminateTaskActor interface {
	GetApplicationByNameAndSpace(appName string, spaceGUID string) (v7action.Application, v7action.Warnings, error)
	GetTaskBySequenceIDAndApplication(sequenceID int, appGUID string) (v7action.Task, v7action.Warnings, error)
	TerminateTask(taskGUID string) (v7action.Task, v7action.Warnings, error)
}

type TerminateTaskCommand

type TerminateTaskCommand struct {
	RequiredArgs flag.TerminateTaskArgs `positional-args:"yes"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       TerminateTaskActor
	// contains filtered or unexported fields
}

func (TerminateTaskCommand) Execute

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

func (*TerminateTaskCommand) Setup

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

type UnmapRouteActor

type UnmapRouteActor interface {
	GetApplicationByNameAndSpace(appName string, spaceGUID string) (v7action.Application, v7action.Warnings, error)
	GetRouteByAttributes(domainName string, domainGUID string, hostname string, path string) (v7action.Route, v7action.Warnings, error)
	GetDomainByName(domainName string) (v7action.Domain, v7action.Warnings, error)
	GetRouteDestinationByAppGUID(routeGUID string, appGUID string) (v7action.RouteDestination, v7action.Warnings, error)
	UnmapRoute(routeGUID string, destinationGUID string) (v7action.Warnings, error)
}

type UnmapRouteCommand

type UnmapRouteCommand struct {
	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"`

	UI          command.UI
	Config      command.Config
	Actor       UnmapRouteActor
	SharedActor command.SharedActor
	// contains filtered or unexported fields
}

func (UnmapRouteCommand) Execute

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

func (*UnmapRouteCommand) Setup

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

type UnsetEnvActor

type UnsetEnvActor interface {
	UnsetEnvironmentVariableByApplicationNameAndSpace(appName string, spaceGUID string, EnvironmentVariableName string) (v7action.Warnings, error)
}

type UnsetEnvCommand

type UnsetEnvCommand struct {
	RequiredArgs flag.UnsetEnvironmentArgs `positional-args:"yes"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       UnsetEnvActor
	// contains filtered or unexported fields
}

func (UnsetEnvCommand) Execute

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

func (*UnsetEnvCommand) Setup

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

type UnsetLabelCommand

type UnsetLabelCommand struct {
	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) Execute

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

func (*UnsetLabelCommand) Setup

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

type UnsetOrgRoleActor

type UnsetOrgRoleActor interface {
	DeleteOrgRole(roleType constant.RoleType, orgGUID string, userNameOrGUID string, userOrigin string, isClient bool) (v7action.Warnings, error)
	GetOrganizationByName(name string) (v7action.Organization, v7action.Warnings, error)
	GetUser(username, origin string) (v7action.User, error)
}

type UnsetOrgRoleCommand

type UnsetOrgRoleCommand struct {
	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"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       UnsetOrgRoleActor
	// contains filtered or unexported fields
}

func (*UnsetOrgRoleCommand) Execute

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

func (*UnsetOrgRoleCommand) Setup

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

type UnsetSpaceQuotaActor

type UnsetSpaceQuotaActor interface {
	UnsetSpaceQuota(spaceQuotaName, spaceName, orgGUID string) (v7action.Warnings, error)
}

type UnsetSpaceQuotaCommand

type UnsetSpaceQuotaCommand struct {
	RequiredArgs flag.UnsetSpaceQuotaArgs `positional-args:"yes"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       UnsetSpaceQuotaActor
	// contains filtered or unexported fields
}

func (*UnsetSpaceQuotaCommand) Execute

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

func (*UnsetSpaceQuotaCommand) Setup

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

type UnsetSpaceRoleActor

type UnsetSpaceRoleActor interface {
	DeleteSpaceRole(roleType constant.RoleType, spaceGUID string, userNameOrGUID string, userOrigin string, isClient bool) (v7action.Warnings, error)
	GetOrganizationByName(name string) (v7action.Organization, v7action.Warnings, error)
	GetSpaceByNameAndOrganization(spaceName string, orgGUID string) (v7action.Space, v7action.Warnings, error)
	GetUser(username, origin string) (v7action.User, error)
}

type UnsetSpaceRoleCommand

type UnsetSpaceRoleCommand struct {
	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"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       UnsetSpaceRoleActor
	// contains filtered or unexported fields
}

func (*UnsetSpaceRoleCommand) Execute

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

func (*UnsetSpaceRoleCommand) Setup

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

type UnsharePrivateDomainActor

type UnsharePrivateDomainActor interface {
	UnsharePrivateDomain(domainName string, orgName string) (v7action.Warnings, error)
}

type UnsharePrivateDomainCommand

type UnsharePrivateDomainCommand struct {
	RequiredArgs flag.OrgDomain `positional-args:"yes"`

	UI          command.UI
	Config      command.Config
	Actor       UnsharePrivateDomainActor
	SharedActor command.SharedActor
	// contains filtered or unexported fields
}

func (UnsharePrivateDomainCommand) Execute

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

func (*UnsharePrivateDomainCommand) Setup

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

type UpdateBuildpackActor

type UpdateBuildpackActor interface {
	UpdateBuildpackByNameAndStack(buildpackName string, buildpackStack string, buildpack v7action.Buildpack) (v7action.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 {
	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"`

	UI          command.UI
	Config      command.Config
	ProgressBar v7action.SimpleProgressBar
	SharedActor command.SharedActor
	Actor       UpdateBuildpackActor
	// 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 UpdateOrgQuotaActor

type UpdateOrgQuotaActor interface {
	UpdateOrganizationQuota(quotaName string, newName string, limits v7action.QuotaLimits) (v7action.Warnings, error)
}

type UpdateOrgQuotaCommand

type UpdateOrgQuotaCommand struct {
	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.MemoryWithUnlimited `short:"i" description:"Maximum amount of memory a process can have (e.g. 1024M, 1G, 10G). -1 represents an unlimited amount."`
	TotalMemory           flag.MemoryWithUnlimited `` /* 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."`

	UI          command.UI
	Config      command.Config
	ProgressBar v7action.SimpleProgressBar
	SharedActor command.SharedActor
	Actor       UpdateOrgQuotaActor
	// contains filtered or unexported fields
}

func (UpdateOrgQuotaCommand) Execute

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

func (*UpdateOrgQuotaCommand) Setup

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

type UpdateServiceBrokerActor

type UpdateServiceBrokerActor interface {
	GetServiceBrokerByName(serviceBrokerName string) (v7action.ServiceBroker, v7action.Warnings, error)
	UpdateServiceBroker(serviceBrokerGUID string, model v7action.ServiceBrokerModel) (v7action.Warnings, error)
}

type UpdateServiceBrokerCommand

type UpdateServiceBrokerCommand struct {
	RequiredArgs flag.ServiceBrokerArgs `positional-args:"yes"`

	UI          command.UI
	Config      command.Config
	Actor       UpdateServiceBrokerActor
	SharedActor command.SharedActor
	// contains filtered or unexported fields
}

func (UpdateServiceBrokerCommand) Execute

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

func (*UpdateServiceBrokerCommand) Setup

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

type UpdateSpaceQuotaActor

type UpdateSpaceQuotaActor interface {
	UpdateSpaceQuota(quotaName, orgGUID, newName string, limits v7action.QuotaLimits) (v7action.Warnings, error)
}

type UpdateSpaceQuotaCommand

type UpdateSpaceQuotaCommand struct {
	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.MemoryWithUnlimited `short:"i" description:"Maximum amount of memory a process can have (e.g. 1024M, 1G, 10G). -1 represents an unlimited amount."`
	TotalMemory           flag.MemoryWithUnlimited `` /* 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."`

	UI          command.UI
	Config      command.Config
	ProgressBar v7action.SimpleProgressBar
	SharedActor command.SharedActor
	Actor       UpdateSpaceQuotaActor
	// contains filtered or unexported fields
}

func (UpdateSpaceQuotaCommand) Execute

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

func (*UpdateSpaceQuotaCommand) Setup

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

type V7ActorForPush

type V7ActorForPush interface {
	AppActor
	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.
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