v3

package
v6.38.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2018 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package v3 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 AddNetworkPolicyActor

type AddNetworkPolicyActor interface {
	AddNetworkPolicy(spaceGUID string, srcAppName 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)"`

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

type AppActor interface {
	shared.V3AppSummaryActor
	CloudControllerAPIVersion() string
	GetApplicationByNameAndSpace(name string, spaceGUID string) (v3action.Application, v3action.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
	AppSummaryActor AppSummaryActor
	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 AppSummaryActor

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

type CreateIsolationSegmentActor

type CreateIsolationSegmentActor interface {
	CloudControllerAPIVersion() string
	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 DeleteIsolationSegmentActor

type DeleteIsolationSegmentActor interface {
	CloudControllerAPIVersion() string
	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 DisableOrgIsolationActor

type DisableOrgIsolationActor interface {
	CloudControllerAPIVersion() string
	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 EnableOrgIsolationActor

type EnableOrgIsolationActor interface {
	CloudControllerAPIVersion() string
	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 IsolationSegmentsActor

type IsolationSegmentsActor interface {
	CloudControllerAPIVersion() string
	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 ManifestParser

type ManifestParser interface {
	v3action.ManifestParser
	Parse(manifestPath string) error
}

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 OriginalV2PushActor

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

type OriginalV3PushActor

type OriginalV3PushActor interface {
	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)
	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.Application, v3action.Warnings, error)
	StopApplication(appGUID string) (v3action.Warnings, error)
	UpdateApplication(app v3action.Application) (v3action.Application, v3action.Warnings, error)
}

type ProgressBar

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

type RemoveNetworkPolicyActor

type RemoveNetworkPolicyActor interface {
	RemoveNetworkPolicy(spaceGUID string, srcAppName 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"`

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

func (RemoveNetworkPolicyCommand) Execute

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

func (*RemoveNetworkPolicyCommand) Setup

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

type ResetOrgDefaultIsolationSegmentActor

type ResetOrgDefaultIsolationSegmentActor interface {
	CloudControllerAPIVersion() string
	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 {
	CloudControllerAPIVersion() string
	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 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 SSHActor

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

type SetOrgDefaultIsolationSegmentActor

type SetOrgDefaultIsolationSegmentActor interface {
	CloudControllerAPIVersion() string
	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 SetSpaceIsolationSegmentActor

type SetSpaceIsolationSegmentActor interface {
	CloudControllerAPIVersion() string
	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 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 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 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 V3ApplyManifestActor

type V3ApplyManifestActor interface {
	CloudControllerAPIVersion() string
	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 {
	CloudControllerAPIVersion() string
	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 V3CreateAppActor

type V3CreateAppActor interface {
	CloudControllerAPIVersion() string
	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 {
	CloudControllerAPIVersion() string
	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 {
	CloudControllerAPIVersion() string
	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 {
	CloudControllerAPIVersion() string
	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 {
	CloudControllerAPIVersion() string
	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 {
	CloudControllerAPIVersion() string
	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 {
	CloudControllerAPIVersion() string
	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 {
	Actualize(state pushaction.PushState, progressBar pushaction.ProgressBar) (<-chan pushaction.PushState, <-chan pushaction.Event, <-chan pushaction.Warnings, <-chan error)
	Conceptualize(setting pushaction.CommandLineSettings, spaceGUID string) ([]pushaction.PushState, pushaction.Warnings, error)
}

type V3PushCommand

type V3PushCommand struct {
	RequiredArgs flag.AppName `positional-args:"yes"`
	Buildpacks   []string     `` /* 317-byte string literal not displayed */
	// Command flag.Command
	// Domain string
	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
	// PathToManifest flag.PathWithExistenceCheck
	// HealthCheckType flag.HealthCheckType
	// Hostname string
	// Instances flag.Instances
	// DiskQuota           flag.Megabytes
	// Memory              flag.Megabytes
	// NoHostname          bool
	// NoManifest          bool
	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
	Actor               V3PushActor
	VersionActor        V3PushVersionActor
	SharedActor         command.SharedActor
	AppSummaryDisplayer shared.AppSummaryDisplayer
	PackageDisplayer    shared.PackageDisplayer
	ProgressBar         ProgressBar

	OriginalActor       OriginalV3PushActor
	OriginalV2PushActor OriginalV2PushActor
	// contains filtered or unexported fields
}

func (V3PushCommand) Execute

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

func (V3PushCommand) GetCommandLineSettings

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

func (V3PushCommand) OriginalExecute

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

func (*V3PushCommand) OriginalSetup

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

func (*V3PushCommand) Setup

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

type V3PushVersionActor

type V3PushVersionActor interface {
	CloudControllerAPIVersion() string
	GetStreamingLogsForApplicationByNameAndSpace(appName string, spaceGUID string, client v3action.NOAAClient) (<-chan *v3action.LogMessage, <-chan error, v3action.Warnings, error)
	PollStart(appGUID string, warningsChannel chan<- v3action.Warnings) error
	RestartApplication(appGUID string) (v3action.Warnings, error)
}

type V3RestartActor

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

type V3RestartAppInstanceActor

type V3RestartAppInstanceActor interface {
	CloudControllerAPIVersion() string
	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 {
	CloudControllerAPIVersion() string
	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

	CloudControllerAPIVersion() string
	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.Application, 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 {
	CloudControllerAPIVersion() string
	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 {
	CloudControllerAPIVersion() string
	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 {
	CloudControllerAPIVersion() string
	SetApplicationProcessHealthCheckTypeByNameAndSpace(appName string, spaceGUID string, healthCheckType string, httpEndpoint string, processType string, invocationTimeout int) (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 {
	CloudControllerAPIVersion() string
	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 {
	CloudControllerAPIVersion() string
	GetApplicationByNameAndSpace(appName string, spaceGUID string) (v3action.Application, v3action.Warnings, error)
	StartApplication(appGUID string) (v3action.Application, 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 {
	CloudControllerAPIVersion() string
	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 {
	CloudControllerAPIVersion() string
	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

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