Versions in this module Expand all Collapse all v8 v8.17.0 Nov 18, 2025 Changes in this version + type CloudControllerSpaceRepository struct + func NewCloudControllerSpaceRepository(config coreconfig.Reader, gateway net.Gateway) (repo 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 interface + Create func(name string, orgGUID string, spaceQuotaGUID string) (space models.Space, apiErr error) + Delete func(spaceGUID string) (apiErr error) + FindByName func(name string) (space models.Space, apiErr error) + FindByNameInOrg func(name, orgGUID string) (space models.Space, apiErr error) + ListSpaces func(func(models.Space) bool) error + ListSpacesFromOrg func(orgGUID string, spaceFunc func(models.Space) bool) error + Rename func(spaceGUID, newName string) (apiErr error) + SetAllowSSH func(spaceGUID string, allow bool) (apiErr error) Other modules containing this package code.cloudfoundry.org/cli