Documentation ¶
Index ¶
- type App
- type CFPluginAPI
- type Error
- type FindBindingsClient
- func (c *FindBindingsClient) GetAppByGuid(guid string) (cfclient.App, error)
- func (c *FindBindingsClient) GetOrgByGuid(spaceGUID string) (cfclient.Org, error)
- func (c *FindBindingsClient) GetSpaceByGuid(spaceGUID string) (cfclient.Space, error)
- func (c *FindBindingsClient) ListServiceBindingsByQuery(query url.Values) ([]cfclient.ServiceBinding, error)
- func (c *FindBindingsClient) ListServiceInstancesByQuery(query url.Values) ([]cfclient.ServiceInstance, error)
- func (c *FindBindingsClient) ListServiceKeysByQuery(query url.Values) ([]cfclient.ServiceKey, error)
- func (c *FindBindingsClient) ListServicePlansByQuery(query url.Values) ([]cfclient.ServicePlan, error)
- func (c *FindBindingsClient) ListServicesByQuery(query url.Values) ([]cfclient.Service, error)
- type MigratorClient
- func (c *MigratorClient) BindService(appName, serviceName string) error
- func (c *MigratorClient) CreateServiceInstance(planType, instanceName string) error
- func (c *MigratorClient) CreateTask(app App, command string) (*Task, error)
- func (c *MigratorClient) DeleteApp(appName string) error
- func (c *MigratorClient) DeleteServiceInstance(instanceName string) error
- func (c *MigratorClient) GetAppByName(name string) (App, error)
- func (c *MigratorClient) GetLogs(appName, filter string) ([]string, error)
- func (c *MigratorClient) GetTaskByGUID(guid string) (*Task, error)
- func (c *MigratorClient) PushApp(path, appName string) error
- func (c *MigratorClient) RenameService(oldName, newName string) error
- func (c *MigratorClient) RunTask(appName, command string) error
- func (c *MigratorClient) ServiceExists(serviceName string) bool
- func (c *MigratorClient) StartApp(appName string) error
- type SleepFunc
- type Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CFPluginAPI ¶
type CFPluginAPI interface { CliCommand(...string) ([]string, error) CliCommandWithoutTerminalOutput(args ...string) ([]string, error) GetCurrentSpace() (plugin_models.Space, error) GetService(string) (plugin_models.GetService_Model, error) AccessToken() (string, error) }
type FindBindingsClient ¶ added in v0.7.1
type FindBindingsClient struct {
// contains filtered or unexported fields
}
func NewFindBindingsClient ¶ added in v0.7.1
func NewFindBindingsClient(cliConnection plugin.CliConnection) *FindBindingsClient
func (*FindBindingsClient) GetAppByGuid ¶ added in v0.7.1
func (c *FindBindingsClient) GetAppByGuid(guid string) (cfclient.App, error)
func (*FindBindingsClient) GetOrgByGuid ¶ added in v0.7.1
func (c *FindBindingsClient) GetOrgByGuid(spaceGUID string) (cfclient.Org, error)
func (*FindBindingsClient) GetSpaceByGuid ¶ added in v0.7.1
func (c *FindBindingsClient) GetSpaceByGuid(spaceGUID string) (cfclient.Space, error)
func (*FindBindingsClient) ListServiceBindingsByQuery ¶ added in v0.7.1
func (c *FindBindingsClient) ListServiceBindingsByQuery(query url.Values) ([]cfclient.ServiceBinding, error)
func (*FindBindingsClient) ListServiceInstancesByQuery ¶ added in v0.7.1
func (c *FindBindingsClient) ListServiceInstancesByQuery(query url.Values) ([]cfclient.ServiceInstance, error)
func (*FindBindingsClient) ListServiceKeysByQuery ¶ added in v0.7.1
func (c *FindBindingsClient) ListServiceKeysByQuery(query url.Values) ([]cfclient.ServiceKey, error)
func (*FindBindingsClient) ListServicePlansByQuery ¶ added in v0.7.1
func (c *FindBindingsClient) ListServicePlansByQuery(query url.Values) ([]cfclient.ServicePlan, error)
func (*FindBindingsClient) ListServicesByQuery ¶ added in v0.7.1
func (c *FindBindingsClient) ListServicesByQuery(query url.Values) ([]cfclient.Service, error)
type MigratorClient ¶ added in v0.7.1
type MigratorClient struct { MaxAttempts int Log *log.Logger Sleep SleepFunc // contains filtered or unexported fields }
func NewMigratorClient ¶ added in v0.7.1
func NewMigratorClient(pluginAPI CFPluginAPI) *MigratorClient
func (*MigratorClient) BindService ¶ added in v0.7.1
func (c *MigratorClient) BindService(appName, serviceName string) error
func (*MigratorClient) CreateServiceInstance ¶ added in v0.7.1
func (c *MigratorClient) CreateServiceInstance(planType, instanceName string) error
func (*MigratorClient) CreateTask ¶ added in v0.7.1
func (c *MigratorClient) CreateTask(app App, command string) (*Task, error)
func (*MigratorClient) DeleteApp ¶ added in v0.7.1
func (c *MigratorClient) DeleteApp(appName string) error
func (*MigratorClient) DeleteServiceInstance ¶ added in v0.7.1
func (c *MigratorClient) DeleteServiceInstance(instanceName string) error
func (*MigratorClient) GetAppByName ¶ added in v0.7.1
func (c *MigratorClient) GetAppByName(name string) (App, error)
func (*MigratorClient) GetLogs ¶ added in v0.7.1
func (c *MigratorClient) GetLogs(appName, filter string) ([]string, error)
func (*MigratorClient) GetTaskByGUID ¶ added in v0.7.1
func (c *MigratorClient) GetTaskByGUID(guid string) (*Task, error)
func (*MigratorClient) PushApp ¶ added in v0.7.1
func (c *MigratorClient) PushApp(path, appName string) error
func (*MigratorClient) RenameService ¶ added in v0.7.1
func (c *MigratorClient) RenameService(oldName, newName string) error
func (*MigratorClient) RunTask ¶ added in v0.7.1
func (c *MigratorClient) RunTask(appName, command string) error
func (*MigratorClient) ServiceExists ¶ added in v0.7.1
func (c *MigratorClient) ServiceExists(serviceName string) bool
func (*MigratorClient) StartApp ¶ added in v0.7.1
func (c *MigratorClient) StartApp(appName string) error
Click to show internal directories.
Click to hide internal directories.