Documentation ¶
Index ¶
- type CloudControllerSpaceRepository
- func (repo CloudControllerSpaceRepository) Create(name, orgGuid, spaceQuotaGuid string) (space models.Space, apiErr 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) 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 core_config.Reader, gateway net.Gateway) (repo CloudControllerSpaceRepository)
func (CloudControllerSpaceRepository) Create ¶
func (repo CloudControllerSpaceRepository) Create(name, orgGuid, spaceQuotaGuid string) (space models.Space, apiErr 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) 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 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) }
Click to show internal directories.
Click to hide internal directories.