Documentation ¶
Index ¶
- Constants
- func AuthConfigCollection(db *pachsql.DB, listener col.PostgresListener) col.PostgresCollection
- func CollectionsV0() []col.PostgresCollection
- func GroupsCollection(db *pachsql.DB, listener col.PostgresListener) col.PostgresCollection
- func InternalAuthUserPermissions(tx *pachsql.Tx) error
- func MembersCollection(db *pachsql.DB, listener col.PostgresListener) col.PostgresCollection
- func ResourceKey(r *auth.Resource) string
- func RoleBindingCollection(db *pachsql.DB, listener col.PostgresListener) col.PostgresCollection
Constants ¶
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 ¶
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 ¶
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.