Documentation ¶
Overview ¶
Package v7 should not be imported by external consumers. It was not designed for external use.
Index ¶
- type AppActor
- type AppCommand
- type ApplyManifestActor
- type ApplyManifestCommand
- type AppsActor
- type AppsCommand
- type BuildpacksActor
- type BuildpacksCommand
- type CancelDeploymentActor
- type CancelDeploymentCommand
- type CheckRouteActor
- type CheckRouteCommand
- type CreateAppActor
- type CreateAppCommand
- type CreateAppManifestActor
- type CreateAppManifestCommand
- type CreateBuildpackActor
- type CreateBuildpackCommand
- type CreateOrgActor
- type CreateOrgCommand
- type CreatePackageActor
- type CreatePackageCommand
- type CreatePrivateDomainActor
- type CreatePrivateDomainCommand
- type CreateRouteActor
- type CreateRouteCommand
- type CreateServiceBrokerActor
- type CreateServiceBrokerCommand
- type CreateSharedDomainActor
- type CreateSharedDomainCommand
- type CreateSpaceActor
- type CreateSpaceCommand
- type DeleteActor
- type DeleteBuildpackActor
- type DeleteBuildpackCommand
- type DeleteCommand
- type DeleteOrgCommand
- type DeleteOrganizationActor
- type DeleteOrphanedRoutesActor
- type DeleteOrphanedRoutesCommand
- type DeletePrivateDomainActor
- type DeletePrivateDomainCommand
- type DeleteRouteActor
- type DeleteRouteCommand
- type DeleteSharedDomainActor
- type DeleteSharedDomainCommand
- type DeleteSpaceActor
- type DeleteSpaceCommand
- type DisableFeatureFlagActor
- type DisableFeatureFlagCommand
- type DomainsActor
- type DomainsCommand
- type DropletsActor
- type DropletsCommand
- type EnableFeatureFlagActor
- type EnableFeatureFlagCommand
- type EnvActor
- type EnvCommand
- type FeatureFlagActor
- type FeatureFlagCommand
- type FeatureFlagsActor
- type FeatureFlagsCommand
- type GetHealthCheckActor
- type GetHealthCheckCommand
- type LabelsActor
- type LabelsCommand
- type ManifestLocator
- type ManifestParser
- type MapRouteActor
- type MapRouteCommand
- type OrgActor
- type OrgCommand
- type OrgsActor
- type OrgsCommand
- type PackagesActor
- type PackagesCommand
- type ProgressBar
- type PushActor
- type PushCommand
- func (cmd PushCommand) Execute(args []string) error
- func (cmd PushCommand) GetDockerPassword(dockerUsername string, containsPrivateDockerImages bool) (string, error)
- func (cmd PushCommand) GetFlagOverrides() (v7pushaction.FlagOverrides, error)
- func (cmd PushCommand) ReadManifest() error
- func (cmd *PushCommand) Setup(config command.Config, ui command.UI) error
- func (cmd PushCommand) ValidateAllowedFlagsForMultipleApps(containsMultipleApps bool) error
- func (cmd PushCommand) ValidateFlags() error
- type RenameOrgCommand
- type RenameOrganizationActor
- type RenameSpaceActor
- type RenameSpaceCommand
- type ResetSpaceIsolationSegmentActor
- type ResetSpaceIsolationSegmentActorV2
- type ResetSpaceIsolationSegmentCommand
- type ResourceType
- type RestartActor
- type RestartAppInstanceActor
- type RestartAppInstanceCommand
- type RestartCommand
- type RoutesActor
- type RoutesCommand
- type SSHActor
- type SSHCommand
- type ScaleActor
- type ScaleCommand
- type ServiceBrokersActor
- type ServiceBrokersCommand
- type SetDropletActor
- type SetDropletCommand
- type SetEnvActor
- type SetEnvCommand
- type SetHealthCheckActor
- type SetHealthCheckCommand
- type SetLabelActor
- type SetLabelCommand
- type SharePrivateDomainActor
- type SharePrivateDomainCommand
- type SharedSSHActor
- type SpaceActor
- type SpaceCommand
- type SpacesActor
- type SpacesCommand
- type StackActor
- type StackCommand
- type StacksActor
- type StacksCommand
- type StageActor
- type StageCommand
- type StartActor
- type StartCommand
- type StopActor
- type StopCommand
- type TargetActor
- type TargetCommand
- type UnmapRouteActor
- type UnmapRouteCommand
- type UnsetEnvActor
- type UnsetEnvCommand
- type UnsetLabelActor
- type UnsetLabelCommand
- type UnsharePrivateDomainActor
- type UnsharePrivateDomainCommand
- type UpdateBuildpackActor
- type UpdateBuildpackCommand
- type V7ActorForPush
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 Actor AppActor // contains filtered or unexported fields }
func (AppCommand) Execute ¶
func (cmd AppCommand) Execute(args []string) error
type ApplyManifestActor ¶
type ApplyManifestCommand ¶
type ApplyManifestCommand struct { PathToManifest flag.ManifestPathWithExistenceCheck `short:"f" description:"Path to app manifest"` UI command.UI Config command.Config ManifestLocator ManifestLocator Actor ApplyManifestActor Parser ManifestParser CWD string // contains filtered or unexported fields }
func (ApplyManifestCommand) Execute ¶
func (cmd ApplyManifestCommand) Execute(args []string) error
type AppsCommand ¶
type AppsCommand struct { UI command.UI Config command.Config Actor AppsActor // contains filtered or unexported fields }
func (AppsCommand) Execute ¶
func (cmd AppsCommand) Execute(args []string) error
type BuildpacksActor ¶
type BuildpacksCommand ¶
type BuildpacksCommand struct { UI command.UI Config command.Config Actor BuildpacksActor // contains filtered or unexported fields }
func (BuildpacksCommand) Execute ¶
func (cmd BuildpacksCommand) Execute(args []string) error
type CancelDeploymentActor ¶
type CancelDeploymentActor interface { GetApplicationByNameAndSpace(appName string, spaceGUID string) (v7action.Application, v7action.Warnings, error) GetLatestActiveDeploymentForApp(appGUID string) (v7action.Deployment, v7action.Warnings, error) CancelDeployment(deploymentGUID string) (v7action.Warnings, error) }
type CancelDeploymentCommand ¶
type CancelDeploymentCommand struct { RequiredArgs flag.AppName `positional-args:"yes"` UI command.UI Config command.Config Actor CancelDeploymentActor // contains filtered or unexported fields }
func (*CancelDeploymentCommand) Execute ¶
func (cmd *CancelDeploymentCommand) Execute(args []string) error
type CheckRouteActor ¶
type CheckRouteCommand ¶
type CheckRouteCommand struct { RequiredArgs flag.Domain `positional-args:"yes"` Hostname string `long:"hostname" short:"n" description:"Hostname used to identify the HTTP route"` Path flag.V7RoutePath `long:"path" description:"Path for the route"` UI command.UI Config command.Config Actor CheckRouteActor // contains filtered or unexported fields }
func (CheckRouteCommand) Execute ¶
func (cmd CheckRouteCommand) Execute(args []string) error
type CreateAppActor ¶
type CreateAppActor interface {
CreateApplicationInSpace(app v7action.Application, spaceGUID string) (v7action.Application, v7action.Warnings, error)
}
type CreateAppCommand ¶
type CreateAppCommand struct { RequiredArgs flag.AppName `positional-args:"yes"` AppType flag.AppType `` /* 128-byte string literal not displayed */ UI command.UI Config command.Config Actor CreateAppActor // contains filtered or unexported fields }
func (CreateAppCommand) Execute ¶
func (cmd CreateAppCommand) Execute(args []string) error
type CreateAppManifestActor ¶
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 Actor CreateAppManifestActor PWD string // contains filtered or unexported fields }
func (CreateAppManifestCommand) Execute ¶
func (cmd CreateAppManifestCommand) Execute(args []string) 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 Actor CreateBuildpackActor // contains filtered or unexported fields }
func (CreateBuildpackCommand) Execute ¶
func (cmd CreateBuildpackCommand) Execute(args []string) error
type CreateOrgActor ¶
type CreateOrgCommand ¶
type CreateOrgCommand struct { RequiredArgs flag.Organization `positional-args:"yes"` UI command.UI Config command.Config Actor CreateOrgActor // contains filtered or unexported fields }
func (CreateOrgCommand) Execute ¶
func (cmd CreateOrgCommand) Execute(args []string) error
type CreatePackageActor ¶
type CreatePackageActor interface { CreateDockerPackageByApplicationNameAndSpace(appName string, spaceGUID string, dockerImageCredentials v7action.DockerImageCredentials) (v7action.Package, v7action.Warnings, error) CreateAndUploadBitsPackageByApplicationNameAndSpace(appName string, spaceGUID string, bitsPath string) (v7action.Package, v7action.Warnings, error) }
type CreatePackageCommand ¶
type CreatePackageCommand struct { RequiredArgs flag.AppName `positional-args:"yes"` DockerImage flag.DockerImage `long:"docker-image" short:"o" description:"Docker image to use (e.g. user/docker-image-name)"` AppPath flag.PathWithExistenceCheck `short:"p" description:"Path to app directory or to a zip file of the contents of the app directory"` UI command.UI Config command.Config Actor CreatePackageActor PackageDisplayer shared.PackageDisplayer // contains filtered or unexported fields }
func (CreatePackageCommand) Execute ¶
func (cmd CreatePackageCommand) Execute(args []string) error
type CreatePrivateDomainCommand ¶
type CreatePrivateDomainCommand struct { RequiredArgs flag.OrgDomain `positional-args:"yes"` UI command.UI Config command.Config Actor CreatePrivateDomainActor // contains filtered or unexported fields }
func (CreatePrivateDomainCommand) Execute ¶
func (cmd CreatePrivateDomainCommand) Execute(args []string) error
type CreateRouteActor ¶
type CreateRouteCommand ¶
type CreateRouteCommand struct { RequiredArgs flag.Domain `positional-args:"yes"` Hostname string `long:"hostname" short:"n" description:"Hostname for the HTTP route (required for shared domains)"` Path flag.V7RoutePath `long:"path" description:"Path for the HTTP route"` UI command.UI Config command.Config Actor CreateRouteActor // contains filtered or unexported fields }
func (CreateRouteCommand) Execute ¶
func (cmd CreateRouteCommand) Execute(args []string) 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"` Config command.Config UI command.UI Actor CreateServiceBrokerActor // contains filtered or unexported fields }
func (*CreateServiceBrokerCommand) Execute ¶
func (cmd *CreateServiceBrokerCommand) Execute(args []string) error
type CreateSharedDomainActor ¶
type CreateSharedDomainActor interface {
}type CreateSharedDomainCommand ¶
type CreateSharedDomainCommand struct { // contains filtered or unexported fields }
func (CreateSharedDomainCommand) Execute ¶
func (cmd CreateSharedDomainCommand) Execute(args []string) error
type CreateSpaceActor ¶
type CreateSpaceCommand ¶
type CreateSpaceCommand struct { RequiredArgs flag.Space `positional-args:"yes"` Organization string `short:"o" description:"Organization"` UI command.UI Config command.Config Actor CreateSpaceActor // contains filtered or unexported fields }
func (CreateSpaceCommand) Execute ¶
func (cmd CreateSpaceCommand) Execute(args []string) error
type DeleteActor ¶
type DeleteBuildpackActor ¶
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 // contains filtered or unexported fields }
func (DeleteBuildpackCommand) Execute ¶
func (cmd DeleteBuildpackCommand) Execute(args []string) error
type DeleteCommand ¶
type DeleteCommand struct { RequiredArgs flag.AppName `positional-args:"yes"` Force bool `short:"f" description:"Force deletion without confirmation"` DeleteMappedRoutes bool `short:"r" description:"Also delete any mapped routes"` UI command.UI Config command.Config Actor DeleteActor // contains filtered or unexported fields }
func (DeleteCommand) Execute ¶
func (cmd DeleteCommand) Execute(args []string) error
type DeleteOrgCommand ¶
type DeleteOrgCommand struct { RequiredArgs flag.Organization `positional-args:"yes"` Force bool `short:"f" description:"Force deletion without confirmation"` Config command.Config UI command.UI Actor DeleteOrganizationActor // contains filtered or unexported fields }
func (*DeleteOrgCommand) Execute ¶
func (cmd *DeleteOrgCommand) Execute(args []string) error
type DeleteOrganizationActor ¶
type DeleteOrphanedRoutesCommand ¶
type DeleteOrphanedRoutesCommand struct { Force bool `short:"f" description:"Force deletion without confirmation"` UI command.UI Config command.Config Actor DeleteOrphanedRoutesActor // contains filtered or unexported fields }
func (DeleteOrphanedRoutesCommand) Execute ¶
func (cmd DeleteOrphanedRoutesCommand) Execute(args []string) 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 Actor DeletePrivateDomainActor // contains filtered or unexported fields }
func (DeletePrivateDomainCommand) Execute ¶
func (cmd DeletePrivateDomainCommand) Execute(args []string) error
type DeleteRouteActor ¶
type DeleteRouteCommand ¶
type DeleteRouteCommand struct { RequiredArgs flag.Domain `positional-args:"yes"` Force bool `short:"f" description:"Force deletion without confirmation"` Hostname string `long:"hostname" short:"n" description:"Hostname used to identify the HTTP route (required for shared domains)"` Path flag.V7RoutePath `long:"path" description:"Path used to identify the HTTP route"` UI command.UI Config command.Config Actor DeleteRouteActor // contains filtered or unexported fields }
func (DeleteRouteCommand) Execute ¶
func (cmd DeleteRouteCommand) Execute(args []string) error
type DeleteSharedDomainActor ¶
type DeleteSharedDomainActor interface {}
type DeleteSharedDomainCommand ¶
type DeleteSharedDomainCommand struct { // contains filtered or unexported fields }
func (DeleteSharedDomainCommand) Execute ¶
func (cmd DeleteSharedDomainCommand) Execute(args []string) error
type DeleteSpaceActor ¶
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 Actor DeleteSpaceActor // contains filtered or unexported fields }
func (DeleteSpaceCommand) Execute ¶
func (cmd DeleteSpaceCommand) Execute(args []string) error
type DisableFeatureFlagActor ¶
type DisableFeatureFlagCommand ¶
type DisableFeatureFlagCommand struct { RequiredArgs flag.Feature `positional-args:"yes"` UI command.UI Config command.Config Actor DisableFeatureFlagActor // contains filtered or unexported fields }
func (DisableFeatureFlagCommand) Execute ¶
func (cmd DisableFeatureFlagCommand) Execute(args []string) error
type DomainsActor ¶
type DomainsCommand ¶
type DomainsCommand struct { UI command.UI Config command.Config Actor DomainsActor // contains filtered or unexported fields }
func (DomainsCommand) Execute ¶
func (cmd DomainsCommand) Execute(args []string) error
type DropletsActor ¶
type DropletsCommand ¶
type DropletsCommand struct { RequiredArgs flag.AppName `positional-args:"yes"` UI command.UI Config command.Config Actor DropletsActor // contains filtered or unexported fields }
func (DropletsCommand) Execute ¶
func (cmd DropletsCommand) Execute(args []string) error
type EnableFeatureFlagActor ¶
type EnableFeatureFlagCommand ¶
type EnableFeatureFlagCommand struct { RequiredArgs flag.Feature `positional-args:"yes"` UI command.UI Config command.Config Actor EnableFeatureFlagActor // contains filtered or unexported fields }
func (EnableFeatureFlagCommand) Execute ¶
func (cmd EnableFeatureFlagCommand) Execute(args []string) error
type EnvCommand ¶
type EnvCommand struct { RequiredArgs flag.EnvironmentArgs `positional-args:"yes"` UI command.UI Config command.Config Actor EnvActor // contains filtered or unexported fields }
func (EnvCommand) Execute ¶
func (cmd EnvCommand) Execute(_ []string) error
type FeatureFlagActor ¶
type FeatureFlagCommand ¶
type FeatureFlagCommand struct { RequiredArgs flag.Feature `positional-args:"yes"` UI command.UI Config command.Config Actor FeatureFlagActor // contains filtered or unexported fields }
func (FeatureFlagCommand) Execute ¶
func (cmd FeatureFlagCommand) Execute(args []string) error
type FeatureFlagsActor ¶
type FeatureFlagsActor interface {
GetFeatureFlags() ([]v7action.FeatureFlag, v7action.Warnings, error)
}
type FeatureFlagsCommand ¶
type FeatureFlagsCommand struct { UI command.UI Config command.Config Actor FeatureFlagsActor // contains filtered or unexported fields }
func (FeatureFlagsCommand) Execute ¶
func (cmd FeatureFlagsCommand) Execute(args []string) error
type GetHealthCheckActor ¶
type GetHealthCheckCommand ¶
type GetHealthCheckCommand struct { RequiredArgs flag.AppName `positional-args:"yes"` UI command.UI Config command.Config 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
type LabelsActor ¶
type LabelsActor interface { GetApplicationLabels(appName string, spaceGUID string) (map[string]types.NullString, v7action.Warnings, error) GetOrganizationLabels(orgName string) (map[string]types.NullString, v7action.Warnings, error) GetSpaceLabels(spaceName string, orgGUID string) (map[string]types.NullString, v7action.Warnings, error) GetBuildpackLabels(buildpackName string, buildpackStack string) (map[string]types.NullString, v7action.Warnings, error) }
type LabelsCommand ¶
type LabelsCommand struct { RequiredArgs flag.LabelsArgs `positional-args:"yes"` BuildpackStack string `long:"stack" short:"s" description:"required when more than one buildpack has the same name"` UI command.UI Config command.Config Actor LabelsActor // contains filtered or unexported fields }
func (LabelsCommand) Execute ¶
func (cmd LabelsCommand) Execute(args []string) error
type ManifestLocator ¶
type ManifestParser ¶
type ManifestParser interface { v7pushaction.ManifestParser ContainsMultipleApps() bool InterpolateAndParse(pathToManifest string, pathsToVarsFiles []string, vars []template.VarKV, appName string) error ContainsPrivateDockerImages() bool }
type MapRouteActor ¶
type MapRouteActor interface { GetApplicationByNameAndSpace(appName string, spaceGUID string) (v7action.Application, v7action.Warnings, error) GetRouteByAttributes(domainName string, domainGUID string, hostname string, path string) (v7action.Route, v7action.Warnings, error) GetDomainByName(domainName string) (v7action.Domain, v7action.Warnings, error) CreateRoute(spaceGUID, domainName, hostname, path string) (v7action.Route, v7action.Warnings, error) GetRouteDestinationByAppGUID(routeGUID string, appGUID string) (v7action.RouteDestination, v7action.Warnings, error) MapRoute(routeGUID string, appGUID string) (v7action.Warnings, error) }
type MapRouteCommand ¶
type MapRouteCommand struct { RequiredArgs flag.AppDomain `positional-args:"yes"` Hostname string `long:"hostname" short:"n" description:"Hostname for the HTTP route (required for shared domains)"` Path flag.V7RoutePath `long:"path" description:"Path for the HTTP route"` UI command.UI Config command.Config Actor MapRouteActor // contains filtered or unexported fields }
func (MapRouteCommand) Execute ¶
func (cmd MapRouteCommand) Execute(args []string) error
type OrgActor ¶
type OrgActor interface { GetOrganizationByName(orgName string) (v7action.Organization, v7action.Warnings, error) GetOrganizationSummaryByName(orgName string) (v7action.OrganizationSummary, v7action.Warnings, error) GetIsolationSegmentsByOrganization(orgName string) ([]v7action.IsolationSegment, v7action.Warnings, error) }
type OrgCommand ¶
type OrgCommand struct { RequiredArgs flag.Organization `positional-args:"yes"` GUID bool `long:"guid" description:"Retrieve and display the given org's guid. All other output for the org is suppressed."` UI command.UI Config command.Config Actor OrgActor // contains filtered or unexported fields }
func (OrgCommand) Execute ¶
func (cmd OrgCommand) Execute(args []string) error
type OrgsActor ¶
type OrgsActor interface {
GetOrganizations() ([]v7action.Organization, v7action.Warnings, error)
}
type OrgsCommand ¶
type OrgsCommand struct { UI command.UI Config command.Config Actor OrgsActor // contains filtered or unexported fields }
func (OrgsCommand) Execute ¶
func (cmd OrgsCommand) Execute(args []string) error
type PackagesActor ¶
type PackagesCommand ¶
type PackagesCommand struct { RequiredArgs flag.AppName `positional-args:"yes"` UI command.UI Config command.Config Actor PackagesActor // contains filtered or unexported fields }
func (PackagesCommand) Execute ¶
func (cmd PackagesCommand) Execute(args []string) error
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) ([]string, <-chan *v7pushaction.PushEvent) // 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.PushEvent }
type PushCommand ¶
type PushCommand struct { OptionalArgs flag.OptionalAppName `positional-args:"yes"` HealthCheckTimeout flag.PositiveInteger `` /* 155-byte string literal not displayed */ Buildpacks []string `` /* 334-byte string literal not displayed */ Disk 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"` DropletPath flag.PathWithExistenceCheck `long:"droplet" description:"Path to a tgz file with a pre-staged app"` HealthCheckHTTPEndpoint string `` /* 129-byte string literal not displayed */ HealthCheckType flag.HealthCheckType `` /* 157-byte string literal not displayed */ Instances flag.Instances `long:"instances" short:"i" description:"Number of instances"` PathToManifest flag.ManifestPathWithExistenceCheck `long:"manifest" short:"f" description:"Path to manifest"` Memory 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"` NoWait bool `` /* 143-byte string literal not displayed */ AppPath flag.PathWithExistenceCheck `long:"path" short:"p" description:"Path to app directory or to a zip file of the contents of the app directory"` RandomRoute bool `long:"random-route" description:"Create a random route for this app"` Stack string `` /* 136-byte string literal not displayed */ StartCommand flag.Command `long:"start-command" short:"c" description:"Startup command, set to null to reset to default start command"` Strategy flag.DeploymentStrategy `long:"strategy" description:"Deployment strategy, either rolling or null."` 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 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) ValidateAllowedFlagsForMultipleApps ¶
func (cmd PushCommand) ValidateAllowedFlagsForMultipleApps(containsMultipleApps bool) error
func (PushCommand) ValidateFlags ¶
func (cmd PushCommand) ValidateFlags() error
type RenameOrgCommand ¶
type RenameOrgCommand struct { RequiredArgs flag.RenameOrgArgs `positional-args:"yes"` Config command.Config UI command.UI Actor RenameOrganizationActor // contains filtered or unexported fields }
func (RenameOrgCommand) Execute ¶
func (cmd RenameOrgCommand) Execute(args []string) error
type RenameOrganizationActor ¶
type RenameSpaceActor ¶
type RenameSpaceCommand ¶
type RenameSpaceCommand struct { RequiredArgs flag.RenameSpace `positional-args:"yes"` Config command.Config UI command.UI Actor RenameSpaceActor // contains filtered or unexported fields }
func (RenameSpaceCommand) Execute ¶
func (cmd RenameSpaceCommand) Execute(args []string) error
type ResetSpaceIsolationSegmentCommand ¶
type ResetSpaceIsolationSegmentCommand struct { RequiredArgs flag.ResetSpaceIsolationArgs `positional-args:"yes"` UI command.UI Config command.Config Actor ResetSpaceIsolationSegmentActor ActorV2 ResetSpaceIsolationSegmentActorV2 // contains filtered or unexported fields }
func (ResetSpaceIsolationSegmentCommand) Execute ¶
func (cmd ResetSpaceIsolationSegmentCommand) Execute(args []string) error
type ResourceType ¶
type ResourceType string
const ( App ResourceType = "app" Buildpack ResourceType = "buildpack" Org ResourceType = "org" Space ResourceType = "space" Stack ResourceType = "stack" )
type RestartActor ¶
type RestartActor interface { GetApplicationByNameAndSpace(appName string, spaceGUID string) (v7action.Application, v7action.Warnings, error) GetDetailedAppSummary(appName string, spaceGUID string, withObfuscatedValues bool) (v7action.DetailedApplicationSummary, v7action.Warnings, error) PollStart(appGUID string, noWait bool) (v7action.Warnings, error) StartApplication(appGUID string) (v7action.Warnings, error) StopApplication(appGUID string) (v7action.Warnings, error) }
type RestartAppInstanceActor ¶
type RestartAppInstanceCommand ¶
type RestartAppInstanceCommand struct { RequiredArgs flag.AppInstance `positional-args:"yes"` ProcessType string `long:"process" default:"web" description:"Process to restart"` UI command.UI Config command.Config Actor RestartAppInstanceActor // contains filtered or unexported fields }
func (RestartAppInstanceCommand) Execute ¶
func (cmd RestartAppInstanceCommand) Execute(args []string) error
type RestartCommand ¶
type RestartCommand struct { RequiredArgs flag.AppName `positional-args:"yes"` UI command.UI Config command.Config Actor RestartActor // contains filtered or unexported fields }
func (RestartCommand) Execute ¶
func (cmd RestartCommand) Execute(args []string) error
type RoutesActor ¶
type RoutesCommand ¶
type RoutesCommand struct { Orglevel bool `long:"orglevel" description:"List all the routes for all spaces of current organization"` UI command.UI Config command.Config Actor RoutesActor // contains filtered or unexported fields }
func (RoutesCommand) Execute ¶
func (cmd RoutesCommand) Execute(args []string) 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 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
type ScaleActor ¶
type ScaleActor interface { AppActor ScaleProcessByApplication(appGUID string, process v7action.Process) (v7action.Warnings, error) StopApplication(appGUID string) (v7action.Warnings, error) StartApplication(appGUID string) (v7action.Warnings, error) PollStart(appGUID string, noWait bool) (v7action.Warnings, error) }
type ScaleCommand ¶
type ScaleCommand struct { RequiredArgs flag.AppName `positional-args:"yes"` Force bool `short:"f" description:"Force restart of app without prompt"` Instances flag.Instances `short:"i" required:"false" description:"Number of instances"` DiskLimit flag.Megabytes `short:"k" required:"false" description:"Disk limit (e.g. 256M, 1024M, 1G)"` MemoryLimit flag.Megabytes `short:"m" required:"false" description:"Memory limit (e.g. 256M, 1024M, 1G)"` ProcessType string `long:"process" default:"web" description:"App process to scale"` UI command.UI Config command.Config Actor ScaleActor // contains filtered or unexported fields }
func (ScaleCommand) Execute ¶
func (cmd ScaleCommand) Execute(args []string) error
type ServiceBrokersActor ¶
type ServiceBrokersActor interface {
GetServiceBrokers() ([]v7action.ServiceBroker, v7action.Warnings, error)
}
type ServiceBrokersCommand ¶
type ServiceBrokersCommand struct { Config command.Config UI command.UI Actor ServiceBrokersActor // contains filtered or unexported fields }
func (*ServiceBrokersCommand) Execute ¶
func (cmd *ServiceBrokersCommand) Execute(args []string) error
type SetDropletActor ¶
type SetDropletCommand ¶
type SetDropletCommand 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 Actor SetDropletActor // contains filtered or unexported fields }
func (SetDropletCommand) Execute ¶
func (cmd SetDropletCommand) Execute(args []string) error
type SetEnvActor ¶
type SetEnvCommand ¶
type SetEnvCommand struct { RequiredArgs flag.SetEnvironmentArgs `positional-args:"yes"` UI command.UI Config command.Config Actor SetEnvActor // contains filtered or unexported fields }
func (SetEnvCommand) Execute ¶
func (cmd SetEnvCommand) Execute(args []string) 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 Actor SetHealthCheckActor // contains filtered or unexported fields }
func (SetHealthCheckCommand) Execute ¶
func (cmd SetHealthCheckCommand) Execute(args []string) error
type SetLabelActor ¶
type SetLabelActor interface { UpdateApplicationLabelsByApplicationName(string, string, map[string]types.NullString) (v7action.Warnings, error) UpdateBuildpackLabelsByBuildpackNameAndStack(string, string, map[string]types.NullString) (v7action.Warnings, error) UpdateOrganizationLabelsByOrganizationName(string, map[string]types.NullString) (v7action.Warnings, error) UpdateSpaceLabelsBySpaceName(string, string, map[string]types.NullString) (v7action.Warnings, error) UpdateStackLabelsByStackName(string, map[string]types.NullString) (v7action.Warnings, error) }
type SetLabelCommand ¶
type SetLabelCommand struct { RequiredArgs flag.SetLabelArgs `positional-args:"yes"` BuildpackStack string `long:"stack" short:"s" description:"Specify stack to disambiguate buildpacks with the same name"` UI command.UI Config command.Config Actor SetLabelActor // contains filtered or unexported fields }
func (SetLabelCommand) Execute ¶
func (cmd SetLabelCommand) Execute(args []string) error
type SharePrivateDomainActor ¶
type SharePrivateDomainActor interface {
}type SharePrivateDomainCommand ¶
type SharePrivateDomainCommand struct { // contains filtered or unexported fields }
func (SharePrivateDomainCommand) Execute ¶
func (cmd SharePrivateDomainCommand) Execute(args []string) error
type SharedSSHActor ¶
type SharedSSHActor interface {
}type SpaceActor ¶
type SpaceActor interface { GetSpaceByNameAndOrganization(spaceName string, orgGUID string) (v7action.Space, v7action.Warnings, error) GetSpaceSummaryByNameAndOrganization(spaceName string, orgGUID string) (v7action.SpaceSummary, v7action.Warnings, error) GetEffectiveIsolationSegmentBySpace(spaceGUID string, orgDefaultIsolationSegmentGUID string) (v7action.IsolationSegment, v7action.Warnings, error) }
type SpaceCommand ¶
type SpaceCommand struct { RequiredArgs flag.Space `positional-args:"yes"` GUID bool `long:"guid" description:"Retrieve and display the given space's guid. All other output for the space is suppressed."` SecurityGroupRules bool `long:"security-group-rules" description:"Retrieve the rules for all the security groups associated with the space."` UI command.UI Config command.Config Actor SpaceActor // contains filtered or unexported fields }
func (SpaceCommand) Execute ¶
func (cmd SpaceCommand) Execute(args []string) error
type SpacesActor ¶
type SpacesCommand ¶
type SpacesCommand struct { UI command.UI Config command.Config Actor SpacesActor // contains filtered or unexported fields }
func (SpacesCommand) Execute ¶
func (cmd SpacesCommand) Execute([]string) error
type StackActor ¶
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 Actor StackActor // contains filtered or unexported fields }
func (*StackCommand) Execute ¶
func (cmd *StackCommand) Execute(args []string) error
type StacksActor ¶
type StacksCommand ¶
type StacksCommand struct { UI command.UI Config command.Config Actor StacksActor // contains filtered or unexported fields }
func (StacksCommand) Execute ¶
func (cmd StacksCommand) Execute(args []string) error
type StageActor ¶
type StageActor interface { GetStreamingLogsForApplicationByNameAndSpace(appName string, spaceGUID string, client v7action.NOAAClient) (<-chan *v7action.LogMessage, <-chan error, v7action.Warnings, error) StagePackage(packageGUID, appName, spaceGUID string) (<-chan v7action.Droplet, <-chan v7action.Warnings, <-chan error) }
type StageCommand ¶
type StageCommand struct { RequiredArgs flag.AppName `positional-args:"yes"` PackageGUID string `long:"package-guid" description:"The guid of the package to stage" required:"true"` UI command.UI Config command.Config NOAAClient v7action.NOAAClient Actor StageActor // contains filtered or unexported fields }
func (StageCommand) Execute ¶
func (cmd StageCommand) Execute(args []string) error
type StartActor ¶
type StartActor interface { GetApplicationByNameAndSpace(appName string, spaceGUID string) (v7action.Application, v7action.Warnings, error) GetDetailedAppSummary(appName string, spaceGUID string, withObfuscatedValues bool) (v7action.DetailedApplicationSummary, v7action.Warnings, error) PollStart(appGUID string, noWait bool) (v7action.Warnings, error) StartApplication(appGUID string) (v7action.Warnings, error) }
type StartCommand ¶
type StartCommand struct { RequiredArgs flag.AppName `positional-args:"yes"` UI command.UI Config command.Config Actor StartActor // contains filtered or unexported fields }
func (StartCommand) Execute ¶
func (cmd StartCommand) Execute(args []string) error
type StopCommand ¶
type StopCommand struct { RequiredArgs flag.AppName `positional-args:"yes"` UI command.UI Config command.Config Actor StopActor // contains filtered or unexported fields }
func (StopCommand) Execute ¶
func (cmd StopCommand) Execute(args []string) 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 Actor TargetActor // contains filtered or unexported fields }
func (*TargetCommand) Execute ¶
func (cmd *TargetCommand) Execute(args []string) error
type UnmapRouteActor ¶
type UnmapRouteActor interface { GetApplicationByNameAndSpace(appName string, spaceGUID string) (v7action.Application, v7action.Warnings, error) GetRouteByAttributes(domainName string, domainGUID string, hostname string, path string) (v7action.Route, v7action.Warnings, error) GetDomainByName(domainName string) (v7action.Domain, v7action.Warnings, error) GetRouteDestinationByAppGUID(routeGUID string, appGUID string) (v7action.RouteDestination, v7action.Warnings, error) UnmapRoute(routeGUID string, destinationGUID string) (v7action.Warnings, error) }
type UnmapRouteCommand ¶
type UnmapRouteCommand struct { RequiredArgs flag.AppDomain `positional-args:"yes"` Hostname string `long:"hostname" short:"n" description:"Hostname used to identify the HTTP route"` Path flag.V7RoutePath `long:"path" description:"Path used to identify the HTTP route"` UI command.UI Config command.Config Actor UnmapRouteActor // contains filtered or unexported fields }
func (UnmapRouteCommand) Execute ¶
func (cmd UnmapRouteCommand) Execute(args []string) error
type UnsetEnvActor ¶
type UnsetEnvCommand ¶
type UnsetEnvCommand struct { RequiredArgs flag.UnsetEnvironmentArgs `positional-args:"yes"` UI command.UI Config command.Config Actor UnsetEnvActor // contains filtered or unexported fields }
func (UnsetEnvCommand) Execute ¶
func (cmd UnsetEnvCommand) Execute(args []string) error
type UnsetLabelActor ¶
type UnsetLabelActor interface { UpdateApplicationLabelsByApplicationName(string, string, map[string]types.NullString) (v7action.Warnings, error) UpdateOrganizationLabelsByOrganizationName(string, map[string]types.NullString) (v7action.Warnings, error) UpdateSpaceLabelsBySpaceName(string, string, map[string]types.NullString) (v7action.Warnings, error) }
type UnsetLabelCommand ¶
type UnsetLabelCommand struct { RequiredArgs flag.UnsetLabelArgs `positional-args:"yes"` UI command.UI Config command.Config Actor UnsetLabelActor // contains filtered or unexported fields }
func (UnsetLabelCommand) Execute ¶
func (cmd UnsetLabelCommand) Execute(args []string) error
type UnsharePrivateDomainActor ¶
type UnsharePrivateDomainActor interface {
}type UnsharePrivateDomainCommand ¶
type UnsharePrivateDomainCommand struct { // contains filtered or unexported fields }
func (UnsharePrivateDomainCommand) Execute ¶
func (cmd UnsharePrivateDomainCommand) Execute(args []string) 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 Actor UpdateBuildpackActor // contains filtered or unexported fields }
func (UpdateBuildpackCommand) Execute ¶
func (cmd UpdateBuildpackCommand) Execute(args []string) error
type V7ActorForPush ¶
Source Files ¶
- app_command.go
- apply_manifest_command.go
- apps_command.go
- buildpacks_command.go
- cancel_deployment_command.go
- check_route_command.go
- create_app_command.go
- create_app_manifest_command.go
- create_buildpack_command.go
- create_org_command.go
- create_package_command.go
- create_private_domain_command.go
- create_route_command.go
- create_service_broker_command.go
- create_shared_domain_command.go
- create_space_command.go
- delete_buildpack_command.go
- delete_command.go
- delete_org_command.go
- delete_orphaned_routes_command.go
- delete_private_domain_command.go
- delete_route_command.go
- delete_shared_domain_command.go
- delete_space_command.go
- disable_feature_flag_command.go
- docker_password_getter.go
- domains_command.go
- droplets_command.go
- enable_feature_flag_command.go
- env_command.go
- feature_flag_command.go
- feature_flags_command.go
- get_health_check_command.go
- godoc.go
- labels_command.go
- map_route_command.go
- org_command.go
- orgs_command.go
- packages_command.go
- push_command.go
- rename_org_command.go
- rename_space_command.go
- reset_space_isolation_segment_command.go
- restart_app_instance_command.go
- restart_command.go
- routes_command.go
- scale_command.go
- service_brokers_command.go
- set_droplet_command.go
- set_env_command.go
- set_health_check_command.go
- set_label_command.go
- share_private_domain_command.go
- space_command.go
- spaces_command.go
- ssh_command.go
- stack_command.go
- stacks_command.go
- stage_command.go
- start_command.go
- stop_command.go
- target_command.go
- unmap_route_command.go
- unset_env_command.go
- unset_label_command.go
- unshare_private_domain_command.go
- update_buildpack_command.go
Click to show internal directories.
Click to hide internal directories.