mongoclient

package
v1.12.4 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const PUBLIC string = "PUBLIC"
View Source
const STATE string = "__STATE__"

Variables

This section is empty.

Functions

func NewMongoClient

func NewMongoClient(logger logging.Logger, client types.MongoClient, config Config) (inputuser.Client, error)

NewMongoClient creates the struct for accessing user bindings

Types

type Config

type Config struct {
	RolesCollectionName    string
	BindingsCollectionName string
}

type MongoClient

type MongoClient struct {
	types.MongoClient
	// contains filtered or unexported fields
}

func (*MongoClient) RetrieveUserBindings

func (mongoClient *MongoClient) RetrieveUserBindings(ctx context.Context, user types.User) ([]types.Binding, error)

func (*MongoClient) RetrieveUserRolesByRolesID

func (mongoClient *MongoClient) RetrieveUserRolesByRolesID(ctx context.Context, userRolesId []string) ([]types.Role, error)

Jump to

Keyboard shortcuts

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