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.

        Source Files