Documentation ¶
Index ¶
- type CloudControllerSpaceRepository
- func (repo CloudControllerSpaceRepository) Create(name, orgGUID, spaceQuotaGUID string) (models.Space, error)
- func (repo CloudControllerSpaceRepository) Delete(spaceGUID string) (apiErr error)
- func (repo CloudControllerSpaceRepository) FindByName(name string) (space models.Space, apiErr error)
- func (repo CloudControllerSpaceRepository) FindByNameInOrg(name, orgGUID string) (space models.Space, apiErr error)
- func (repo CloudControllerSpaceRepository) ListSpaces(callback func(models.Space) bool) error
- func (repo CloudControllerSpaceRepository) ListSpacesFromOrg(orgGUID string, callback func(models.Space) bool) error
- func (repo CloudControllerSpaceRepository) Rename(spaceGUID, newName string) (apiErr error)
- func (repo CloudControllerSpaceRepository) SetAllowSSH(spaceGUID string, allow bool) (apiErr error)
- type SpaceRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudControllerSpaceRepository ¶
type CloudControllerSpaceRepository struct {
// contains filtered or unexported fields
}
func NewCloudControllerSpaceRepository ¶
func NewCloudControllerSpaceRepository(config coreconfig.Reader, gateway net.Gateway) (repo CloudControllerSpaceRepository)
func (CloudControllerSpaceRepository) Create ¶
func (repo CloudControllerSpaceRepository) Create(name, orgGUID, spaceQuotaGUID string) (models.Space, error)
func (CloudControllerSpaceRepository) Delete ¶
func (repo CloudControllerSpaceRepository) Delete(spaceGUID string) (apiErr error)
func (CloudControllerSpaceRepository) FindByName ¶
func (repo CloudControllerSpaceRepository) FindByName(name string) (space models.Space, apiErr error)
func (CloudControllerSpaceRepository) FindByNameInOrg ¶
func (repo CloudControllerSpaceRepository) FindByNameInOrg(name, orgGUID string) (space models.Space, apiErr error)
func (CloudControllerSpaceRepository) ListSpaces ¶
func (repo CloudControllerSpaceRepository) ListSpaces(callback func(models.Space) bool) error
func (CloudControllerSpaceRepository) ListSpacesFromOrg ¶
func (CloudControllerSpaceRepository) Rename ¶
func (repo CloudControllerSpaceRepository) Rename(spaceGUID, newName string) (apiErr error)
func (CloudControllerSpaceRepository) SetAllowSSH ¶
func (repo CloudControllerSpaceRepository) SetAllowSSH(spaceGUID string, allow bool) (apiErr error)
type SpaceRepository ¶
type SpaceRepository interface { ListSpaces(func(models.Space) bool) error ListSpacesFromOrg(orgGUID string, spaceFunc func(models.Space) bool) error FindByName(name string) (space models.Space, apiErr error) FindByNameInOrg(name, orgGUID string) (space models.Space, apiErr error) Create(name string, orgGUID string, spaceQuotaGUID string) (space models.Space, apiErr error) Rename(spaceGUID, newName string) (apiErr error) SetAllowSSH(spaceGUID string, allow bool) (apiErr error) Delete(spaceGUID string) (apiErr error) }
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.