permissions

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 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 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 Auditable

type Auditable map[string]bool

type Methods

type Methods map[string]struct{}

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

type Visibility

type Visibility struct {
	Public   map[string]bool `json:"public,omitempty"`
	Self     map[string]bool `json:"self,omitempty"`
	Operator map[string]bool `json:"operator,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