v6

package
v7.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BindRouteServiceCommand

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

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

func (BindRouteServiceCommand) Execute

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

func (BindRouteServiceCommand) Setup

type BindServiceActor

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

type BindServiceCommand

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

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

func (BindServiceCommand) Execute

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

func (*BindServiceCommand) Setup

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

type CreateServiceActor

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

type CreateServiceCommand

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

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

func (CreateServiceCommand) Execute

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

func (*CreateServiceCommand) Setup

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

type CreateServiceKeyActor

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

type CreateServiceKeyCommand

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

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

func (CreateServiceKeyCommand) Execute

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

func (*CreateServiceKeyCommand) Setup

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

type CreateUserProvidedServiceCommand

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

func (CreateUserProvidedServiceCommand) Execute

func (CreateUserProvidedServiceCommand) Setup

type CurlCommand

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

func (CurlCommand) Execute

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

func (CurlCommand) Setup

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

type DeleteServiceCommand

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

func (DeleteServiceCommand) Execute

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

func (DeleteServiceCommand) Setup

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

type DeleteServiceKeyCommand

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

func (DeleteServiceKeyCommand) Execute

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

func (DeleteServiceKeyCommand) Setup

type PurgeServiceInstanceCommand

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

func (PurgeServiceInstanceCommand) Execute

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

func (PurgeServiceInstanceCommand) Setup

type RenameServiceCommand

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

func (RenameServiceCommand) Execute

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

func (RenameServiceCommand) Setup

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

type ServiceActor

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

type ServiceCommand

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

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

func (ServiceCommand) Execute

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

func (*ServiceCommand) Setup

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

type ServiceInstancesActor

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

type ServiceKeyCommand

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

func (ServiceKeyCommand) Execute

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

func (ServiceKeyCommand) Setup

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

type ServiceKeysCommand

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

func (ServiceKeysCommand) Execute

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

func (ServiceKeysCommand) Setup

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

type ServicesCommand

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

func (ServicesCommand) Execute

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

func (*ServicesCommand) Setup

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

type 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 UnbindRouteServiceCommand

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

func (UnbindRouteServiceCommand) Execute

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

func (UnbindRouteServiceCommand) Setup

type UnbindServiceActor

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

type UnbindServiceCommand

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

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

func (UnbindServiceCommand) Execute

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

func (*UnbindServiceCommand) Setup

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

type 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 UpdateServiceActor

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

type UpdateServiceCommand

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

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

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

func (*UpdateServiceCommand) Execute

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

func (*UpdateServiceCommand) Setup

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

type UpdateUserProvidedServiceActor

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

type UpdateUserProvidedServiceCommand

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

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

func (*UpdateUserProvidedServiceCommand) Execute

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

func (*UpdateUserProvidedServiceCommand) Setup

type V3CancelZdtPushActor

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

type V3CancelZdtPushCommand

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

func (V3CancelZdtPushCommand) Execute

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

func (*V3CancelZdtPushCommand) Setup

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

type V3ZeroDowntimeRestartActor

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

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

type V3ZeroDowntimeRestartCommand

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

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

func (V3ZeroDowntimeRestartCommand) Execute

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

func (*V3ZeroDowntimeRestartCommand) Setup

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

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