space_quotas

package
v6.14.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2015 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 core_config.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) 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)

	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