permissions

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2025 License: MIT Imports: 2 Imported by: 5

Documentation

Overview

Code generated discover.go. DO NOT EDIT.

Index

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 IsAdminScope

func IsAdminScope(req connect.AnyRequest) bool

func IsAuditable

func IsAuditable(req connect.AnyRequest) bool

func IsInfraScope

func IsInfraScope(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 Admin

type Admin map[string][]string

type Auditable

type Auditable map[string]bool

type Chargeable

type Chargeable map[string]bool

type Infra

type Infra map[string][]string

type Methods

type Methods map[string]bool

type Project

type Project map[string][]string

type Roles

type Roles struct {
	Admin   Admin   `json:"admin,omitempty"`
	Infra   Infra   `json:"infra,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[string][]string

type Visibility

type Visibility struct {
	Public  map[string]bool `json:"public,omitempty"`
	Self    map[string]bool `json:"self,omitempty"`
	Admin   map[string]bool `json:"admin,omitempty"`
	Infra   map[string]bool `json:"infra,omitempty"`
	Tenant  map[string]bool `json:"tenant,omitempty"`
	Project map[string]bool `json:"project,omitempty"`
}

Jump to

Keyboard shortcuts

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