authdb

package
v2.8.0-nightly.20231025 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// InternalUser is the name of the user representing the auth system. By default, it is a cluster admin.
	InternalUser = auth.InternalPrefix + "auth-server"
)

Variables

This section is empty.

Functions

func AuthConfigCollection

func AuthConfigCollection(db *pachsql.DB, listener col.PostgresListener) col.PostgresCollection

AuthConfigCollection returns a postgres collection representing auth configs.

func CollectionsV0

func CollectionsV0() []col.PostgresCollection

CollectionsV0 returns a list of all the PPS API collections for postgres-initialization purposes. These collections are not usable for querying. DO NOT MODIFY THIS FUNCTION IT HAS BEEN USED IN A RELEASED MIGRATION

func GroupsCollection

func GroupsCollection(db *pachsql.DB, listener col.PostgresListener) col.PostgresCollection

GroupsCollection returns a postgres collection representing groups.

func InternalAuthUserPermissions

func InternalAuthUserPermissions(tx *pachsql.Tx) error

InternalAuthUserPermissions adds the Internal Auth User as a cluster admin

func MembersCollection

func MembersCollection(db *pachsql.DB, listener col.PostgresListener) col.PostgresCollection

MembersCollection returns a postgres collection representing members.

func ResourceKey

func ResourceKey(r *auth.Resource) string

ResourceKey generates the key for a resource in the role bindings collection.

func RoleBindingCollection

func RoleBindingCollection(db *pachsql.DB, listener col.PostgresListener) col.PostgresCollection

RoleBindingCollection returns a postgres collection representing role bindings.

Types

This section is empty.

Jump to

Keyboard shortcuts

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