tenant

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatchCreate

func BatchCreate(params []warrant.TenantParams) ([]warrant.Tenant, error)

func Create

func Create(params *warrant.TenantParams) (*warrant.Tenant, error)

func Delete

func Delete(tenantId string) error

func Get

func Get(tenantId string) (*warrant.Tenant, error)

func ListTenants

func ListTenants(listParams *warrant.ListTenantParams) ([]warrant.Tenant, error)

func ListTenantsForUser

func ListTenantsForUser(userId string, listParams *warrant.ListTenantParams) ([]warrant.Tenant, error)

func Update

func Update(tenantId string, params *warrant.TenantParams) (*warrant.Tenant, error)

Types

type Client

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

func NewClient

func NewClient(config config.ClientConfig) Client

func (Client) BatchCreate

func (c Client) BatchCreate(params []warrant.TenantParams) ([]warrant.Tenant, error)

func (Client) Create

func (c Client) Create(params *warrant.TenantParams) (*warrant.Tenant, error)

func (Client) Delete

func (c Client) Delete(tenantId string) error

func (Client) Get

func (c Client) Get(tenantId string) (*warrant.Tenant, error)

func (Client) ListTenants

func (c Client) ListTenants(listParams *warrant.ListTenantParams) ([]warrant.Tenant, error)

func (Client) ListTenantsForUser

func (c Client) ListTenantsForUser(userId string, listParams *warrant.ListTenantParams) ([]warrant.Tenant, error)

func (Client) Update

func (c Client) Update(tenantId string, params *warrant.TenantParams) (*warrant.Tenant, error)

Jump to

Keyboard shortcuts

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