Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrTenantMismatch = errors.New("tenant flow - tenant mismatch")
)
Functions ¶
This section is empty.
Types ¶
type CreateTenant ¶
type TenantFlowController ¶ added in v0.2.3
func NewTenantFlowController ¶ added in v0.2.3
func NewTenantFlowController(logger logging.Logger, authFlow authflow.AuthenticationFlow, tenantService TenantService, providerRepository providers.Repository, credentials credentials.CredentialsService) TenantFlowController
type TenantProvider ¶
type TenantRepository ¶
type TenantRepository interface { Add(create Tenant) (*Tenant, error) List() ([]Tenant, error) Get(tenantID string) (*Tenant, error) Update(update Tenant) (*Tenant, error) }
Repository - Used for interacting identities on the data store
func NewTenantRepository ¶
func NewTenantRepository(db *sql.DB) TenantRepository
type TenantService ¶
type TenantService interface { GetByIdOrAlias(tenantIdOrAlias string) (*Tenant, error) List() ([]Tenant, error) Create(credentialID string, create CreateTenant) (*Tenant, error) Update(claims tmw.TumblerClaims, tenantID string, update UpdateTenant) (*Tenant, error) }
func NewTenantService ¶
func NewTenantService(time stime.TimeService, logger logging.Logger, repository TenantRepository) (TenantService, error)
type TenantsController ¶
func NewTenantsController ¶
func NewTenantsController(logger logging.Logger, service TenantService) TenantsController
type UpdateTenant ¶ added in v0.2.3
type UpdateTenant client.UpdateTenant
func (UpdateTenant) Validate ¶ added in v0.2.3
func (a UpdateTenant) Validate() error
Click to show internal directories.
Click to hide internal directories.