Documentation ¶
Index ¶
- type CloudControllerQuotaRepository
- func (repo CloudControllerQuotaRepository) AssignQuotaToOrg(orgGuid, quotaGuid string) (apiErr error)
- func (repo CloudControllerQuotaRepository) Create(quota models.QuotaFields) error
- func (repo CloudControllerQuotaRepository) Delete(quotaGuid string) (apiErr error)
- func (repo CloudControllerQuotaRepository) FindAll() (quotas []models.QuotaFields, apiErr error)
- func (repo CloudControllerQuotaRepository) FindByName(name string) (quota models.QuotaFields, apiErr error)
- func (repo CloudControllerQuotaRepository) Update(quota models.QuotaFields) error
- type QuotaRepository
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 (repo CloudControllerQuotaRepository) Create(quota models.QuotaFields) error
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 ¶
func (repo CloudControllerQuotaRepository) Update(quota models.QuotaFields) error
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 }
Click to show internal directories.
Click to hide internal directories.