Documentation ¶
Index ¶
- func RunMethodIfExists(rpcService *CliRpcService, args []string, ...) bool
- type CliRpcCmd
- func (cmd *CliRpcCmd) AccessToken(args string, retVal *string) error
- func (cmd *CliRpcCmd) ApiEndpoint(args string, retVal *string) error
- func (cmd *CliRpcCmd) ApiVersion(args string, retVal *string) error
- func (cmd *CliRpcCmd) CallCoreCommand(args []string, retVal *bool) error
- func (cmd *CliRpcCmd) DisableTerminalOutput(disable bool, retVal *bool) error
- func (cmd *CliRpcCmd) DopplerEndpoint(args string, retVal *string) error
- func (cmd *CliRpcCmd) GetApp(appName string, retVal *plugin_models.GetAppModel) error
- func (cmd *CliRpcCmd) GetApps(_ string, retVal *[]plugin_models.GetAppsModel) error
- func (cmd *CliRpcCmd) GetCurrentOrg(args string, retVal *plugin_models.Organization) error
- func (cmd *CliRpcCmd) GetCurrentSpace(args string, retVal *plugin_models.Space) error
- func (cmd *CliRpcCmd) GetOrg(orgName string, retVal *plugin_models.GetOrg_Model) error
- func (cmd *CliRpcCmd) GetOrgUsers(args []string, retVal *[]plugin_models.GetOrgUsers_Model) error
- func (cmd *CliRpcCmd) GetOrgs(_ string, retVal *[]plugin_models.GetOrgs_Model) error
- func (cmd *CliRpcCmd) GetOutputAndReset(args bool, retVal *[]string) error
- func (cmd *CliRpcCmd) GetService(serviceInstance string, retVal *plugin_models.GetService_Model) error
- func (cmd *CliRpcCmd) GetServices(_ string, retVal *[]plugin_models.GetServices_Model) error
- func (cmd *CliRpcCmd) GetSpace(spaceName string, retVal *plugin_models.GetSpace_Model) error
- func (cmd *CliRpcCmd) GetSpaceUsers(args []string, retVal *[]plugin_models.GetSpaceUsers_Model) error
- func (cmd *CliRpcCmd) GetSpaces(_ string, retVal *[]plugin_models.GetSpaces_Model) error
- func (cmd *CliRpcCmd) HasAPIEndpoint(args string, retVal *bool) error
- func (cmd *CliRpcCmd) HasOrganization(args string, retVal *bool) error
- func (cmd *CliRpcCmd) HasSpace(args string, retVal *bool) error
- func (cmd *CliRpcCmd) IsLoggedIn(args string, retVal *bool) error
- func (cmd *CliRpcCmd) IsMinCliVersion(version string, retVal *bool) error
- func (cmd *CliRpcCmd) IsSSLDisabled(args string, retVal *bool) error
- func (cmd *CliRpcCmd) LoggregatorEndpoint(args string, retVal *string) error
- func (cmd *CliRpcCmd) SetPluginMetadata(pluginMetadata plugin.PluginMetadata, retVal *bool) error
- func (cmd *CliRpcCmd) UserEmail(args string, retVal *string) error
- func (cmd *CliRpcCmd) UserGuid(args string, retVal *string) error
- func (cmd *CliRpcCmd) Username(args string, retVal *string) error
- type CliRpcService
- type CommandRunner
- type OutputCapture
- type TerminalOutputSwitch
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunMethodIfExists ¶
func RunMethodIfExists(rpcService *CliRpcService, args []string, pluginList map[string]pluginconfig.PluginMetadata) bool
Types ¶
type CliRpcCmd ¶
type CliRpcCmd struct { PluginMetadata *plugin.PluginMetadata MetadataMutex *sync.RWMutex // contains filtered or unexported fields }
func (*CliRpcCmd) AccessToken ¶
func (*CliRpcCmd) ApiEndpoint ¶
func (*CliRpcCmd) CallCoreCommand ¶
func (*CliRpcCmd) DisableTerminalOutput ¶
func (*CliRpcCmd) DopplerEndpoint ¶
func (*CliRpcCmd) GetCurrentOrg ¶
func (*CliRpcCmd) GetCurrentSpace ¶
func (*CliRpcCmd) GetOrgUsers ¶
func (*CliRpcCmd) GetOutputAndReset ¶
func (*CliRpcCmd) GetService ¶
func (*CliRpcCmd) GetServices ¶
func (*CliRpcCmd) GetSpaceUsers ¶
func (*CliRpcCmd) HasAPIEndpoint ¶
func (*CliRpcCmd) HasOrganization ¶
func (*CliRpcCmd) IsMinCliVersion ¶
func (*CliRpcCmd) IsSSLDisabled ¶
func (*CliRpcCmd) LoggregatorEndpoint ¶
func (*CliRpcCmd) SetPluginMetadata ¶
func (cmd *CliRpcCmd) SetPluginMetadata(pluginMetadata plugin.PluginMetadata, retVal *bool) error
type CliRpcService ¶
type CliRpcService struct { Pinged bool RpcCmd *CliRpcCmd Server *rpc.Server // contains filtered or unexported fields }
func NewRpcService ¶
func NewRpcService( outputCapture OutputCapture, terminalOutputSwitch TerminalOutputSwitch, cliConfig coreconfig.Repository, repoLocator api.RepositoryLocator, newCmdRunner CommandRunner, logger trace.Printer, w io.Writer, rpcServer *rpc.Server, ) (*CliRpcService, error)
func (*CliRpcService) Port ¶
func (cli *CliRpcService) Port() string
func (*CliRpcService) Start ¶
func (cli *CliRpcService) Start() error
func (*CliRpcService) Stop ¶
func (cli *CliRpcService) Stop()
type CommandRunner ¶
type CommandRunner interface {
Command([]string, commandregistry.Dependency, bool) error
}
func NewCommandRunner ¶
func NewCommandRunner() CommandRunner
type OutputCapture ¶
type TerminalOutputSwitch ¶
type TerminalOutputSwitch interface {
DisableTerminalOutput(bool)
}
Directories ¶
Path | Synopsis |
---|---|
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
Click to show internal directories.
Click to hide internal directories.