v7

package
v0.0.0-...-e4dbece Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppActor

type AppActor interface {
	GetApplicationByNameAndSpace(name string, spaceGUID string) (v7action.Application, v7action.Warnings, error)
	GetApplicationSummaryByNameAndSpace(appName string, spaceGUID string, withObfuscatedValues bool, routeActor v7action.RouteActor) (v7action.ApplicationSummary, v7action.Warnings, error)
}

type AppCommand

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

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

func (AppCommand) Execute

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

func (*AppCommand) Setup

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

type BuildpacksActor

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

type BuildpacksCommand

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

func (BuildpacksCommand) Execute

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

func (*BuildpacksCommand) Setup

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

type CreateAppManifestActor

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

type CreateAppManifestCommand

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

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       CreateAppManifestActor
	PWD         string
	// contains filtered or unexported fields
}

func (CreateAppManifestCommand) Execute

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

func (*CreateAppManifestCommand) Setup

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

type CreateBuildpackActor

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

type CreateBuildpackCommand

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

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

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

func (CreateBuildpackCommand) Execute

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

func (*CreateBuildpackCommand) Setup

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

type CreatePrivateDomainActor

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

type CreatePrivateDomainCommand

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

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

func (CreatePrivateDomainCommand) Execute

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

func (*CreatePrivateDomainCommand) Setup

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

type CreateSharedDomainActor

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

type CreateSharedDomainCommand

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

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

func (CreateSharedDomainCommand) Execute

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

func (*CreateSharedDomainCommand) Setup

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

type DeleteActor

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

type DeleteBuildpackActor

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

type DeleteBuildpackCommand

