spaces

package
v7.0.0-beta.28+incompa... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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 (repo CloudControllerSpaceRepository) ListSpacesFromOrg(orgGUID string, 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
	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
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL