v6

package
v7.0.0-beta.27+incompa... Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: Apache-2.0 Imports: 45 Imported by: 0

Documentation

Overview

Package v6 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 v2action.TargetSettings) (v2action.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
	Actor  APIActor
	Config command.Config
	// contains filtered or unexported fields
}

func (*APICommand) ClearTarget

func (cmd *APICommand) ClearTarget() error

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 ActorMaker

type ActorMaker interface {
	NewActor(command.Config, command.UI, bool, string) (LoginActor, error)
}

type ActorMakerFunc

type ActorMakerFunc func(command.Config, command.UI, bool, string) (LoginActor, error)

func (ActorMakerFunc) NewActor

func (a ActorMakerFunc) NewActor(config command.Config, ui command.UI, targetCF bool, authorizationEndpoint string) (LoginActor, error)

type AddNetworkPolicyActor

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

type AddNetworkPolicyCommand

type AddNetworkPolicyCommand struct {
	RequiredArgs   flag.AddNetworkPolicyArgs `positional-args:"yes"`
	DestinationApp string                    `long:"destination-app" required:"true" description:"Name of app to connect to"`
	Port           flag.NetworkPort          `long:"port" description:"Port or range of ports for connection to destination app (Default: 8080)"`
	Protocol       flag.NetworkProtocol      `long:"protocol" description:"Protocol to connect apps with (Default: tcp)"`

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

	UI                 command.UI
	Config             command.Config
	SharedActor        command.SharedActor
	NetworkPolicyActor AddNetworkPolicyActor
	MembershipActor    MembershipActor
	// contains filtered or unexported fields
}

func (AddNetworkPolicyCommand) Execute

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

func (*AddNetworkPolicyCommand) Setup

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

type AllowSpaceSSHCommand

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

func (AllowSpaceSSHCommand) Execute

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

func (AllowSpaceSSHCommand) Setup

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

type AppsCommand

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

func (AppsCommand) Execute

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

func (AppsCommand) Setup

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

type AuthActor

