Movatterモバイル変換


[0]ホーム

URL:


criadb

package
v0.0.0-...-35ef07fLatest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License:BSD-3-ClauseImports:16Imported by:0

Details

Repository

cs.opensource.google/go/x/build

Links

Documentation

Overview

Package criadb provides a wrapper around the CrIA authorization database. Thedatabase is replicated from a GCP Cloud Storage bucket, and is updated every30 + rand.Intn(10) seconds. This database is used to check whether a user isa member of a specified mdb (or other) group.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

typeAuthDatabase

type AuthDatabase struct {// contains filtered or unexported fields}

funcNewDatabase

func NewDatabase(serviceNamestring) (*AuthDatabase,error)

funcNewDevDatabase

func NewDevDatabase() *AuthDatabase

funcNewTestDatabase

func NewTestDatabase(memberships [][2]string) *AuthDatabase

func (*AuthDatabase)IsMemberOfAny

func (db *AuthDatabase) IsMemberOfAny(ctxcontext.Context, identstring, groups []string) (bool,error)

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