Documentation
¶
Overview ¶
Code generated generate.go. DO NOT EDIT.
Index ¶
- func GetProjectFromRequest(req connect.AnyRequest) (string, bool)
- func GetServices() []string
- func GetTenantFromRequest(req connect.AnyRequest) (string, bool)
- func IsAuditable(req connect.AnyRequest) bool
- func IsOperatorScope(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 Auditable
- type Methods
- type Operator
- type Project
- type Roles
- type ServicePermissions
- type Tenant
- type Visibility
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetProjectFromRequest ¶
func GetProjectFromRequest(req connect.AnyRequest) (string, bool)
func GetServices ¶
func GetServices() []string
func GetTenantFromRequest ¶
func GetTenantFromRequest(req connect.AnyRequest) (string, bool)
func IsAuditable ¶
func IsAuditable(req connect.AnyRequest) bool
func IsOperatorScope ¶ added in v0.2.0
func IsOperatorScope(req connect.AnyRequest) bool
func IsProjectScope ¶
func IsProjectScope(req connect.AnyRequest) bool
func IsPublicScope ¶
func IsPublicScope(req connect.AnyRequest) bool
func IsSelfScope ¶
func IsSelfScope(req connect.AnyRequest) bool
func IsTenantScope ¶
func IsTenantScope(req connect.AnyRequest) bool
Types ¶
type Operator ¶ added in v0.2.0
type Operator map[v1.OperatorRole]Methods
type Project ¶
type Project map[v1.ProjectRole]Methods
type Roles ¶
type Roles struct {
Operator Operator `json:"operator,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"`
Auditable Auditable `json:"auditable,omitempty"`
Services []string `json:"services,omitempty"`
}
func GetServicePermissions ¶
func GetServicePermissions() *ServicePermissions
type Tenant ¶
type Tenant map[v1.TenantRole]Methods
Click to show internal directories.
Click to hide internal directories.