Documentation ¶
Index ¶
Constants ¶
View Source
const ( APP_ID_REGEX = `^[a-zA-Z0-9][a-zA-Z0-9_\-]*[a-zA-Z0-9]$` ORG_ID_REGEX = `^[a-zA-Z0-9][a-zA-Z0-9_\-]*[a-zA-Z0-9]$` )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BadConfigError ¶
type BadConfigError struct { }
func (*BadConfigError) Error ¶
func (e *BadConfigError) Error() string
type Config ¶
type Config struct { Tenant Id `json:"tenant"` // tenant id Quota Quota `json:"quota"` // tenant quota ClientIds []string `json:"clientIds,omitempty"` // jwt subjects or client IDs ClientSecret string `json:"clientSecret"` // client secret for first client id in list, needed to make calls to credentials API OpenEventApi bool `json:"openEventApi,omitempty"` // if true, allow unauthenticated calls to the event API for routes under that tenant Modified int64 `json:"modified,omitempty"` // last time when the tenant config is modified }
type Id ¶
func (Id) Key ¶
Key A string representation of tenant id that can be used has a key for certain data structure like a map
func (Id) KeyWithFragment ¶ added in v0.9.0
func (Id) KeyWithRoute ¶
KeyWithRoute A string representation of tenant id + route id that can be used has a key for certain data structure like a map
type InternalStorageError ¶
type InternalStorageError struct {
Wrapped error
}
func (*InternalStorageError) Error ¶
func (e *InternalStorageError) Error() string
func (*InternalStorageError) Unwrap ¶
func (e *InternalStorageError) Unwrap() error
type TenantNotFoundError ¶
type TenantNotFoundError struct {
Tenant Id
}
func (*TenantNotFoundError) Error ¶
func (e *TenantNotFoundError) Error() string
Click to show internal directories.
Click to hide internal directories.