type AuthActor interface {
	Authenticate(ID string, secret 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 BindRouteServiceCommand

type BindRouteServiceCommand struct {
	RequiredArgs     flag.RouteServiceArgs `positional-args:"yes"`
	ParametersAsJSON flag.Path             `` /* 230-byte string literal not displayed */
	Hostname         string                `long:"hostname" short:"n" description:"Hostname used in combination with DOMAIN to specify the route to bind"`
	Path             string                `long:"path" description:"Path used in combination with HOSTNAME and DOMAIN to specify the route to bind"`

	BackwardsCompatibility bool `short:"f" hidden:"true" description:"This is for backwards compatibility"`
	// contains filtered or unexported fields
}

func (BindRouteServiceCommand) Execute

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

func (BindRouteServiceCommand) Setup

type BindRunningSecurityGroupCommand

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

func (BindRunningSecurityGroupCommand) Execute

func (BindRunningSecurityGroupCommand) Setup

type BindSecurityGroupActor

type BindSecurityGroupActor interface {
	BindSecurityGroupToSpace(securityGroupGUID string, spaceGUID string, lifecycle constant.SecurityGroupLifecycle) (v2action.Warnings, error)
	CloudControllerAPIVersion() string
	GetOrganizationByName(orgName string) (v2action.Organization, v2action.Warnings, error)
	GetOrganizationSpaces(orgGUID string) ([]v2action.Space, v2action.Warnings, error)
	GetSecurityGroupByName(securityGroupName string) (v2action.SecurityGroup, v2action.Warnings, error)
	GetSpaceByOrganizationAndName(orgGUID string, spaceName string) (v2action.Space, v2action.Warnings, error)
}

type BindSecurityGroupCommand

type BindSecurityGroupCommand struct {
	RequiredArgs flag.BindSecurityGroupArgs  `positional-args:"yes"`
	Lifecycle    flag.SecurityGroupLifecycle `long:"lifecycle" choice:"running" choice:"staging" default:"running" description:"Lifecycle phase the group applies to"`

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

func (BindSecurityGroupCommand) Execute

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

func (*BindSecurityGroupCommand) Setup

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

type BindServiceActor

type BindServiceActor interface {
	BindServiceBySpace(appName string, ServiceInstanceName string, spaceGUID string, bindingName string, parameters map[string]interface{}) (v2action.ServiceBinding, v2action.Warnings, error)
	CloudControllerAPIVersion() string
}

type BindServiceCommand

type BindServiceCommand struct {
	RequiredArgs     flag.BindServiceArgs          `positional-args:"yes"`
	BindingName      flag.BindingName              `long:"binding-name" description:"Name to expose service instance to app process with (Default: service instance name)"`
	ParametersAsJSON flag.JSONOrFileWithValidation `` /* 238-byte string literal not displayed */

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

func (BindServiceCommand) Execute

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

func (*BindServiceCommand) Setup

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

type BindStagingSecurityGroupCommand

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

func (BindStagingSecurityGroupCommand) Execute

func (BindStagingSecurityGroupCommand) Setup

type BuildpacksCommand

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

func (BuildpacksCommand) Execute

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

func (BuildpacksCommand) Setup

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

type CheckRouteCommand

type CheckRouteCommand struct {
	RequiredArgs flag.HostDomain `positional-args:"yes"`
	Path         string          `long:"path" description:"Path for the route"`
	// contains filtered or unexported fields
}

func (CheckRouteCommand) Execute

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

func (CheckRouteCommand) Setup

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

type ConfigCommand

type ConfigCommand struct {
	AsyncTimeout int               `long:"async-timeout" description:"Timeout for async HTTP requests"`
	Color        flag.Color        `long:"color" description:"Enable or disable color"`
	Locale       flag.Locale       `long:"locale" description:"Set default locale. If LOCALE is 'CLEAR', previous locale is deleted."`
	Trace        flag.PathWithBool `long:"trace" description:"Trace HTTP requests"`
	// contains filtered or unexported fields
}

func (ConfigCommand) Execute

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

func (ConfigCommand) Setup

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

type CopySourceCommand

type CopySourceCommand struct {
	RequiredArgs flag.CopySourceArgs `positional-args:"yes"`
	NoRestart    bool                `long:"no-restart" description:"Override restart of the application in target environment after copy-source completes"`
	Organization string              `short:"o" description:"Org that contains the target application"`
	Space        string              `short:"s" description:"Space that contains the target application"`
	// contains filtered or unexported fields
}

func (CopySourceCommand) Execute

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

func (CopySourceCommand) Setup

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

type CreateAppManifestActor

type CreateAppManifestActor interface {
	CreateApplicationManifestByNameAndSpace(appName string, spaceGUID string) (manifest.Application, v2v3action.Warnings, error)
	WriteApplicationManifest(manifestApp manifest.Application, manifestPath string) 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
	// 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(name string, position int, enabled bool) (v2action.Buildpack, v2action.Warnings, error)
	UploadBuildpack(GUID string, path string, progBar v2action.SimpleProgressBar) (v2action.Warnings, error)
	PrepareBuildpackBits(inputPath string, tmpDirPath string, downloader v2action.Downloader) (string, 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"`
	Enable       bool                     `long:"enable" description:"Enable the buildpack to be used for staging"`

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

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

func (CreateDomainCommand) Execute

func (CreateDomainCommand) Execute(args []string) error

func (CreateDomainCommand) Setup

func (CreateDomainCommand) Setup(config command.Config, ui command.UI) error

type CreateIsolationSegmentActor

type CreateIsolationSegmentActor interface {
	CreateIsolationSegmentByName(isolationSegment v3action.IsolationSegment) (v3action.Warnings, error)
}

type CreateIsolationSegmentCommand

type CreateIsolationSegmentCommand struct {
	RequiredArgs flag.IsolationSegmentName `positional-args:"yes"`

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

func (CreateIsolationSegmentCommand) Execute

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

func (*CreateIsolationSegmentCommand) Setup

type CreateOrgActor

type CreateOrgActor interface {
	CreateOrganization(orgName string, quotaName string) (v2action.Organization, v2action.Warnings, error)
	GrantOrgManagerByUsername(guid string, username string) (v2action.Warnings, error)
}

type CreateOrgCommand

type CreateOrgCommand struct {
	RequiredArgs flag.Organization `positional-args:"yes"`
	Quota        string            `` /* 127-byte string literal not displayed */

	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 CreateQuotaCommand

type CreateQuotaCommand struct {
	RequiredArgs                flag.Quota               `positional-args:"yes"`
	NumAppInstances             int                      `short:"a" description:"Total number of application instances. -1 represents an unlimited amount. (Default: unlimited)"`
	AllowPaidServicePlans       bool                     `long:"allow-paid-service-plans" description:"Can provision instances of paid service plans"`
	IndividualAppInstanceMemory flag.MemoryWithUnlimited `` /* 139-byte string literal not displayed */
	TotalMemory                 string                   `short:"m" description:"Total amount of memory a space can have (e.g. 1024M, 1G, 10G)"`
	NumRoutes                   int                      `short:"r" description:"Total number of routes"`
	ReservedRoutePorts          int                      `long:"reserved-route-ports" description:"Maximum number of routes that may be created with reserved ports (Default: 0)"`
	NumServiceInstances         int                      `short:"s" description:"Total number of service instances"`
	// contains filtered or unexported fields
}

func (CreateQuotaCommand) Execute

func (CreateQuotaCommand) Execute(args []string) error

func (CreateQuotaCommand) Setup

func (CreateQuotaCommand) Setup(config command.Config, ui command.UI) error

type CreateRouteActor

type CreateRouteActor interface {
	CloudControllerAPIVersion() string
	CreateRouteWithExistenceCheck(orgGUID string, spaceName string, route v2action.Route, generatePort bool) (v2action.Route, v2action.Warnings, error)
}

type CreateRouteCommand

type CreateRouteCommand struct {
	RequiredArgs flag.SpaceDomain `positional-args:"yes"`
	Hostname     string           `long:"hostname" short:"n" description:"Hostname for the HTTP route (required for shared domains)"`
	Path         string           `long:"path" description:"Path for the HTTP route"`
	Port         flag.Port        `long:"port" description:"Port for the TCP route"`
	RandomPort   bool             `long:"random-port" description:"Create a random port for the TCP route"`

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

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

func (CreateSecurityGroupCommand) Execute

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

func (CreateSecurityGroupCommand) Setup

type CreateServiceActor

type CreateServiceActor interface {
	CreateServiceInstance(spaceGUID, serviceName, servicePlanName, serviceInstanceName, brokerName string, params map[string]interface{}, tags []string) (v2action.ServiceInstance, v2action.Warnings, error)
}

type CreateServiceAuthTokenCommand

type CreateServiceAuthTokenCommand struct {
	RequiredArgs flag.ServiceAuthTokenArgs `positional-args:"yes"`

	UI command.UI
	// contains filtered or unexported fields
}

func (*CreateServiceAuthTokenCommand) Execute

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

func (*CreateServiceAuthTokenCommand) Setup

type CreateServiceBrokerActor

type CreateServiceBrokerActor interface {
	CreateServiceBroker(serviceBrokerName, username, password, brokerURI, spaceGUID string) (v2action.ServiceBroker, v2action.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"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	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 CreateServiceCommand

type CreateServiceCommand struct {
	RequiredArgs     flag.CreateServiceArgs        `positional-args:"yes"`
	ServiceBroker    string                        `short:"b" description:"Create a service instance from a particular broker. Required when service name is ambiguous"`
	ParametersAsJSON flag.JSONOrFileWithValidation `` /* 238-byte string literal not displayed */
	Tags             flag.Tags                     `short:"t" description:"User provided tags"`

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

func (CreateServiceCommand) Execute

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

func (*CreateServiceCommand) Setup

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

type CreateServiceKeyActor

type CreateServiceKeyActor interface {
	CreateServiceKey(serviceInstanceName, keyName, spaceGUID string, parameters map[string]interface{}) (v2action.ServiceKey, v2action.Warnings, error)
}

type CreateServiceKeyCommand

type CreateServiceKeyCommand struct {
	RequiredArgs     flag.ServiceInstanceKey       `positional-args:"yes"`
	ParametersAsJSON flag.JSONOrFileWithValidation `` /* 238-byte string literal not displayed */

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

func (CreateServiceKeyCommand) Execute

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

func (*CreateServiceKeyCommand) Setup

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

type CreateSharedDomainActor

type CreateSharedDomainActor interface {
	GetRouterGroupByName(string, v2action.RouterClient) (v2action.RouterGroup, error)
	CreateSharedDomain(string, v2action.RouterGroup, bool) (v2action.Warnings, error)
	CloudControllerAPIVersion() string
}

type CreateSharedDomainCommand

type CreateSharedDomainCommand struct {
	RequiredArgs flag.Domain `positional-args:"yes"`
	RouterGroup  string      `long:"router-group" description:"Routes for this domain will be configured only on the specified router group"`
	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
	RouterClient v2action.RouterClient
	// 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, orgName, quotaName string) (v2action.Space, v2action.Warnings, error)
	GrantSpaceManagerByUsername(orgGUID string, spaceGUID string, username string) (v2action.Warnings, error)
	GrantSpaceDeveloperByUsername(spaceGUID string, username string) (v2action.Warnings, error)
}

type CreateSpaceCommand

type CreateSpaceCommand struct {
	RequiredArgs flag.Space `positional-args:"yes"`
	Organization string     `short:"o" description:"Organization"`
	Quota        string     `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 CreateSpaceQuotaCommand

type CreateSpaceQuotaCommand struct {
	RequiredArgs                flag.SpaceQuota          `positional-args:"yes"`
	NumAppInstances             int                      `short:"a" description:"Total number of application instances. -1 represents an unlimited amount. (Default: unlimited)"`
	AllowPaidServicePlans       bool                     `long:"allow-paid-service-plans" description:"Can provision instances of paid service plans (Default: disallowed)"`
	IndividualAppInstanceMemory flag.MemoryWithUnlimited `` /* 160-byte string literal not displayed */
	TotalMemory                 string                   `short:"m" description:"Total amount of memory a space can have (e.g. 1024M, 1G, 10G)"`
	NumRoutes                   int                      `short:"r" description:"Total number of routes"`
	ReservedRoutePorts          int                      `long:"reserved-route-ports" description:"Maximum number of routes that may be created with reserved ports (Default: 0)"`
	NumServiceInstances         int                      `short:"s" description:"Total number of service instances"`
	// contains filtered or unexported fields
}

func (CreateSpaceQuotaCommand) Execute

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

func (CreateSpaceQuotaCommand) Setup

type CreateUserActor

type CreateUserActor interface {
	CreateUser(username string, password string, origin string) (v2action.User, v2action.Warnings, 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"`

	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 CreateUserProvidedServiceCommand

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

func (CreateUserProvidedServiceCommand) Execute

func (CreateUserProvidedServiceCommand) Setup

type CurlCommand

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

func (CurlCommand) Execute

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

func (CurlCommand) Setup

func (CurlCommand) Setup(config command.Config, ui command.UI) error

type DeleteBuildpackActor

type DeleteBuildpackActor interface {
	CloudControllerAPIVersion() string
}

type DeleteBuildpackCommand

type DeleteBuildpackCommand struct {
	RequiredArgs flag.BuildpackName `positional-args:"yes"`
	Force        bool               `short:"f" description:"Force deletion without confirmation"`
	Stack        string             `` /* 126-byte string literal not displayed */

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       DeleteBuildpackActor
	// 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"`
	ForceDelete        bool         `short:"f" description:"Force deletion without confirmation"`
	DeleteMappedRoutes bool         `short:"r" description:"Also delete any mapped routes"`
	// contains filtered or unexported fields
}

func (DeleteCommand) Execute

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

func (DeleteCommand) Setup

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

type DeleteDomainCommand

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

func (DeleteDomainCommand) Execute

func (DeleteDomainCommand) Execute(args []string) error

func (DeleteDomainCommand) Setup

func (DeleteDomainCommand) Setup(config command.Config, ui command.UI) error

type DeleteIsolationSegmentActor

type DeleteIsolationSegmentActor interface {
	DeleteIsolationSegmentByName(name string) (v3action.Warnings, error)
}

type DeleteIsolationSegmentCommand

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

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

func (DeleteIsolationSegmentCommand) Execute

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

func (*DeleteIsolationSegmentCommand) Setup

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 DeleteOrganizationActor

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

type DeleteOrphanedRoutesActor

type DeleteOrphanedRoutesActor interface {
	DeleteUnmappedRoutes(spaceGUID string) (v2action.Warnings, error)
}

type DeleteOrphanedRoutesCommand

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

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

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

func (DeleteQuotaCommand) Execute

func (DeleteQuotaCommand) Execute(args []string) error

func (DeleteQuotaCommand) Setup

func (DeleteQuotaCommand) Setup(config command.Config, ui command.UI) 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"`
	Path         string      `long:"path" description:"Path used to identify the HTTP route"`
	Port         int         `long:"port" description:"Port used to identify the TCP route"`
	// contains filtered or unexported fields
}

func (DeleteRouteCommand) Execute

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

func (DeleteRouteCommand) Setup

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

type DeleteSecurityGroupCommand

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

func (DeleteSecurityGroupCommand) Execute

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

func (DeleteSecurityGroupCommand) Setup

type DeleteServiceAuthTokenCommand

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

	UI command.UI
	// contains filtered or unexported fields
}

func (*DeleteServiceAuthTokenCommand) Execute

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

func (*DeleteServiceAuthTokenCommand) Setup

type DeleteServiceBrokerCommand

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

func (DeleteServiceBrokerCommand) Execute

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

func (DeleteServiceBrokerCommand) Setup

type DeleteServiceCommand

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

func (DeleteServiceCommand) Execute

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

func (DeleteServiceCommand) Setup

func (DeleteServiceCommand) Setup(config command.Config, ui command.UI) error

type DeleteServiceKeyCommand

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

func (DeleteServiceKeyCommand) Execute

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

func (DeleteServiceKeyCommand) Setup

type DeleteSharedDomainCommand

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

func (DeleteSharedDomainCommand) Execute

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

func (DeleteSharedDomainCommand) Setup

type DeleteSpaceActor

type DeleteSpaceActor interface {
	DeleteSpaceByNameAndOrganizationName(spaceName string, orgName string) (v2action.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 DeleteSpaceQuotaCommand

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

func (DeleteSpaceQuotaCommand) Execute

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

func (DeleteSpaceQuotaCommand) Setup

type DeleteUserCommand

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

func (DeleteUserCommand) Execute

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

func (DeleteUserCommand) Setup

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

type DisableFeatureFlagCommand

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

func (DisableFeatureFlagCommand) Execute

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

func (DisableFeatureFlagCommand) Setup

type DisableOrgIsolationActor

type DisableOrgIsolationActor interface {
	DeleteIsolationSegmentOrganizationByName(isolationSegmentName string, orgName string) (v3action.Warnings, error)
}

type DisableOrgIsolationCommand

type DisableOrgIsolationCommand struct {
	RequiredArgs flag.OrgIsolationArgs `positional-args:"yes"`

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

func (DisableOrgIsolationCommand) Execute

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

func (*DisableOrgIsolationCommand) Setup

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

type DisableSSHCommand

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

func (DisableSSHCommand) Execute

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

func (DisableSSHCommand) Setup

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

type DisableServiceAccessActor

type DisableServiceAccessActor interface {
	DisablePlanForOrg(serviceName, servicePlanName, orgName, brokerName string) (v2action.Warnings, error)
	DisableServiceForOrg(serviceName, orgName, brokerName string) (v2action.Warnings, error)
	DisablePlanForAllOrgs(serviceName, servicePlanName, brokerName string) (v2action.Warnings, error)
	DisableServiceForAllOrgs(serviceName, brokerName string) (v2action.Warnings, error)
}

type DisableServiceAccessCommand

type DisableServiceAccessCommand struct {
	RequiredArgs  flag.Service `positional-args:"yes"`
	ServiceBroker string       `short:"b" description:"Disable access to a service from a particular service broker. Required when service name is ambiguous"`
	Organization  string       `short:"o" description:"Disable access for a specified organization"`
	ServicePlan   string       `short:"p" description:"Disable access to a specified service plan"`

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

func (DisableServiceAccessCommand) Execute

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

func (*DisableServiceAccessCommand) Setup

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

type DisallowSpaceSSHCommand

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

func (DisallowSpaceSSHCommand) Execute

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

func (DisallowSpaceSSHCommand) Setup

type DomainsActor

type DomainsActor interface {
	GetDomains(orgGUID string) ([]v2action.Domain, v2action.Warnings, error)
}

type DomainsCommand

type DomainsCommand struct {
	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 Downloader

type Downloader interface {
	Download(string) (string, error)
}

type EnableFeatureFlagCommand

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

func (EnableFeatureFlagCommand) Execute

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

func (EnableFeatureFlagCommand) Setup

type EnableOrgIsolationActor

type EnableOrgIsolationActor interface {
	EntitleIsolationSegmentToOrganizationByName(isolationSegmentName string, orgName string) (v3action.Warnings, error)
}

type EnableOrgIsolationCommand

type EnableOrgIsolationCommand struct {
	RequiredArgs flag.OrgIsolationArgs `positional-args:"yes"`

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

func (EnableOrgIsolationCommand) Execute

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

func (*EnableOrgIsolationCommand) Setup

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

type EnableSSHCommand

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

func (EnableSSHCommand) Execute

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

func (EnableSSHCommand) Setup

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

type EnableServiceAccessActor

type EnableServiceAccessActor interface {
	EnablePlanForOrg(serviceName, servicePlanName, orgName, serviceBrokerName string) (v2action.Warnings, error)
	EnableServiceForOrg(serviceName, orgName, serviceBrokerName string) (v2action.Warnings, error)
	EnablePlanForAllOrgs(serviceName, servicePlanName, serviceBrokerName string) (v2action.Warnings, error)
	EnableServiceForAllOrgs(serviceName, serviceBrokerName string) (v2action.Warnings, error)
}

type EnableServiceAccessCommand

type EnableServiceAccessCommand struct {
	RequiredArgs  flag.Service `positional-args:"yes"`
	ServiceBroker string       `short:"b" description:"Enable access to a service from a particular service broker. Required when service name is ambiguous"`
	Organization  string       `short:"o" description:"Enable access for a specified organization"`
	ServicePlan   string       `short:"p" description:"Enable access to a specified service plan"`

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

func (EnableServiceAccessCommand) Execute

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

func (*EnableServiceAccessCommand) Setup

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

type EnvCommand

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

func (EnvCommand) Execute

func (EnvCommand) Execute(args []string) error

func (EnvCommand) Setup

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

type EventsCommand

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

func (EventsCommand) Execute

func (EventsCommand) Execute(args []string) error

func (EventsCommand) Setup

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

type FeatureFlagCommand

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

func (FeatureFlagCommand) Execute

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

func (FeatureFlagCommand) Setup

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

type FeatureFlagsActor

type FeatureFlagsActor interface {
	GetFeatureFlags() ([]v2action.FeatureFlag, v2action.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 FilesCommand

type FilesCommand struct {
	RequiredArgs flag.FilesArgs `positional-args:"yes"`
	Instance     int            `short:"i" description:"Instance"`

	UI command.UI
	// contains filtered or unexported fields
}

func (*FilesCommand) Execute

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

func (*FilesCommand) Setup

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

type GetHealthCheckActor

type GetHealthCheckActor interface {
	GetApplicationByNameAndSpace(name string, spaceGUID string) (v2action.Application, v2action.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) Execute

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

func (*GetHealthCheckCommand) Setup

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

type IsolationSegmentsActor

type IsolationSegmentsActor interface {
	GetIsolationSegmentSummaries() ([]v3action.IsolationSegmentSummary, v3action.Warnings, error)
}

type IsolationSegmentsCommand

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

func (IsolationSegmentsCommand) Execute

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

func (*IsolationSegmentsCommand) Setup

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

type LoginActor

type LoginActor interface {
	Authenticate(credentials map[string]string, origin string, grantType constant.GrantType) error
	GetLoginPrompts() map[string]coreconfig.AuthPrompt
	GetOrganizationByName(orgName string) (v3action.Organization, v3action.Warnings, error)
	GetOrganizationSpaces(orgName string) ([]v3action.Space, v3action.Warnings, error)
	GetSpaceByNameAndOrganization(spaceName string, orgGUID string) (v3action.Space, v3action.Warnings, error)
	GetOrganizations() ([]v3action.Organization, v3action.Warnings, error)
	SetTarget(settings v3action.TargetSettings) (v3action.Warnings, error)
}

type LoginCommand

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

	UI           command.UI
	Actor        LoginActor
	ActorMaker   ActorMaker
	V2Actor      V2LoginActor
	V2ActorMaker V2ActorMaker
	Config       command.Config
	// contains filtered or unexported fields
}

func (*LoginCommand) Execute

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

func (*LoginCommand) Setup

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

type LogoutCommand

type LogoutCommand struct {
	UI     command.UI
	Config command.Config
	// contains filtered or unexported fields
}

func (LogoutCommand) Execute

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

func (*LogoutCommand) Setup

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

type LogsActor

type LogsActor interface {
	GetRecentLogsForApplicationByNameAndSpace(appName string, spaceGUID string, client v2action.NOAAClient) ([]v2action.LogMessage, v2action.Warnings, error)
	GetStreamingLogsForApplicationByNameAndSpace(appName string, spaceGUID string, client v2action.NOAAClient) (<-chan *v2action.LogMessage, <-chan error, v2action.Warnings, 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
	SharedActor command.SharedActor
	Actor       LogsActor
	NOAAClient  *consumer.Consumer
	// 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 ManifestParser

type ManifestParser interface {
	v3action.ManifestParser
	InterpolateAndParse(pathToManifest string, pathsToVarsFiles []string, vars []template.VarKV, appName string) 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         string         `long:"path" description:"Path for the HTTP route"`
	Port         int            `long:"port" description:"Port for the TCP route"`
	RandomPort   bool           `long:"random-port" description:"Create a random port for the TCP route"`
	// contains filtered or unexported fields
}

func (MapRouteCommand) Execute

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

func (MapRouteCommand) Setup

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

type MarketplaceCommand

type MarketplaceCommand struct {
	ServiceName string `short:"s" description:"Show plan details for a particular service offering"`
	NoPlans     bool   `long:"no-plans" description:"Hide plan information for service offerings"`

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

func (*MarketplaceCommand) Execute

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

func (*MarketplaceCommand) Setup

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

type MembershipActor

type MembershipActor interface {
	GetOrganizationByName(name string) (v3action.Organization, v3action.Warnings, error)
	GetSpaceByNameAndOrganization(spaceName string, orgGUID string) (v3action.Space, v3action.Warnings, error)
}

type MigrateServiceInstancesCommand

type MigrateServiceInstancesCommand struct {
	RequiredArgs flag.MigrateServiceInstancesArgs `positional-args:"yes"`
	Force        bool                             `short:"f" description:"Force migration without confirmation"`

	UI command.UI
	// contains filtered or unexported fields
}

func (*MigrateServiceInstancesCommand) Execute

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

func (*MigrateServiceInstancesCommand) Setup

type NetworkPoliciesActor

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

type NetworkPoliciesCommand

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

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

func (NetworkPoliciesCommand) Execute

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

func (*NetworkPoliciesCommand) Setup

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

type OauthTokenActor

type OauthTokenActor interface {
	RefreshAccessToken(refreshToken string) (string, error)
	ParseAccessToken(accessToken string) (jwt.JWT, error)
}

type OauthTokenCommand

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

func (OauthTokenCommand) Execute

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

func (*OauthTokenCommand) Setup

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

type OrgActor

type OrgActor interface {
	GetOrganizationByName(orgName string) (v2action.Organization, v2action.Warnings, error)
	GetOrganizationSummaryByName(orgName string) (v2action.OrganizationSummary, v2action.Warnings, error)
}

type OrgActorV3

type OrgActorV3 interface {
	GetIsolationSegmentsByOrganization(orgName string) ([]v3action.IsolationSegment, v3action.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
	ActorV3     OrgActorV3
	// 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 OrgUsersCommand

type OrgUsersCommand struct {
	RequiredArgs flag.Organization `positional-args:"yes"`
	AllUsers     bool              `short:"a" description:"List all users in the org"`
	// contains filtered or unexported fields
}

func (OrgUsersCommand) Execute

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

func (OrgUsersCommand) Setup

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

type OrgsActor

type OrgsActor interface {
	GetOrganizations() ([]v2action.Organization, v2action.Warnings, error)
}

type OrgsCommand

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

type OriginalV2PushActor interface {
	CreateAndMapDefaultApplicationRoute(orgGUID string, spaceGUID string, app v2action.Application) (pushaction.Warnings, error)
}

type PasswdCommand

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

func (PasswdCommand) Execute

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

func (PasswdCommand) Setup

func (PasswdCommand) Setup(config command.Config, ui command.UI) error

type ProgressBar

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

type PurgeServiceInstanceCommand

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

func (PurgeServiceInstanceCommand) Execute

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

func (PurgeServiceInstanceCommand) Setup

type PurgeServiceOfferingActor

type PurgeServiceOfferingActor interface {
	PurgeServiceOffering(service v2action.Service) (v2action.Warnings, error)
	GetServiceByNameAndBrokerName(serviceName, brokerName string) (v2action.Service, v2action.Warnings, error)
}

type PurgeServiceOfferingCommand

type PurgeServiceOfferingCommand struct {
	RequiredArgs  flag.Service `positional-args:"yes"`
	ServiceBroker string       `short:"b" description:"Purge a service from a particular service broker. Required when service name is ambiguous"`
	Force         bool         `short:"f" description:"Force deletion without confirmation"`
	Provider      string       `short:"p" description:"Provider"`

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

func (*PurgeServiceOfferingCommand) Execute

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

func (*PurgeServiceOfferingCommand) Setup

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

type PushCommand

type PushCommand struct {
	OptionalArgs       flag.OptionalAppName                    `positional-args:"yes"`
	Buildpacks         []string                                `` /* 317-byte string literal not displayed */
	Command            flag.Command                            `short:"c" description:"Startup command, set to null to reset to default start command"`
	Domain             string                                  `` /* 137-byte string literal not displayed */
	DockerImage        flag.DockerImage                        `long:"docker-image" short:"o" description:"Docker-image to be used (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"`
	PathToManifest     flag.PathWithExistenceCheck             `short:"f" description:"Path to manifest"`
	HealthCheckType    flag.HealthCheckTypeWithDeprecatedValue `` /* 156-byte string literal not displayed */
	Hostname           string                                  `long:"hostname" short:"n" description:"Hostname (e.g. my-subdomain)"`
	Instances          flag.Instances                          `short:"i" description:"Number of instances"`
	DiskQuota          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)"`
	NoHostname         bool                                    `long:"no-hostname" description:"Map the root domain to this app"`
	NoManifest         bool                                    `long:"no-manifest" description:"Ignore manifest file"`
	NoRoute            bool                                    `long:"no-route" description:"Do not map a route to this app and remove routes from previous pushes of this app"`
	NoStart            bool                                    `long:"no-start" description:"Do not start an app after pushing"`
	AppPath            flag.PathWithExistenceCheck             `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"`
	RoutePath          flag.V6RoutePath                        `long:"route-path" description:"Path for the route"`
	StackName          string                                  `short:"s" description:"Stack to use (a stack is a pre-built file system, including an operating system, that can run apps)"`
	VarsFilePaths      []flag.PathWithExistenceCheck           `long:"vars-file" description:"Path to a variable substitution file for manifest; can specify multiple times"`
	Vars               []template.VarKV                        `long:"var" description:"Variable key value pair for variable substitution, (e.g., name=app1); can specify multiple times"`
	HealthCheckTimeout uint64                                  `` /* 130-byte string literal not displayed */

	UI                      command.UI
	Config                  command.Config
	SharedActor             command.SharedActor
	Actor                   V2PushActor
	ApplicationSummaryActor shared.ApplicationSummaryActor
	ProgressBar             ProgressBar

	RestartActor RestartActor
	NOAAClient   *consumer.Consumer
	// contains filtered or unexported fields
}

func (PushCommand) Execute

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

func (PushCommand) GetCommandLineSettings

func (cmd PushCommand) GetCommandLineSettings() (pushaction.CommandLineSettings, error)

GetCommandLineSettings generates a push CommandLineSettings object from the command's command line flags. It also validates those settings, preventing contradictory flags.

func (*PushCommand) Setup

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

type QuotaCommand

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

func (QuotaCommand) Execute

func (QuotaCommand) Execute(args []string) error

func (QuotaCommand) Setup

func (QuotaCommand) Setup(config command.Config, ui command.UI) error

type QuotasCommand

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

func (QuotasCommand) Execute

func (QuotasCommand) Execute(args []string) error

func (QuotasCommand) Setup

func (QuotasCommand) Setup(config command.Config, ui command.UI) error

type RemoveNetworkPolicyActor

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

type RemoveNetworkPolicyCommand

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

	UI                 command.UI
	Config             command.Config
	SharedActor        command.SharedActor
	NetworkPolicyActor RemoveNetworkPolicyActor
	MembershipActor    MembershipActor
	// contains filtered or unexported fields
}

func (RemoveNetworkPolicyCommand) Execute

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

func (*RemoveNetworkPolicyCommand) Setup

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

type RenameBuildpackActor

type RenameBuildpackActor interface {
	CloudControllerAPIVersion() string
	RenameBuildpack(oldName string, newName string, stackName string) (v2action.Warnings, error)
}

type RenameBuildpackCommand

type RenameBuildpackCommand struct {
	RequiredArgs flag.RenameBuildpackArgs `positional-args:"yes"`
	Stack        string                   `short:"s" description:"Specify which buildpack to rename by stack"`

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

func (RenameBuildpackCommand) Execute

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

func (*RenameBuildpackCommand) Setup

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

type RenameCommand

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

func (RenameCommand) Execute

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

func (RenameCommand) Setup

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

type RenameOrgCommand

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

func (RenameOrgCommand) Execute

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

func (RenameOrgCommand) Setup

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

type RenameServiceBrokerCommand

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

func (RenameServiceBrokerCommand) Execute

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

func (RenameServiceBrokerCommand) Setup

type RenameServiceCommand

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

func (RenameServiceCommand) Execute

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

func (RenameServiceCommand) Setup

func (RenameServiceCommand) Setup(config command.Config, ui command.UI) error

type RenameSpaceCommand

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

func (RenameSpaceCommand) Execute

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

func (RenameSpaceCommand) Setup

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

type ResetOrgDefaultIsolationSegmentActor

type ResetOrgDefaultIsolationSegmentActor interface {
	ResetOrganizationDefaultIsolationSegment(orgGUID string) (v3action.Warnings, error)
}

type ResetOrgDefaultIsolationSegmentActorV2

type ResetOrgDefaultIsolationSegmentActorV2 interface {
	GetOrganizationByName(orgName string) (v2action.Organization, v2action.Warnings, error)
}

type ResetOrgDefaultIsolationSegmentCommand

type ResetOrgDefaultIsolationSegmentCommand struct {
	RequiredArgs flag.ResetOrgDefaultIsolationArgs `positional-args:"yes"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       ResetOrgDefaultIsolationSegmentActor
	ActorV2     ResetOrgDefaultIsolationSegmentActorV2
	// contains filtered or unexported fields
}

func (ResetOrgDefaultIsolationSegmentCommand) Execute

func (*ResetOrgDefaultIsolationSegmentCommand) Setup

type ResetSpaceIsolationSegmentActor

type ResetSpaceIsolationSegmentActor interface {
	ResetSpaceIsolationSegment(orgGUID string, spaceGUID string) (string, v3action.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 RestageActor

type RestageActor interface {
	GetApplicationByNameAndSpace(name string, spaceGUID string) (v2action.Application, v2action.Warnings, error)
	GetApplicationSummaryByNameAndSpace(name string, spaceGUID string) (v2action.ApplicationSummary, v2action.Warnings, error)
	RestageApplication(app v2action.Application, client v2action.NOAAClient) (<-chan *v2action.LogMessage, <-chan error, <-chan v2action.ApplicationStateChange, <-chan string, <-chan error)
}

type RestageCommand

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

	UI                      command.UI
	Config                  command.Config
	SharedActor             command.SharedActor
	Actor                   RestageActor
	ApplicationSummaryActor shared.ApplicationSummaryActor
	NOAAClient              *consumer.Consumer
	// 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(name string, spaceGUID string) (v2action.Application, v2action.Warnings, error)
	GetApplicationSummaryByNameAndSpace(name string, spaceGUID string) (v2action.ApplicationSummary, v2action.Warnings, error)
	RestartApplication(app v2action.Application, client v2action.NOAAClient) (<-chan *v2action.LogMessage, <-chan error, <-chan v2action.ApplicationStateChange, <-chan string, <-chan error)
}

type RestartAppInstanceCommand

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

func (RestartAppInstanceCommand) Execute

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

func (RestartAppInstanceCommand) Setup

type RestartCommand

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

	UI                      command.UI
	Config                  command.Config
	SharedActor             command.SharedActor
	Actor                   RestartActor
	ApplicationSummaryActor shared.ApplicationSummaryActor
	NOAAClient              *consumer.Consumer
	// 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 RouterGroupsCommand

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

func (RouterGroupsCommand) Execute

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

func (RouterGroupsCommand) Setup

func (RouterGroupsCommand) Setup(config command.Config, ui command.UI) error

type RoutesCommand

type RoutesCommand struct {
	OrgLevel bool `long:"orglevel" description:"List all the routes for all spaces of current organization"`
	// contains filtered or unexported fields
}

func (RoutesCommand) Execute

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

func (RoutesCommand) Setup

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

type RunTaskActor

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

type RunTaskCommand

type RunTaskCommand struct {
	RequiredArgs flag.RunTaskArgs `positional-args:"yes"`
	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)"`

	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 RunningEnvironmentVariableGroupCommand

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

func (RunningEnvironmentVariableGroupCommand) Execute

func (RunningEnvironmentVariableGroupCommand) Setup

type RunningSecurityGroupsCommand

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

func (RunningSecurityGroupsCommand) Execute

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

func (RunningSecurityGroupsCommand) Setup

type SSHActor

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

type SSHCodeActor

type SSHCodeActor interface {
	GetSSHPasscode() (string, error)
}

type SSHCodeCommand

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

func (SSHCodeCommand) Execute

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

func (*SSHCodeCommand) Setup

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

type SSHCommand

type SSHCommand struct {
	RequiredArgs        flag.AppName `positional-args:"yes"`
	AppInstanceIndex    int          `long:"app-instance-index" short:"i" description:"Application instance index (Default: 0)"`
	Command             string       `long:"command" short:"c" description:"Command to run. This flag can be defined more than once."`
	DisablePseudoTTY    bool         `long:"disable-pseudo-tty" short:"T" description:"Disable pseudo-tty allocation"`
	ForcePseudoTTY      bool         `long:"force-pseudo-tty" description:"Force pseudo-tty allocation"`
	LocalPort           string       `short:"L" description:"Local port forward specification. This flag can be defined more than once."`
	RemotePseudoTTY     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"`
	SkipRemoteExecution bool         `long:"skip-remote-execution" short:"N" description:"Do not execute a remote command"`
	// contains filtered or unexported fields
}

func (SSHCommand) Execute

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

func (SSHCommand) Setup

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

type SSHEnabledCommand

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

func (SSHEnabledCommand) Execute

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

func (SSHEnabledCommand) Setup

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

type ScaleCommand

type ScaleCommand struct {
	RequiredArgs flag.AppName `positional-args:"yes"`
	ForceRestart bool         `short:"f" description:"Force restart of app without prompt"`
	NumInstances int          `short:"i" description:"Number of instances"`
	DiskLimit    string       `short:"k" description:"Disk limit (e.g. 256M, 1024M, 1G)"`
	MemoryLimit  string       `short:"m" description:"Memory limit (e.g. 256M, 1024M, 1G)"`
	// contains filtered or unexported fields
}

func (ScaleCommand) Execute

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

func (ScaleCommand) Setup

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

type SecurityGroupCommand

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

func (SecurityGroupCommand) Execute

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

func (SecurityGroupCommand) Setup

func (SecurityGroupCommand) Setup(config command.Config, ui command.UI) error

type SecurityGroupsActor

type SecurityGroupsActor interface {
	CloudControllerAPIVersion() string
	GetSecurityGroupsWithOrganizationSpaceAndLifecycle(includeStaging bool) ([]v2action.SecurityGroupWithOrganizationSpaceAndLifecycle, v2action.Warnings, error)
}

type SecurityGroupsCommand

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

func (SecurityGroupsCommand) Execute

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

func (*SecurityGroupsCommand) Setup

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

type ServiceAccessActor

type ServiceAccessActor interface {
	GetServiceBrokerSummaries(broker string, service string, organization string) ([]v2action.ServiceBrokerSummary, v2action.Warnings, error)
}

type ServiceAccessCommand

type ServiceAccessCommand struct {
	Broker       string `short:"b" description:"Access for plans of a particular broker"`
	Service      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 ServiceActor

type ServiceActor interface {
	GetServiceInstanceByNameAndSpace(name string, spaceGUID string) (v2action.ServiceInstance, v2action.Warnings, error)
	GetServiceInstanceSummaryByNameAndSpace(name string, spaceGUID string) (v2action.ServiceInstanceSummary, v2action.Warnings, error)
	CloudControllerAPIVersion() string
}

type ServiceAuthTokensCommand

type ServiceAuthTokensCommand struct {
	UI command.UI
	// contains filtered or unexported fields
}

func (*ServiceAuthTokensCommand) Execute

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

func (*ServiceAuthTokensCommand) Setup

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

type ServiceBrokersCommand

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

func (ServiceBrokersCommand) Execute

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

func (ServiceBrokersCommand) Setup

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

type ServiceCommand

type ServiceCommand struct {
	RequiredArgs flag.ServiceInstance `positional-args:"yes"`
	GUID         bool                 `long:"guid" description:"Retrieve and display the given service's guid. All other output for the service is suppressed."`

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

func (ServiceCommand) Execute

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

func (*ServiceCommand) Setup

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

type ServiceInstancesActor

type ServiceInstancesActor interface {
	CloudControllerAPIVersion() string
	GetServiceInstancesSummaryBySpace(spaceGUID string) ([]v2action.ServiceInstanceSummary, v2action.Warnings, error)
}

type ServiceKeyCommand

type ServiceKeyCommand struct {
	RequiredArgs flag.ServiceInstanceKey `positional-args:"yes"`
	GUID         bool                    `long:"guid" description:"Retrieve and display the given service-key's guid.  All other output for the service is suppressed."`
	// contains filtered or unexported fields
}

func (ServiceKeyCommand) Execute

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

func (ServiceKeyCommand) Setup

func (ServiceKeyCommand) Setup(config command.Config, ui command.UI) error

type ServiceKeysCommand

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

func (ServiceKeysCommand) Execute

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

func (ServiceKeysCommand) Setup

func (ServiceKeysCommand) Setup(config command.Config, ui command.UI) error

type ServicesCommand

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

func (ServicesCommand) Execute

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

func (*ServicesCommand) Setup

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

type ServicesSummariesActor

type ServicesSummariesActor interface {
	GetServicesSummaries() ([]v2action.ServiceSummary, v2action.Warnings, error)
	GetServicesSummariesForSpace(spaceGUID string) ([]v2action.ServiceSummary, v2action.Warnings, error)

	GetServiceSummaryByName(serviceName string) (v2action.ServiceSummary, v2action.Warnings, error)
	GetServiceSummaryForSpaceByName(spaceGUID, serviceName string) (v2action.ServiceSummary, v2action.Warnings, error)
}

type SetEnvCommand

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

func (SetEnvCommand) Execute

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

func (SetEnvCommand) Setup

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

type SetHealthCheckActor

type SetHealthCheckActor interface {
	SetApplicationHealthCheckTypeByNameAndSpace(name string, spaceGUID string, healthCheckType constant.ApplicationHealthCheckType, httpEndpoint string) (v2action.Application, v2action.Warnings, error)
}

type SetHealthCheckCommand

type SetHealthCheckCommand struct {
	RequiredArgs flag.V6SetHealthCheckArgs `positional-args:"yes"`
	HTTPEndpoint string                    `long:"endpoint" default:"/" description:"Path on the app"`

	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 SetOrgDefaultIsolationSegmentActor

type SetOrgDefaultIsolationSegmentActor interface {
	GetIsolationSegmentByName(isoSegName string) (v3action.IsolationSegment, v3action.Warnings, error)
	SetOrganizationDefaultIsolationSegment(orgGUID string, isoSegGUID string) (v3action.Warnings, error)
}

type SetOrgDefaultIsolationSegmentActorV2

type SetOrgDefaultIsolationSegmentActorV2 interface {
	GetOrganizationByName(orgName string) (v2action.Organization, v2action.Warnings, error)
}

type SetOrgDefaultIsolationSegmentCommand

type SetOrgDefaultIsolationSegmentCommand struct {
	RequiredArgs flag.OrgIsolationArgs `positional-args:"yes"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       SetOrgDefaultIsolationSegmentActor
	ActorV2     SetOrgDefaultIsolationSegmentActorV2
	// contains filtered or unexported fields
}

func (SetOrgDefaultIsolationSegmentCommand) Execute

func (*SetOrgDefaultIsolationSegmentCommand) Setup

type SetOrgRoleCommand

type SetOrgRoleCommand struct {
	RequiredArgs      flag.SetOrgRoleArgs `positional-args:"yes"`
	ClientCredentials bool                `long:"client" description:"Treat USERNAME as the client-id of a (non-user) service account"`
	// contains filtered or unexported fields
}

func (SetOrgRoleCommand) Execute

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

func (SetOrgRoleCommand) Setup

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

type SetQuotaCommand

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

func (SetQuotaCommand) Execute

func (SetQuotaCommand) Execute(args []string) error

func (SetQuotaCommand) Setup

func (SetQuotaCommand) Setup(config command.Config, ui command.UI) error

type SetRunningEnvironmentVariableGroupCommand

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

func (SetRunningEnvironmentVariableGroupCommand) Execute

func (SetRunningEnvironmentVariableGroupCommand) Setup

type SetSpaceIsolationSegmentActor

type SetSpaceIsolationSegmentActor interface {
	AssignIsolationSegmentToSpaceByNameAndSpace(isolationSegmentName string, spaceGUID string) (v3action.Warnings, error)
}

type SetSpaceIsolationSegmentActorV2

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

type SetSpaceIsolationSegmentCommand

type SetSpaceIsolationSegmentCommand struct {
	RequiredArgs flag.SpaceIsolationArgs `positional-args:"yes"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       SetSpaceIsolationSegmentActor
	ActorV2     SetSpaceIsolationSegmentActorV2
	// contains filtered or unexported fields
}

func (SetSpaceIsolationSegmentCommand) Execute

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

func (*SetSpaceIsolationSegmentCommand) Setup

type SetSpaceQuotaCommand

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

func (SetSpaceQuotaCommand) Execute

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

func (SetSpaceQuotaCommand) Setup

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

type SetSpaceRoleCommand

type SetSpaceRoleCommand struct {
	RequiredArgs      flag.SetSpaceRoleArgs `positional-args:"yes"`
	ClientCredentials bool                  `long:"client" description:"Treat USERNAME as the client-id of a (non-user) service account"`
	// contains filtered or unexported fields
}

func (SetSpaceRoleCommand) Execute

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

func (SetSpaceRoleCommand) Setup

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

type SetStagingEnvironmentVariableGroupCommand

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

func (SetStagingEnvironmentVariableGroupCommand) Execute

func (SetStagingEnvironmentVariableGroupCommand) Setup

type SharePrivateDomainCommand

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

func (SharePrivateDomainCommand) Execute

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

func (SharePrivateDomainCommand) Setup

type ShareServiceActor

type ShareServiceActor interface {
	ShareServiceInstanceToSpaceNameByNameAndSpaceAndOrganizationName(sharedToSpaceName string, serviceInstanceName string, sourceSpaceGUID string, sharedToOrgName string) (v2v3action.Warnings, error)
	ShareServiceInstanceToSpaceNameByNameAndSpaceAndOrganization(sharedToSpaceName string, serviceInstanceName string, sourceSpaceGUID string, sharedToOrgGUID string) (v2v3action.Warnings, error)
	CloudControllerV3APIVersion() string
}

type ShareServiceCommand

type ShareServiceCommand struct {
	RequiredArgs flag.ServiceInstance `positional-args:"yes"`
	OrgName      string               `short:"o" required:"false" description:"Org of the other space (Default: targeted org)"`
	SpaceName    string               `short:"s" required:"true" description:"Space to share the service instance into"`

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

func (ShareServiceCommand) Execute

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

func (*ShareServiceCommand) Setup

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

type SpaceActor

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

type SpaceActorV3

type SpaceActorV3 interface {
	GetEffectiveIsolationSegmentBySpace(spaceGUID string, orgDefaultIsolationSegmentGUID string) (v3action.IsolationSegment, v3action.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
	ActorV3     SpaceActorV3
	// 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 SpaceQuotaCommand

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

func (SpaceQuotaCommand) Execute

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

func (SpaceQuotaCommand) Setup

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

type SpaceQuotasCommand

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

func (SpaceQuotasCommand) Execute

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

func (SpaceQuotasCommand) Setup

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

type SpaceSSHAllowedCommand

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

func (SpaceSSHAllowedCommand) Execute

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

func (SpaceSSHAllowedCommand) Setup

type SpaceUsersCommand

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

func (SpaceUsersCommand) Execute

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

func (SpaceUsersCommand) Setup

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

type SpacesActor

type SpacesActor interface {
	GetOrganizationSpaces(orgGUID string) ([]v2action.Space, v2action.Warnings, error)
}

type SpacesCommand

type SpacesCommand struct {
	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 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."`
	// contains filtered or unexported fields
}

func (StackCommand) Execute

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

func (StackCommand) Setup

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

type StacksCommand

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

func (StacksCommand) Execute

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

func (StacksCommand) Setup

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

type StagingEnvironmentVariableGroupCommand

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

func (StagingEnvironmentVariableGroupCommand) Execute

func (StagingEnvironmentVariableGroupCommand) Setup

type StagingSecurityGroupsCommand

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

func (StagingSecurityGroupsCommand) Execute

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

func (StagingSecurityGroupsCommand) Setup

type StartActor

type StartActor interface {
	GetApplicationByNameAndSpace(name string, spaceGUID string) (v2action.Application, v2action.Warnings, error)
	GetApplicationSummaryByNameAndSpace(name string, spaceGUID string) (v2action.ApplicationSummary, v2action.Warnings, error)
	StartApplication(app v2action.Application, client v2action.NOAAClient) (<-chan *v2action.LogMessage, <-chan error, <-chan v2action.ApplicationStateChange, <-chan string, <-chan error)
}

type StartCommand

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

	UI                      command.UI
	Config                  command.Config
	SharedActor             command.SharedActor
	Actor                   StartActor // todo rename key to StartActor to avoid confusion
	ApplicationSummaryActor shared.ApplicationSummaryActor
	NOAAClient              *consumer.Consumer
	// contains filtered or unexported fields
}

func (StartCommand) Execute

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

func (*StartCommand) Setup

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

type StopCommand

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

func (StopCommand) Execute

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

func (StopCommand) Setup

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

type TargetActor

type TargetActor interface {
	GetOrganizationByName(orgName string) (v2action.Organization, v2action.Warnings, error)
	GetOrganizationSpaces(orgGUID string) ([]v2action.Space, v2action.Warnings, error)
	GetSpaceByOrganizationAndName(orgGUID string, spaceName string) (v2action.Space, v2action.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 TasksActor

type TasksActor interface {
	GetApplicationByNameAndSpace(appName string, spaceGUID string) (v3action.Application, v3action.Warnings, error)
	GetApplicationTasks(appGUID string, sortOrder v3action.SortOrder) ([]v3action.Task, v3action.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) (v3action.Application, v3action.Warnings, error)
	GetTaskBySequenceIDAndApplication(sequenceID int, appGUID string) (v3action.Task, v3action.Warnings, error)
	TerminateTask(taskGUID string) (v3action.Task, v3action.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 UnbindRouteServiceCommand

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

func (UnbindRouteServiceCommand) Execute

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

func (UnbindRouteServiceCommand) Setup

type UnbindRunningSecurityGroupCommand

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

func (UnbindRunningSecurityGroupCommand) Execute

func (UnbindRunningSecurityGroupCommand) Setup

type UnbindSecurityGroupActor

type UnbindSecurityGroupActor interface {
	UnbindSecurityGroupByNameAndSpace(securityGroupName string, spaceGUID string, lifecycle constant.SecurityGroupLifecycle) (v2action.Warnings, error)
	UnbindSecurityGroupByNameOrganizationNameAndSpaceName(securityGroupName string, orgName string, spaceName string, lifecycle constant.SecurityGroupLifecycle) (v2action.Warnings, error)
}

type UnbindSecurityGroupCommand

type UnbindSecurityGroupCommand struct {
	RequiredArgs flag.UnbindSecurityGroupArgs `positional-args:"yes"`
	Lifecycle    flag.SecurityGroupLifecycle  `long:"lifecycle" choice:"running" choice:"staging" default:"running" description:"Lifecycle phase the group applies to"`

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

func (UnbindSecurityGroupCommand) Execute

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

func (*UnbindSecurityGroupCommand) Setup

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

type UnbindServiceActor

type UnbindServiceActor interface {
	UnbindServiceBySpace(appName string, serviceInstanceName string, spaceGUID string) (v2action.ServiceBinding, v2action.Warnings, error)
}

type UnbindServiceCommand

type UnbindServiceCommand struct {
	RequiredArgs flag.BindServiceArgs `positional-args:"yes"`

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

func (UnbindServiceCommand) Execute

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

func (*UnbindServiceCommand) Setup

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

type UnbindStagingSecurityGroupCommand

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

func (UnbindStagingSecurityGroupCommand) Execute

func (UnbindStagingSecurityGroupCommand) Setup

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         string         `long:"path" description:"Path used to identify the HTTP route"`
	Port         int            `long:"port" description:"Port used to identify the TCP route"`
	// contains filtered or unexported fields
}

func (UnmapRouteCommand) Execute

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

func (UnmapRouteCommand) Setup

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

type UnsetEnvCommand

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

func (UnsetEnvCommand) Execute

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

func (UnsetEnvCommand) Setup

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

type UnsetOrgRoleCommand

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

func (UnsetOrgRoleCommand) Execute

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

func (UnsetOrgRoleCommand) Setup

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

type UnsetSpaceQuotaCommand

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

func (UnsetSpaceQuotaCommand) Execute

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

func (UnsetSpaceQuotaCommand) Setup

type UnsetSpaceRoleCommand

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

func (UnsetSpaceRoleCommand) Execute

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

func (UnsetSpaceRoleCommand) Setup

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

type UnsharePrivateDomainCommand

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

func (UnsharePrivateDomainCommand) Execute

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

func (UnsharePrivateDomainCommand) Setup

type UnshareServiceActor

type UnshareServiceActor interface {
	UnshareServiceInstanceFromOrganizationNameAndSpaceNameByNameAndSpace(sharedToOrgName string, sharedToSpaceName string, serviceInstanceName string, currentlyTargetedSpaceGUID string) (v2v3action.Warnings, error)
	CloudControllerV3APIVersion() string
}

type UnshareServiceCommand

type UnshareServiceCommand struct {
	RequiredArgs      flag.ServiceInstance `positional-args:"yes"`
	SharedToOrgName   string               `short:"o" required:"false" description:"Org of the other space (Default: targeted org)"`
	SharedToSpaceName string               `short:"s" required:"true" description:"Space to unshare the service instance from"`
	Force             bool                 `short:"f" description:"Force unshare without confirmation"`

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

func (UnshareServiceCommand) Execute

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

func (*UnshareServiceCommand) Setup

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

type UpdateBuildpackActor

type UpdateBuildpackActor interface {
	CloudControllerAPIVersion() string
	UpdateBuildpackByNameAndStack(name, currentStack string, position types.NullInt, locked types.NullBool, enabled types.NullBool, newStack string) (string, v2action.Warnings, error)
	PrepareBuildpackBits(inputPath string, tmpDirPath string, downloader v2action.Downloader) (string, error)
	UploadBuildpack(GUID string, path string, progBar v2action.SimpleProgressBar) (v2action.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"`
	Order        types.NullInt                    `short:"i" description:"The order in which the buildpacks are checked during buildpack auto-detection"`
	Lock         bool                             `long:"lock" description:"Lock the buildpack to prevent updates"`
	Path         flag.PathWithExistenceCheckOrURL `short:"p" description:"Path to directory or zip file"`
	Unlock       bool                             `long:"unlock" description:"Unlock the buildpack to enable updates"`
	CurrentStack string                           `short:"s" description:"Specify stack to disambiguate buildpacks with the same name"`

	UI          command.UI
	SharedActor command.SharedActor
	Actor       UpdateBuildpackActor
	Config      command.Config
	ProgressBar v2action.SimpleProgressBar
	// contains filtered or unexported fields
}

func (UpdateBuildpackCommand) Execute

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

func (*UpdateBuildpackCommand) Setup

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

type UpdateQuotaCommand

type UpdateQuotaCommand struct {
	RequiredArgs             flag.Quota               `positional-args:"yes"`
	NumAppInstances          int                      `short:"a" description:"Total number of application instances. -1 represents an unlimited amount."`
	AllowPaidServicePlans    bool                     `long:"allow-paid-service-plans" description:"Can provision instances of paid service plans"`
	DisallowPaidServicePlans bool                     `long:"disallow-paid-service-plans" description:"Cannot provision instances of paid service plans"`
	AppInstanceMemory        flag.MemoryWithUnlimited `short:"i" description:"Maximum amount of memory an application instance can have (e.g. 1024M, 1G, 10G)"`
	TotalMemory              string                   `short:"m" description:"Total amount of memory (e.g. 1024M, 1G, 10G)"`
	NewName                  string                   `short:"n" description:"New name"`
	NumRoutes                int                      `short:"r" description:"Total number of routes"`
	ReservedRoutePorts       int                      `long:"reserved-route-ports" description:"Maximum number of routes that may be created with reserved ports"`
	NumServiceInstances      int                      `short:"s" description:"Total number of service instances"`
	// contains filtered or unexported fields
}

func (UpdateQuotaCommand) Execute

func (UpdateQuotaCommand) Execute(args []string) error

func (UpdateQuotaCommand) Setup

func (UpdateQuotaCommand) Setup(config command.Config, ui command.UI) error

type UpdateSecurityGroupCommand

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

func (UpdateSecurityGroupCommand) Execute

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

func (UpdateSecurityGroupCommand) Setup

type UpdateServiceActor

type UpdateServiceActor interface {
	CloudControllerAPIVersion() string
	GetServiceInstanceByNameAndSpace(name string, spaceGUID string) (v2action.ServiceInstance, v2action.Warnings, error)
	UpgradeServiceInstance(serviceInstance v2action.ServiceInstance) (v2action.Warnings, error)
}

type UpdateServiceAuthTokenCommand

type UpdateServiceAuthTokenCommand struct {
	RequiredArgs flag.ServiceAuthTokenArgs `positional-args:"yes"`

	UI command.UI
	// contains filtered or unexported fields
}

func (*UpdateServiceAuthTokenCommand) Execute

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

func (*UpdateServiceAuthTokenCommand) Setup

type UpdateServiceBrokerCommand

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

func (UpdateServiceBrokerCommand) Execute

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

func (UpdateServiceBrokerCommand) Setup

type UpdateServiceCommand

type UpdateServiceCommand struct {
	RequiredArgs     flag.ServiceInstance `positional-args:"yes"`
	ParametersAsJSON flag.Path            `` /* 238-byte string literal not displayed */
	Plan             string               `short:"p" description:"Change service plan for a service instance"`
	Tags             string               `short:"t" description:"User provided tags"`

	Upgrade      bool `` /* 166-byte string literal not displayed */
	ForceUpgrade bool `` /* 148-byte string literal not displayed */

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

func (*UpdateServiceCommand) Execute

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

func (*UpdateServiceCommand) Setup

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

type UpdateSpaceQuotaCommand

type UpdateSpaceQuotaCommand struct {
	RequiredArgs             flag.SpaceQuota          `positional-args:"yes"`
	NumAppInstances          int                      `short:"a" description:"Total number of application instances. -1 represents an unlimited amount."`
	AllowPaidServicePlans    bool                     `long:"allow-paid-service-plans" description:"Can provision instances of paid service plans"`
	DisallowPaidServicePlans bool                     `long:"disallow-paid-service-plans" description:"Can not provision instances of paid service plans"`
	AppInstanceMemory        flag.MemoryWithUnlimited `` /* 139-byte string literal not displayed */
	TotalMemory              string                   `short:"m" description:"Total amount of memory a space can have (e.g. 1024M, 1G, 10G)"`
	Name                     string                   `short:"n" description:"New name"`
	NumRoutes                int                      `short:"r" description:"Total number of routes"`
	ReservedRoutePorts       int                      `long:"reserved-route-ports" description:"Maximum number of routes that may be created with reserved ports"`
	NumServiceInstances      int                      `short:"s" description:"Total number of service instances"`
	// contains filtered or unexported fields
}

func (UpdateSpaceQuotaCommand) Execute

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

func (UpdateSpaceQuotaCommand) Setup

type UpdateUserProvidedServiceActor

type UpdateUserProvidedServiceActor interface {
	GetServiceInstanceByNameAndSpace(name string, spaceGUID string) (v2action.ServiceInstance, v2action.Warnings, error)
	UpdateUserProvidedServiceInstance(guid string, instance v2action.UserProvidedServiceInstance) (v2action.Warnings, error)
}

type UpdateUserProvidedServiceCommand

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

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

func (*UpdateUserProvidedServiceCommand) Execute

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

func (*UpdateUserProvidedServiceCommand) Setup

type V2ActorMaker

type V2ActorMaker interface {
	NewV2Actor(command.Config, command.UI, bool) (V2LoginActor, error)
}

type V2ActorMakerFunc

type V2ActorMakerFunc func(command.Config, command.UI, bool) (V2LoginActor, error)

func (V2ActorMakerFunc) NewV2Actor

func (a V2ActorMakerFunc) NewV2Actor(config command.Config, ui command.UI, targetCF bool) (V2LoginActor, error)

type V2LoginActor

type V2LoginActor interface {
	MinCLIVersion() string
	CloudControllerAPIVersion() string
	AuthorizationEndpoint() string
}

type V2PushActor

type V2PushActor interface {
	Apply(config pushaction.ApplicationConfig, progressBar pushaction.ProgressBar) (<-chan pushaction.ApplicationConfig, <-chan pushaction.Event, <-chan pushaction.Warnings, <-chan error)
	CloudControllerV2APIVersion() string
	CloudControllerV3APIVersion() string
	ConvertToApplicationConfigs(orgGUID string, spaceGUID string, noStart bool, apps []manifest.Application) ([]pushaction.ApplicationConfig, pushaction.Warnings, error)
	MergeAndValidateSettingsAndManifests(cmdSettings pushaction.CommandLineSettings, apps []manifest.Application) ([]manifest.Application, error)
	ReadManifest(pathToManifest string, pathsToVarsFiles []string, vars []template.VarKV) ([]manifest.Application, pushaction.Warnings, error)
}

type V2V3AppSummaryActor

type V2V3AppSummaryActor interface {
	GetApplicationSummaryByNameAndSpace(appName string, spaceGUID string, withObfuscatedValues bool) (v2v3action.ApplicationSummary, v2v3action.Warnings, error)
}

type V3AppActor

type V3AppActor interface {
	shared.V3AppSummaryActor
	GetApplicationByNameAndSpace(name string, spaceGUID string) (v3action.Application, v3action.Warnings, error)
}

type V3AppCommand

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

	UI              command.UI
	Config          command.Config
	SharedActor     command.SharedActor
	AppSummaryActor V2V3AppSummaryActor
	Actor           V3AppActor
	// contains filtered or unexported fields
}

func (V3AppCommand) Execute

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

func (*V3AppCommand) Setup

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

type V3ApplyManifestActor

type V3ApplyManifestActor interface {
	ApplyApplicationManifest(parser v3action.ManifestParser, spaceGUID string) (v3action.Warnings, error)
}

type V3ApplyManifestCommand

type V3ApplyManifestCommand struct {
	PathToManifest flag.PathWithExistenceCheck `short:"f" description:"Path to app manifest" required:"true"`

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       V3ApplyManifestActor
	Parser      ManifestParser
	// contains filtered or unexported fields
}

func (V3ApplyManifestCommand) Execute

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

func (*V3ApplyManifestCommand) Setup

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

type V3AppsActor

type V3AppsActor interface {
	GetApplicationsWithProcessesBySpace(spaceGUID string) ([]v3action.ApplicationWithProcessSummary, v3action.Warnings, error)
}

type V3AppsCommand

type V3AppsCommand struct {
	UI          command.UI
	Config      command.Config
	Actor       V3AppsActor
	V2AppActor  shared.V2AppActor
	SharedActor command.SharedActor
	// contains filtered or unexported fields
}

func (V3AppsCommand) Execute

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

func (*V3AppsCommand) Setup

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

type V3CancelZdtPushActor

type V3CancelZdtPushActor interface {
	CancelDeploymentByAppNameAndSpace(appName string, spaceGUID string) (v3action.Warnings, error)
}

type V3CancelZdtPushCommand

type V3CancelZdtPushCommand struct {
	RequiredArgs       flag.AppName `positional-args:"yes"`
	UI                 command.UI
	Config             command.Config
	CancelZdtPushActor V3CancelZdtPushActor
	SharedActor        command.SharedActor
	// contains filtered or unexported fields
}

func (V3CancelZdtPushCommand) Execute

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

func (*V3CancelZdtPushCommand) Setup

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

type V3CreateAppActor

type V3CreateAppActor interface {
	CreateApplicationInSpace(app v3action.Application, spaceGUID string) (v3action.Application, v3action.Warnings, error)
}

type V3CreateAppCommand

type V3CreateAppCommand 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       V3CreateAppActor
	// contains filtered or unexported fields
}

func (V3CreateAppCommand) Execute

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

func (*V3CreateAppCommand) Setup

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

type V3CreatePackageActor

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

type V3CreatePackageCommand

type V3CreatePackageCommand 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       V3CreatePackageActor

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

func (V3CreatePackageCommand) Execute

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

func (*V3CreatePackageCommand) Setup

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

type V3DeleteActor

type V3DeleteActor interface {
	DeleteApplicationByNameAndSpace(name string, spaceGUID string) (v3action.Warnings, error)
}

type V3DeleteCommand

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

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

func (V3DeleteCommand) Execute

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

func (*V3DeleteCommand) Setup

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

type V3DropletsActor

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

type V3DropletsCommand

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

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

func (V3DropletsCommand) Execute

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

func (*V3DropletsCommand) Setup

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

type V3EnvActor

type V3EnvActor interface {
	GetEnvironmentVariablesByApplicationNameAndSpace(appName string, spaceGUID string) (v3action.EnvironmentVariableGroups, v3action.Warnings, error)
}

type V3EnvCommand

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

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

func (V3EnvCommand) Execute

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

func (*V3EnvCommand) Setup

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

type V3GetHealthCheckActor

type V3GetHealthCheckActor interface {
	GetApplicationProcessHealthChecksByNameAndSpace(appName string, spaceGUID string) ([]v3action.ProcessHealthCheck, v3action.Warnings, error)
}

type V3GetHealthCheckCommand

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

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

func (V3GetHealthCheckCommand) Execute

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

func (*V3GetHealthCheckCommand) Setup

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

type V3PackagesActor

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

type V3PackagesCommand

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

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

func (V3PackagesCommand) Execute

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

func (*V3PackagesCommand) Setup

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

type V3PushActor

type V3PushActor interface {
	CreateAndUploadBitsPackageByApplicationNameAndSpace(appName string, spaceGUID string, bitsPath string) (v3action.Package, v3action.Warnings, error)
	CreateDockerPackageByApplicationNameAndSpace(appName string, spaceGUID string, dockerImageCredentials v3action.DockerImageCredentials) (v3action.Package, v3action.Warnings, error)
	CreateApplicationInSpace(app v3action.Application, spaceGUID string) (v3action.Application, v3action.Warnings, error)
	GetApplicationByNameAndSpace(appName string, spaceGUID string) (v3action.Application, v3action.Warnings, error)
	GetApplicationSummaryByNameAndSpace(appName string, spaceGUID string, withObfuscatedValues bool) (v3action.ApplicationSummary, v3action.Warnings, error)
	GetStreamingLogsForApplicationByNameAndSpace(appName string, spaceGUID string, client v3action.NOAAClient) (<-chan *v3action.LogMessage, <-chan error, v3action.Warnings, error)
	PollStart(appGUID string, warnings chan<- v3action.Warnings) error
	SetApplicationDropletByApplicationNameAndSpace(appName string, spaceGUID string, dropletGUID string) (v3action.Warnings, error)
	StagePackage(packageGUID string, appName string) (<-chan v3action.Droplet, <-chan v3action.Warnings, <-chan error)
	StartApplication(appGUID string) (v3action.Warnings, error)
	StopApplication(appGUID string) (v3action.Warnings, error)
	UpdateApplication(app v3action.Application) (v3action.Application, v3action.Warnings, error)
}

type V3PushCommand

type V3PushCommand struct {
	RequiredArgs   flag.AppName                `positional-args:"yes"`
	Buildpacks     []string                    `` /* 317-byte string literal not displayed */
	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"`
	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"`
	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
	NOAAClient          v3action.NOAAClient
	SharedActor         command.SharedActor
	AppSummaryDisplayer shared.AppSummaryDisplayer
	PackageDisplayer    shared.PackageDisplayer
	ProgressBar         ProgressBar

	Actor               V3PushActor
	OriginalV2PushActor OriginalV2PushActor
	// contains filtered or unexported fields
}

func (V3PushCommand) Execute

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

func (*V3PushCommand) Setup

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

type V3RestartActor

type V3RestartActor interface {
	GetApplicationByNameAndSpace(appName string, spaceGUID string) (v3action.Application, v3action.Warnings, error)
	StartApplication(appGUID string) (v3action.Warnings, error)
	StopApplication(appGUID string) (v3action.Warnings, error)
}

type V3RestartAppInstanceActor

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

type V3RestartAppInstanceCommand

type V3RestartAppInstanceCommand 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       V3RestartAppInstanceActor
	// contains filtered or unexported fields
}

func (V3RestartAppInstanceCommand) Execute

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

func (*V3RestartAppInstanceCommand) Setup

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

type V3RestartCommand

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

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

func (V3RestartCommand) Execute

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

func (*V3RestartCommand) Setup

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

type V3SSHActor

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

type V3SSHCommand

type V3SSHCommand 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       V3SSHActor
	SSHActor    SSHActor
	SSHClient   *clissh.SecureShell
	// contains filtered or unexported fields
}

func (V3SSHCommand) EvaluateTTYOption

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

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

func (V3SSHCommand) Execute

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

func (*V3SSHCommand) Setup

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

type V3ScaleActor

type V3ScaleActor interface {
	shared.V3AppSummaryActor

	GetApplicationByNameAndSpace(appName string, spaceGUID string) (v3action.Application, v3action.Warnings, error)
	ScaleProcessByApplication(appGUID string, process v3action.Process) (v3action.Warnings, error)
	StopApplication(appGUID string) (v3action.Warnings, error)
	StartApplication(appGUID string) (v3action.Warnings, error)
	PollStart(appGUID string, warnings chan<- v3action.Warnings) error
}

type V3ScaleCommand

type V3ScaleCommand 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               V3ScaleActor
	SharedActor         command.SharedActor
	AppSummaryDisplayer shared.AppSummaryDisplayer
	// contains filtered or unexported fields
}

func (V3ScaleCommand) Execute

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

func (*V3ScaleCommand) Setup

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

type V3SetDropletActor

type V3SetDropletActor interface {
	SetApplicationDropletByApplicationNameAndSpace(appName string, spaceGUID string, dropletGUID string) (v3action.Warnings, error)
}

type V3SetDropletCommand

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

	DropletGUID string `short:"d" long:"droplet-guid" description:"The guid of the droplet to use" required:"true"`

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

func (V3SetDropletCommand) Execute

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

func (*V3SetDropletCommand) Setup

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

type V3SetEnvActor

type V3SetEnvActor interface {
	SetEnvironmentVariableByApplicationNameAndSpace(appName string, spaceGUID string, envPair v3action.EnvironmentVariablePair) (v3action.Warnings, error)
}

type V3SetEnvCommand

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

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

func (V3SetEnvCommand) Execute

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

func (*V3SetEnvCommand) Setup

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

type V3SetHealthCheckActor

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

type V3SetHealthCheckCommand

type V3SetHealthCheckCommand 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       V3SetHealthCheckActor
	// contains filtered or unexported fields
}

func (V3SetHealthCheckCommand) Execute

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

func (*V3SetHealthCheckCommand) Setup

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

type V3StageActor

type V3StageActor interface {
	GetStreamingLogsForApplicationByNameAndSpace(appName string, spaceGUID string, client v3action.NOAAClient) (<-chan *v3action.LogMessage, <-chan error, v3action.Warnings, error)
	StagePackage(packageGUID string, appName string) (<-chan v3action.Droplet, <-chan v3action.Warnings, <-chan error)
}

type V3StageCommand

type V3StageCommand struct {
	RequiredArgs flag.AppName `positional-args:"yes"`
	PackageGUID  string       `long:"package-guid" description:"The guid of the package to stage" required:"true"`

	UI          command.UI
	Config      command.Config
	NOAAClient  v3action.NOAAClient
	SharedActor command.SharedActor
	Actor       V3StageActor
	// contains filtered or unexported fields
}

func (V3StageCommand) Execute

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

func (*V3StageCommand) Setup

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

type V3StartActor

type V3StartActor interface {
	GetApplicationByNameAndSpace(appName string, spaceGUID string) (v3action.Application, v3action.Warnings, error)
	StartApplication(appGUID string) (v3action.Warnings, error)
}

type V3StartCommand

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

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

func (V3StartCommand) Execute

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

func (*V3StartCommand) Setup

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

type V3StopActor

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

type V3StopCommand

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

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

func (V3StopCommand) Execute

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

func (*V3StopCommand) Setup

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

type V3UnsetEnvActor

type V3UnsetEnvActor interface {
	UnsetEnvironmentVariableByApplicationNameAndSpace(appName string, spaceGUID string, EnvironmentVariableName string) (v3action.Warnings, error)
}

type V3UnsetEnvCommand

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

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

func (V3UnsetEnvCommand) Execute

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

func (*V3UnsetEnvCommand) Setup

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

type V3ZeroDowntimePushCommand

type V3ZeroDowntimePushCommand struct {
	RequiredArgs      flag.AppName                `positional-args:"yes"`
	Buildpacks        []string                    `` /* 317-byte string literal not displayed */
	StackName         string                      `short:"s" description:"Stack to use (a stack is a pre-built file system, including an operating system, that can run apps)"`
	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"`
	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"`
	WaitUntilDeployed bool                        `long:"wait-for-deploy-complete" description:"Wait for the entire deployment to complete"`
	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
	NOAAClient          v3action.NOAAClient
	SharedActor         command.SharedActor
	AppSummaryDisplayer shared.AppSummaryDisplayer
	PackageDisplayer    shared.PackageDisplayer
	ProgressBar         ProgressBar

	ZdtActor            V3ZeroDowntimeVersionActor
	V3PushActor         V3PushActor
	OriginalV2PushActor OriginalV2PushActor
	// contains filtered or unexported fields
}

func (V3ZeroDowntimePushCommand) Execute

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

func (*V3ZeroDowntimePushCommand) Setup

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

type V3ZeroDowntimeRestartActor

type V3ZeroDowntimeRestartActor interface {
	ZeroDowntimePollStart(appGUID string, warningsChannel chan<- v3action.Warnings) error
	CreateDeployment(appGUID, dropletGUID string) (string, v3action.Warnings, error)

	CloudControllerAPIVersion() string
	GetApplicationByNameAndSpace(appName string, spaceGUID string) (v3action.Application, v3action.Warnings, error)
	StartApplication(appGUID string) (v3action.Warnings, error)
}

type V3ZeroDowntimeRestartCommand

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

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

func (V3ZeroDowntimeRestartCommand) Execute

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

func (*V3ZeroDowntimeRestartCommand) Setup

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

type V3ZeroDowntimeVersionActor

type V3ZeroDowntimeVersionActor interface {
	ZeroDowntimePollStart(appGUID string, warningsChannel chan<- v3action.Warnings) error
	CreateDeployment(appGUID string, deploymentGUID string) (string, v3action.Warnings, error)
	PollDeployment(deploymentGUID string, warningsChannel chan<- v3action.Warnings) error
	CloudControllerAPIVersion() string
	CreateAndUploadBitsPackageByApplicationNameAndSpace(appName string, spaceGUID string, bitsPath string) (v3action.Package, v3action.Warnings, error)
	CreateDockerPackageByApplicationNameAndSpace(appName string, spaceGUID string, dockerImageCredentials v3action.DockerImageCredentials) (v3action.Package, v3action.Warnings, error)
	CreateApplicationInSpace(app v3action.Application, spaceGUID string) (v3action.Application, v3action.Warnings, error)
	GetApplicationByNameAndSpace(appName string, spaceGUID string) (v3action.Application, v3action.Warnings, error)
	GetCurrentDropletByApplication(appGUID string) (v3action.Droplet, v3action.Warnings, error)
	GetStreamingLogsForApplicationByNameAndSpace(appName string, spaceGUID string, client v3action.NOAAClient) (<-chan *v3action.LogMessage, <-chan error, v3action.Warnings, error)
	PollStart(appGUID string, warningsChannel chan<- v3action.Warnings) error
	SetApplicationDropletByApplicationNameAndSpace(appName string, spaceGUID string, dropletGUID string) (v3action.Warnings, error)
	StagePackage(packageGUID string, appName string) (<-chan v3action.Droplet, <-chan v3action.Warnings, <-chan error)
	RestartApplication(appGUID string) (v3action.Warnings, error)
	UpdateApplication(app v3action.Application) (v3action.Application, v3action.Warnings, error)
}

Source Files

Directories

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

Jump to

Keyboard shortcuts

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