type DeleteBuildpackCommand struct {
	RequiredArgs flag.BuildpackName `positional-args:"yes"`

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

func (DeleteBuildpackCommand) Execute

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

func (*DeleteBuildpackCommand) Setup

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

type DeleteCommand

type DeleteCommand struct {
	RequiredArgs       flag.AppName `positional-args:"yes"`
	Force              bool         `short:"f" description:"Force deletion without confirmation"`
	DeleteMappedRoutes bool         `short:"r" description:"Also delete any mapped routes [Not currently functional]"`

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

func (DeleteCommand) Execute

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

func (*DeleteCommand) Setup

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

type DeleteLabelActor

type DeleteLabelActor interface {
	UpdateApplicationLabelsByApplicationName(string, string, map[string]types.NullString) (v7action.Warnings, error)
}

type DeleteLabelCommand

type DeleteLabelCommand struct {
	RequiredArgs flag.DeleteLabelArgs `positional-args:"yes"`

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

func (DeleteLabelCommand) Execute

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

func (*DeleteLabelCommand) Setup

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

type DeletePrivateDomainActor

type DeletePrivateDomainActor interface {
	DeletePrivateDomain(domainName string) (v7action.Warnings, error)
	CheckSharedDomain(domainName string) (v7action.Warnings, error)
}

type DeletePrivateDomainCommand

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

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

func (DeletePrivateDomainCommand) Execute

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

func (*DeletePrivateDomainCommand) Setup

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

type DeleteSharedDomainActor

type DeleteSharedDomainActor interface {
	DeleteSharedDomain(domainName string) (v7action.Warnings, error)
}

type DeleteSharedDomainCommand

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

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

func (DeleteSharedDomainCommand) Execute

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

func (*DeleteSharedDomainCommand) Setup

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

type DisableFeatureFlagActor

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

type DisableFeatureFlagCommand

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

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

func (DisableFeatureFlagCommand) Execute

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

func (*DisableFeatureFlagCommand) Setup

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

type DomainsActor

type DomainsActor interface {
	GetOrganizationDomains(string) ([]v7action.Domain, v7action.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 EnableFeatureFlagActor

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

type EnableFeatureFlagCommand

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

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

func (EnableFeatureFlagCommand) Execute

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

func (*EnableFeatureFlagCommand) Setup

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

type EnvActor

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

type EnvCommand

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

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

func (EnvCommand) Execute

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

func (*EnvCommand) Setup

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

type FeatureFlagActor

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

type FeatureFlagCommand

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

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

func (FeatureFlagCommand) Execute

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

func (*FeatureFlagCommand) Setup

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

type FeatureFlagsActor

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

type FeatureFlagsCommand

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

func (FeatureFlagsCommand) Execute

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

func (*FeatureFlagsCommand) Setup

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

type GetHealthCheckActor

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

type GetHealthCheckCommand

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

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

func (GetHealthCheckCommand) DisplayProcessTable

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

func (GetHealthCheckCommand) Execute

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

func (*GetHealthCheckCommand) Setup

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

type LabelsCommand

type LabelsCommand struct {
	RequiredArgs flag.LabelsArgs `positional-args:"yes"`

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

func (LabelsCommand) Execute

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

func (*LabelsCommand) Setup

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

type ManifestLocator

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

type ManifestParser

type ManifestParser interface {
	v7pushaction.ManifestParser
	ContainsMultipleApps() bool
	InterpolateAndParse(pathToManifest string, pathsToVarsFiles []string, vars []template.VarKV) error
	ContainsPrivateDockerImages() bool
}

type ProgressBar

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

type PushActor

type PushActor interface {
	CreatePushPlans(appNameArg string, spaceGUID string, orgGUID string, parser v7pushaction.ManifestParser, overrides v7pushaction.FlagOverrides) ([]v7pushaction.PushPlan, error)
	// Prepare the space by creating needed apps/applying the manifest
	PrepareSpace(pushPlans []v7pushaction.PushPlan, parser v7pushaction.ManifestParser) (<-chan []v7pushaction.PushPlan, <-chan v7pushaction.Event, <-chan v7pushaction.Warnings, <-chan error)
	// UpdateApplicationSettings figures out the state of the world.
	UpdateApplicationSettings(pushPlans []v7pushaction.PushPlan) ([]v7pushaction.PushPlan, v7pushaction.Warnings, error)
	// Actualize applies any necessary changes.
	Actualize(plan v7pushaction.PushPlan, progressBar v7pushaction.ProgressBar) (<-chan v7pushaction.PushPlan, <-chan v7pushaction.Event, <-chan v7pushaction.Warnings, <-chan error)
}

type PushCommand

type PushCommand struct {
	OptionalArgs            flag.OptionalAppName          `positional-args:"yes"`
	HealthCheckTimeout      flag.PositiveInteger          `` /* 155-byte string literal not displayed */
	Buildpacks              []string                      `` /* 334-byte string literal not displayed */
	Disk                    flag.Megabytes                `long:"disk" short:"k" description:"Disk limit (e.g. 256M, 1024M, 1G)"`
	DockerImage             flag.DockerImage              `long:"docker-image" short:"o" description:"Docker image to use (e.g. user/docker-image-name)"`
	DockerUsername          string                        `long:"docker-username" description:"Repository username; used with password from environment variable CF_DOCKER_PASSWORD"`
	HealthCheckHTTPEndpoint string                        `` /* 129-byte string literal not displayed */
	HealthCheckType         flag.HealthCheckType          `` /* 157-byte string literal not displayed */
	Instances               flag.Instances                `long:"instances" short:"i" description:"Number of instances"`
	PathToManifest          flag.PathWithExistenceCheck   `long:"manifest" short:"f" description:"Path to manifest"`
	Memory                  flag.Megabytes                `long:"memory" short:"m" description:"Memory limit (e.g. 256M, 1024M, 1G)"`
	NoManifest              bool                          `long:"no-manifest" description:""`
	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   `long:"path" short:"p" description:"Path to app directory or to a zip file of the contents of the app directory"`
	Stack                   string                        `` /* 136-byte string literal not displayed */
	StartCommand            flag.Command                  `long:"start-command" short:"c" description:"Startup command, set to null to reset to default start command"`
	Vars                    []template.VarKV              `long:"var" description:"Variable key value pair for variable substitution, (e.g., name=app1); can specify multiple times"`
	PathsToVarsFiles        []flag.PathWithExistenceCheck `long:"vars-file" description:"Path to a variable substitution file for manifest; can specify multiple times"`

	Config          command.Config
	UI              command.UI
	NOAAClient      v3action.NOAAClient
	Actor           PushActor
	VersionActor    V7ActorForPush
	SharedActor     command.SharedActor
	RouteActor      v7action.RouteActor
	ProgressBar     ProgressBar
	PWD             string
	ManifestLocator ManifestLocator
	ManifestParser  ManifestParser
	// contains filtered or unexported fields
}

func (PushCommand) Execute

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

func (PushCommand) GetDockerPassword

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

func (PushCommand) GetFlagOverrides

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

func (PushCommand) ReadManifest

func (cmd PushCommand) ReadManifest() error

func (*PushCommand) Setup

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

func (PushCommand) ValidateAllowedFlagsForMultipleApps

func (cmd PushCommand) ValidateAllowedFlagsForMultipleApps(containsMultipleApps bool) error

func (PushCommand) ValidateFlags

func (cmd PushCommand) ValidateFlags() error

type ResetSpaceIsolationSegmentActor

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

type ResetSpaceIsolationSegmentActorV2

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

type ResetSpaceIsolationSegmentCommand

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

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

func (ResetSpaceIsolationSegmentCommand) Execute

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

func (*ResetSpaceIsolationSegmentCommand) Setup

type SSHActor

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

type SSHCommand

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

	UI          command.UI
	Config      command.Config
	SharedActor command.SharedActor
	Actor       SSHActor
	SSHActor    SharedSSHActor
	SSHClient   *clissh.SecureShell
	// contains filtered or unexported fields
}

func (SSHCommand) EvaluateTTYOption

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

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

func (SSHCommand) Execute

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

func (*SSHCommand) Setup

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

type ScaleActor

type ScaleActor interface {
	AppActor

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

type ScaleCommand

type ScaleCommand struct {
	RequiredArgs flag.AppName   `positional-args:"yes"`
	Force        bool           `short:"f" description:"Force restart of app without prompt"`
	Instances    flag.Instances `short:"i" required:"false" description:"Number of instances"`
	DiskLimit    flag.Megabytes `short:"k" required:"false" description:"Disk limit (e.g. 256M, 1024M, 1G)"`
	MemoryLimit  flag.Megabytes `short:"m" required:"false" description:"Memory limit (e.g. 256M, 1024M, 1G)"`
	ProcessType  string         `long:"process" default:"web" description:"App process to scale"`

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

func (ScaleCommand) Execute

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

func (*ScaleCommand) Setup

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

type SetEnvActor

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

type SetEnvCommand

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

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

func (SetEnvCommand) Execute

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

func (*SetEnvCommand) Setup

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

type SetHealthCheckActor

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

type SetHealthCheckCommand

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

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

func (SetHealthCheckCommand) Execute

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

func (*SetHealthCheckCommand) Setup

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

type SetLabelActor

type SetLabelActor interface {
	UpdateApplicationLabelsByApplicationName(string, string, map[string]types.NullString) (v7action.Warnings, error)
	UpdateOrganizationLabelsByOrganizationName(string, map[string]types.NullString) (v7action.Warnings, error)
}

type SetLabelCommand

type SetLabelCommand struct {
	RequiredArgs flag.SetLabelArgs `positional-args:"yes"`

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

func (SetLabelCommand) Execute

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

func (*SetLabelCommand) Setup

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

type SharePrivateDomainActor

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

type SharePrivateDomainCommand

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

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

func (SharePrivateDomainCommand) Execute

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

func (*SharePrivateDomainCommand) Setup

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

type SharedSSHActor

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

type StackActor

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

type StackCommand

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

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

func (*StackCommand) Execute

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

func (*StackCommand) Setup

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

type StacksActor

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

type StacksCommand

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

func (StacksCommand) Execute

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

func (*StacksCommand) Setup

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

type TargetActor

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

type TargetCommand

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

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

func (*TargetCommand) Execute

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

func (*TargetCommand) Setup

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

type UnsetEnvActor

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

type UnsetEnvCommand

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

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

func (UnsetEnvCommand) Execute

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

func (*UnsetEnvCommand) Setup

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

type UnsharePrivateDomainActor

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

type UnsharePrivateDomainCommand

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

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

func (UnsharePrivateDomainCommand) Execute

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

func (*UnsharePrivateDomainCommand) Setup

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

type UpdateBuildpackActor

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

type UpdateBuildpackCommand

type UpdateBuildpackCommand struct {
	RequiredArgs flag.BuildpackName `positional-args:"Yes"`

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

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

func (UpdateBuildpackCommand) Execute

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

func (*UpdateBuildpackCommand) Setup

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

type V7ActorForPush

type V7ActorForPush interface {
	AppActor
	GetStreamingLogsForApplicationByNameAndSpace(appName string, spaceGUID string, client v7action.NOAAClient) (<-chan *v7action.LogMessage, <-chan error, v7action.Warnings, error)
	RestartApplication(appGUID string) (v7action.Warnings, error)
}

Directories

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

Jump to

Keyboard shortcuts

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