Movatterモバイル変換


[0]ホーム

URL:


rolestore

package
v2.24.2Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License:AGPL-3.0Imports:7Imported by:0

Details

Repository

github.com/coder/coder

Links

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcConvertDBRole

func ConvertDBRole(dbRoledatabase.CustomRole) (rbac.Role,error)

ConvertDBRole should not be used by any human facing apis. It is usedfor authz purposes.

funcCustomRoleCacheContext

func CustomRoleCacheContext(ctxcontext.Context)context.Context

CustomRoleCacheContext prevents needing to lookup custom roles within thesame request lifecycle. Optimizing this to span requests should be donein the future.

funcCustomRoleMW

func CustomRoleMW(nexthttp.Handler)http.Handler

CustomRoleMW adds a custom role cache on the ctx to prevent duplicatedb fetches.

funcExpand

Expand will expand built in roles, and fetch custom roles from the database.If a custom role is defined, but does not exist, the role will be omitted onthe response. This means deleted roles are silently dropped.

Types

This section is empty.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp