applicationtenancy

package
v0.0.0-...-a423d60 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDirective

func NewDirective(transact persistence.Transactioner, tenantService BusinessTenantMappingService, appService ApplicationService) *directive

NewDirective creates a directive object

Types

type ApplicationService

type ApplicationService interface {
	ListAll(ctx context.Context) ([]*model.Application, error)
}

ApplicationService is responsible for the service-layer application operations.

type BusinessTenantMappingService

type BusinessTenantMappingService interface {
	CreateTenantAccessForResource(ctx context.Context, tenantAccess *model.TenantAccess) error
	ListByParentAndType(ctx context.Context, parentID string, tenantType tenantpkg.Type) ([]*model.BusinessTenantMapping, error)
	ListByIDs(ctx context.Context, ids []string) ([]*model.BusinessTenantMapping, error)
	GetParentsRecursivelyByExternalTenant(ctx context.Context, externalTenant string) ([]*model.BusinessTenantMapping, error)
	GetTenantByID(ctx context.Context, id string) (*model.BusinessTenantMapping, error)
}

BusinessTenantMappingService is responsible for the service-layer tenant operations.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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