Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Binding ¶
type Binding struct { Resource *Resource `bson:"resource" json:"resource,omitempty"` BindingID string `bson:"bindingId" json:"bindingId"` CRUDDocumentState string `bson:"__STATE__" json:"-"` Groups []string `bson:"groups" json:"groups,omitempty"` Subjects []string `bson:"subjects" json:"subjects,omitempty"` Permissions []string `bson:"permissions" json:"permissions,omitempty"` Roles []string `bson:"roles" json:"roles,omitempty"` }
type BindingCreateResponse ¶
type BindingCreateResponse struct {
ObjectID string `json:"_id"`
}
type BindingFilter ¶
type BindingFilter struct {
BindingID string `bson:"bindingId" json:"bindingId"`
}
type BindingUpdate ¶
type IMongoClient ¶
type IMongoClient interface { Disconnect() error RetrieveUserBindings(ctx context.Context, user *User) ([]Binding, error) RetrieveRoles(ctx context.Context) ([]Role, error) RetrieveUserRolesByRolesID(ctx context.Context, userRolesId []string) ([]Role, error) FindOne(ctx context.Context, collectionName string, query map[string]interface{}) (interface{}, error) FindMany(ctx context.Context, collectionName string, query map[string]interface{}) ([]interface{}, error) }
MongoClientContextKey is the context key that shall be used to save mongo Collection reference in request contexts.
type MongoClientContextKey ¶
type MongoClientContextKey struct{}
type RequestError ¶
Click to show internal directories.
Click to hide internal directories.