tenant

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package tenant implements Tenant service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TenantIDChecker added in v1.0.0

func TenantIDChecker(ctx common.RestContext) bool

TenantIDChecker implements AuthZChecker function, ensuring that only user that has attribute of tenant corresponding to the tenantId in the path of request is allowed to execute.

Types

type TenantSvc

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

TenantSvc provides tenant service.

func (*TenantSvc) CreateSchema added in v1.0.0

func (tsvc *TenantSvc) CreateSchema(overwrite bool) error

func (*TenantSvc) Initialize

func (tsvc *TenantSvc) Initialize(client *common.RestClient) error

func (*TenantSvc) Name

func (tenant *TenantSvc) Name() string

func (*TenantSvc) Routes

func (tsvc *TenantSvc) Routes() common.Routes

Routes provides route for tenant service.

func (*TenantSvc) SetConfig

func (tsvc *TenantSvc) SetConfig(config common.ServiceConfig) error

SetConfig implements SetConfig function of the Service interface. Returns an error if cannot connect to the data store

Directories

Path Synopsis
Command for running the Tenant service.
Command for running the Tenant service.

Jump to

Keyboard shortcuts

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