rpcacl

package
v0.0.0-...-f0b372e Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Overview

Package rpcacl contains helpers for checking ACLs of individual RPCs.

Index

Constants

View Source
const AdminGroup = "administrators"

AdminGroup is a name of a group with accounts that can use Admin API.

Variables

This section is empty.

Functions

func CheckAdmin

func CheckAdmin(ctx context.Context) error

CheckAdmin returns nil if the caller is an administrator.

Returns PermissionDenied gRPC error otherwise. It also logs the admin access.

Types

This section is empty.

Jump to

Keyboard shortcuts

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