spacequotas

package
v6.39.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudControllerSpaceQuotaRepository

type CloudControllerSpaceQuotaRepository struct {
	// contains filtered or unexported fields
}

func NewCloudControllerSpaceQuotaRepository

func NewCloudControllerSpaceQuotaRepository(config coreconfig.Reader, gateway net.Gateway) (repo CloudControllerSpaceQuotaRepository)

func (CloudControllerSpaceQuotaRepository) AssociateSpaceWithQuota

func (repo CloudControllerSpaceQuotaRepository) AssociateSpaceWithQuota(spaceGUID string, quotaGUID string) error

func (CloudControllerSpaceQuotaRepository) Create

func (CloudControllerSpaceQuotaRepository) Delete

func (repo CloudControllerSpaceQuotaRepository) Delete(quotaGUID string) (apiErr error)

func (CloudControllerSpaceQuotaRepository) FindByGUID

func (repo CloudControllerSpaceQuotaRepository) FindByGUID(guid string) (quota models.SpaceQuota, apiErr error)

func (CloudControllerSpaceQuotaRepository) FindByName

func (repo CloudControllerSpaceQuotaRepository) FindByName(name string) (quota models.SpaceQuota, apiErr error)

func (CloudControllerSpaceQuotaRepository) FindByNameAndOrgGUID

func (repo CloudControllerSpaceQuotaRepository) FindByNameAndOrgGUID(spaceQuotaName string, orgGUID string) (models.SpaceQuota, error)

func (CloudControllerSpaceQuotaRepository) FindByOrg

func (CloudControllerSpaceQuotaRepository) UnassignQuotaFromSpace

func (repo CloudControllerSpaceQuotaRepository) UnassignQuotaFromSpace(spaceGUID string, quotaGUID string) error

func (CloudControllerSpaceQuotaRepository) Update

type SpaceQuotaRepository

type SpaceQuotaRepository interface {
	FindByName(name string) (quota models.SpaceQuota, apiErr error)
	FindByOrg(guid string) (quota []models.SpaceQuota, apiErr error)
	FindByGUID(guid string) (quota models.SpaceQuota, apiErr error)
	FindByNameAndOrgGUID(spaceQuotaName string, orgGUID string) (quota models.SpaceQuota, apiErr error)

	AssociateSpaceWithQuota(spaceGUID string, quotaGUID string) error
	UnassignQuotaFromSpace(spaceGUID string, quotaGUID string) error

	// CRUD ahoy
	Create(quota models.SpaceQuota) error
	Update(quota models.SpaceQuota) error
	Delete(quotaGUID string) error
}

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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