permissions

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: Apache-2.0 Imports: 3 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Code generated generate.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 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[v1.AdminRole]Methods

type Auditable

type Auditable map[string]bool

type Methods

type Methods map[string]struct{}

type Project

type Project map[v1.ProjectRole]Methods

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"`
	Auditable  Auditable  `json:"auditable,omitempty"`
	Services   []string   `json:"services,omitempty"`
}

func GetServicePermissions

func GetServicePermissions() *ServicePermissions

type Tenant

type Tenant map[v1.TenantRole]Methods

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"`
	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