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
Click to show internal directories.
Click to hide internal directories.