tenant

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ManageTenant

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

ManageTenant is an activity wrapper for managing Tenant lifecycle that allows injecting DB access

func NewManageTenant

func NewManageTenant(dbSession *cdb.Session, siteClientPool *sc.ClientPool) ManageTenant

NewManageTenant returns a new ManageTenant activity

func (ManageTenant) CreateOrUpdateTenantOnSite

func (mt ManageTenant) CreateOrUpdateTenantOnSite(ctx context.Context, siteID uuid.UUID, tc client.Client, tenant *cdbm.Tenant, controllerTenant *cwssaws.Tenant) error

CreateOrUpdateTenantOnSite is a Temporal activity to create or update Tenants on Site

func (ManageTenant) UpdateTenantsInDB

func (mt ManageTenant) UpdateTenantsInDB(ctx context.Context, siteID uuid.UUID, tenantInventory *cwssaws.TenantInventory) error

UpdateTenantsInDB is a Temporal activity that takes a collection of Tenant data pushed by Site Agent and updates the DB

Jump to

Keyboard shortcuts

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