Documentation ¶
Overview ¶
Package v3action contains the business logic for the commands/v3 package
Index ¶
- type Actor
- func (actor Actor) CloudControllerAPIVersion() string
- func (actor Actor) GetApplicationByNameAndSpace(appName string, spaceGUID string) (Application, Warnings, error)
- func (actor Actor) GetApplicationTasks(appGUID string, sortOrder SortOrder) ([]Task, Warnings, error)
- func (actor Actor) GetTaskBySequenceIDAndApplication(sequenceID int, appGUID string) (Task, Warnings, error)
- func (actor Actor) RunTask(appGUID string, command string, name string, memory uint64, disk uint64) (Task, Warnings, error)
- func (actor Actor) TerminateTask(taskGUID string) (Task, Warnings, error)
- type Application
- type ApplicationNotFoundError
- type CloudControllerClient
- type SortOrder
- type Task
- type TaskNotFoundError
- type TaskWorkersUnavailableError
- type Warnings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Actor ¶
type Actor struct {
CloudControllerClient CloudControllerClient
}
Actor represents a V3 actor.
func (Actor) CloudControllerAPIVersion ¶
CloudControllerAPIVersion returns back the Cloud Controller API version.
func (Actor) GetApplicationByNameAndSpace ¶
func (actor Actor) GetApplicationByNameAndSpace(appName string, spaceGUID string) (Application, Warnings, error)
GetApplicationByNameAndSpace returns the application with the given name in the given space.
func (Actor) GetApplicationTasks ¶
func (actor Actor) GetApplicationTasks(appGUID string, sortOrder SortOrder) ([]Task, Warnings, error)
GetApplicationTasks returns a list of tasks associated with the provided appplication GUID.
func (Actor) GetTaskBySequenceIDAndApplication ¶
type ApplicationNotFoundError ¶
type ApplicationNotFoundError struct {
Name string
}
ApplicationNotFoundError represents the error that occurs when the application is not found.
func (ApplicationNotFoundError) Error ¶
func (e ApplicationNotFoundError) Error() string
type CloudControllerClient ¶
type CloudControllerClient interface { CloudControllerAPIVersion() string GetApplicationTasks(appGUID string, query url.Values) ([]ccv3.Task, ccv3.Warnings, error) GetApplications(query url.Values) ([]ccv3.Application, ccv3.Warnings, error) NewTask(appGUID string, command string, name string, memory uint64, disk uint64) (ccv3.Task, ccv3.Warnings, error) UpdateTask(taskGUID string) (ccv3.Task, ccv3.Warnings, error) }
CloudControllerClient is the interface to the cloud controller V3 API.
type TaskNotFoundError ¶
type TaskNotFoundError struct {
SequenceID int
}
TaskNotFoundError is returned when no tasks matching the filters are found.
func (TaskNotFoundError) Error ¶
func (e TaskNotFoundError) Error() string
type TaskWorkersUnavailableError ¶
type TaskWorkersUnavailableError struct {
}TaskWorkersUnavailableError is returned when there are no workers to run a given task.
func (TaskWorkersUnavailableError) Error ¶
func (e TaskWorkersUnavailableError) Error() string
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
This file was generated by counterfeiter
|
This file was generated by counterfeiter |