tenants

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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) Create

func (t *Tenants) Create(ctx context.Context, payload model.TenantCreate) (*model.Tenant, error)

Create implements the tenants interface.

func (*Tenants) Delete

func (t *Tenants) Delete(ctx context.Context, tenantID string) error

Delete implements the tenants interface.

func (*Tenants) DeleteQuota

func (t *Tenants) DeleteQuota(ctx context.Context, tenantID string) error

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.

func (*Tenants) List

func (t *Tenants) List(ctx context.Context, params map[string]string) (*model.TenantList, error)

List implements the tenants interface.

func (*Tenants) SetQuota

func (t *Tenants) SetQuota(ctx context.Context, tenantID string, payload model.TenantQuotaSet) error

SetQuota implements the tenants interface.

func (*Tenants) Update

func (t *Tenants) Update(ctx context.Context, payload model.TenantUpdate, tenantID string) error

Update implements the tenants interface.

Jump to

Keyboard shortcuts

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