Documentation
¶
Overview ¶
Code generated discover.go. DO NOT EDIT.
Index ¶
- func GetProjectFromRequest(req connect.AnyRequest) (string, bool)
- func GetServices() []string
- func GetTenantFromRequest(req connect.AnyRequest) (string, bool)
- func IsAdminScope(req connect.AnyRequest) bool
- func IsAuditable(req connect.AnyRequest) bool
- func IsChargeable(req connect.AnyRequest) bool
- func IsProjectScope(req connect.AnyRequest) bool
- func IsPublicScope(req connect.AnyRequest) bool
- func IsSelfScope(req connect.AnyRequest) bool
- func IsTenantScope(req connect.AnyRequest) bool
- type Admin
- type Auditable
- type Chargeable
- type Methods
- type Project
- type Roles
- type ServicePermissions
- type Tenant
- type Visibility
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetProjectFromRequest ¶ added in v0.12.1
func GetProjectFromRequest(req connect.AnyRequest) (string, bool)
func GetServices ¶
func GetServices() []string
func GetTenantFromRequest ¶ added in v0.12.1
func GetTenantFromRequest(req connect.AnyRequest) (string, bool)
func IsAdminScope ¶ added in v0.12.1
func IsAdminScope(req connect.AnyRequest) bool
func IsAuditable ¶ added in v0.12.1
func IsAuditable(req connect.AnyRequest) bool
func IsChargeable ¶ added in v0.12.1
func IsChargeable(req connect.AnyRequest) bool
func IsProjectScope ¶ added in v0.12.1
func IsProjectScope(req connect.AnyRequest) bool
func IsPublicScope ¶ added in v0.12.1
func IsPublicScope(req connect.AnyRequest) bool
func IsSelfScope ¶ added in v0.12.1
func IsSelfScope(req connect.AnyRequest) bool
func IsTenantScope ¶ added in v0.12.1
func IsTenantScope(req connect.AnyRequest) bool
Types ¶
type Chargeable ¶
type Roles ¶
type Roles struct {
Admin Admin `json:"admin,omitempty"`
Tenant Tenant `json:"tenant,omitempty"`
Project Project `json:"project,omitempty"`
}
Roles
type ServicePermissions ¶
type ServicePermissions struct {
Roles Roles `json:"roles"`
Methods Methods `json:"methods"`
Visibility Visibility `json:"visibility"`
Chargeable Chargeable `json:"chargeable,omitempty"`
Auditable Auditable `json:"auditable,omitempty"`
Services []string `json:"services,omitempty"`
}
func GetServicePermissions ¶
func GetServicePermissions() *ServicePermissions
Click to show internal directories.
Click to hide internal directories.