Documentation ¶
Index ¶
- type CloudControllerRepository
- func (repo CloudControllerRepository) Create(params models.AppParams) (models.Application, error)
- func (repo CloudControllerRepository) CreateRestageRequest(guid string) error
- func (repo CloudControllerRepository) Delete(appGUID string) (apiErr error)
- func (repo CloudControllerRepository) GetApp(appGUID string) (app models.Application, apiErr error)
- func (repo CloudControllerRepository) GetAppRoutes(appGUID string) (routes []models.Route, apiErr error)
- func (repo CloudControllerRepository) Read(name string) (app models.Application, apiErr error)
- func (repo CloudControllerRepository) ReadEnv(guid string) (*models.Environment, error)
- func (repo CloudControllerRepository) ReadFromSpace(name string, spaceGUID string) (app models.Application, apiErr error)
- func (repo CloudControllerRepository) Update(appGUID string, params models.AppParams) (updatedApp models.Application, apiErr error)
- type Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudControllerRepository ¶
type CloudControllerRepository struct {
// contains filtered or unexported fields
}
func NewCloudControllerRepository ¶
func NewCloudControllerRepository(config coreconfig.Reader, gateway net.Gateway) (repo CloudControllerRepository)
func (CloudControllerRepository) Create ¶
func (repo CloudControllerRepository) Create(params models.AppParams) (models.Application, error)
func (CloudControllerRepository) CreateRestageRequest ¶
func (repo CloudControllerRepository) CreateRestageRequest(guid string) error
func (CloudControllerRepository) Delete ¶
func (repo CloudControllerRepository) Delete(appGUID string) (apiErr error)
func (CloudControllerRepository) GetApp ¶
func (repo CloudControllerRepository) GetApp(appGUID string) (app models.Application, apiErr error)
func (CloudControllerRepository) GetAppRoutes ¶
func (repo CloudControllerRepository) GetAppRoutes(appGUID string) (routes []models.Route, apiErr error)
func (CloudControllerRepository) Read ¶
func (repo CloudControllerRepository) Read(name string) (app models.Application, apiErr error)
func (CloudControllerRepository) ReadEnv ¶
func (repo CloudControllerRepository) ReadEnv(guid string) (*models.Environment, error)
func (CloudControllerRepository) ReadFromSpace ¶
func (repo CloudControllerRepository) ReadFromSpace(name string, spaceGUID string) (app models.Application, apiErr error)
func (CloudControllerRepository) Update ¶
func (repo CloudControllerRepository) Update(appGUID string, params models.AppParams) (updatedApp models.Application, apiErr error)
type Repository ¶
type Repository interface { Create(params models.AppParams) (createdApp models.Application, apiErr error) GetAppRoutes(appGUID string) ([]models.Route, error) GetApp(appGUID string) (models.Application, error) Read(name string) (app models.Application, apiErr error) ReadFromSpace(name string, spaceGUID string) (app models.Application, apiErr error) Update(appGUID string, params models.AppParams) (updatedApp models.Application, apiErr error) Delete(appGUID string) (apiErr error) ReadEnv(guid string) (*models.Environment, error) CreateRestageRequest(guid string) (apiErr error) }
Click to show internal directories.
Click to hide internal directories.