Documentation
¶
Index ¶
- type Tenants
- func (t *Tenants) Create(ctx context.Context, payload model.TenantCreate) (*model.Tenant, error)
- func (t *Tenants) Delete(ctx context.Context, tenantID string) error
- func (t *Tenants) DeleteQuota(ctx context.Context, tenantID string) error
- func (t *Tenants) Get(ctx context.Context, tenantID string, params map[string]string) (*model.Tenant, error)
- func (t *Tenants) GetQuota(ctx context.Context, tenantID string, params map[string]string) (*model.TenantQuota, error)
- func (t *Tenants) List(ctx context.Context, params map[string]string) (*model.TenantList, error)
- func (t *Tenants) SetQuota(ctx context.Context, tenantID string, payload model.TenantQuotaSet) error
- func (t *Tenants) Update(ctx context.Context, payload model.TenantUpdate, tenantID string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tenants ¶
type Tenants struct {
Client client.RemoteCaller
}
Tenants is a REST implementation of the Tenants interface.
func (*Tenants) DeleteQuota ¶
DeleteQuota implements the tenants interface.
func (*Tenants) Get ¶
func (t *Tenants) Get(ctx context.Context, tenantID string, params map[string]string) (*model.Tenant, error)
Get implements the tenants interface.
func (*Tenants) GetQuota ¶
func (t *Tenants) GetQuota(ctx context.Context, tenantID string, params map[string]string) (*model.TenantQuota, error)
GetQuota implements the tenants interface.
Click to show internal directories.
Click to hide internal directories.