quotas

package
v6.11.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2015 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudControllerQuotaRepository

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

func NewCloudControllerQuotaRepository

func NewCloudControllerQuotaRepository(config core_config.Reader, gateway net.Gateway) (repo CloudControllerQuotaRepository)

func (CloudControllerQuotaRepository) AssignQuotaToOrg

func (repo CloudControllerQuotaRepository) AssignQuotaToOrg(orgGuid, quotaGuid string) (apiErr error)

func (CloudControllerQuotaRepository) Create

func (CloudControllerQuotaRepository) Delete

func (repo CloudControllerQuotaRepository) Delete(quotaGuid string) (apiErr error)

func (CloudControllerQuotaRepository) FindAll

func (repo CloudControllerQuotaRepository) FindAll() (quotas []models.QuotaFields, apiErr error)

func (CloudControllerQuotaRepository) FindByName

func (repo CloudControllerQuotaRepository) FindByName(name string) (quota models.QuotaFields, apiErr error)

func (CloudControllerQuotaRepository) Update

type QuotaRepository

type QuotaRepository interface {
	FindAll() (quotas []models.QuotaFields, apiErr error)
	FindByName(name string) (quota models.QuotaFields, apiErr error)

	AssignQuotaToOrg(orgGuid, quotaGuid string) error

	// CRUD ahoy
	Create(quota models.QuotaFields) error
	Update(quota models.QuotaFields) 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