Documentation ¶
Index ¶
- type Query
- func (this *Query) AddModifier(token auth.Token, resourceKind string, elements []map[string]interface{}, ...) (result []map[string]interface{}, err error, code int)
- func (this *Query) CheckGroups(kind string, resource string, groups []string, rights string) (err error)
- func (this *Query) CheckListUserOrGroup(token auth.Token, kind string, ids []string, rights string) (allowed map[string]bool, err error)
- func (this *Query) CheckUser(kind string, resource string, user string, rights string) (err error)
- func (this *Query) CheckUserOrGroup(tokenStr string, kind string, resource string, rights string) (err error)
- func (this *Query) CheckUserOrGroupFromAuthToken(token auth.Token, kind string, resource string, rights string) (err error)
- func (this *Query) Export() (exports map[string][]model.ResourceRights, err error)
- func (this *Query) ExportKind(kind string, limit int, offset int) (result []model.ResourceRights, err error)
- func (this *Query) ExportKindAll(kind string) (result []model.ResourceRights, err error)
- func (this *Query) GetClient() *opensearch.Client
- func (this *Query) GetConditionFilter(token auth.Token, condition model.ConditionConfig) (map[string]interface{}, error)
- func (this *Query) GetFilter(token auth.Token, selection model.Selection) (result map[string]interface{}, err error)
- func (this *Query) GetFullListForUserOrGroup(kind string, user string, groups []string, rights string) (result []map[string]interface{}, err error)
- func (this *Query) GetList(token auth.Token, kind string, queryCommons model.QueryListCommons) (result []map[string]interface{}, err error)
- func (this *Query) GetListForGroup(kind string, groups []string, rights string) (result []string, err error)
- func (this *Query) GetListForUser(kind string, user string, rights string) (result []string, err error)
- func (this *Query) GetListForUserOrGroup(kind string, user string, groups []string, rights string, limitStr string, ...) (result []map[string]interface{}, err error)
- func (this *Query) GetListFromIds(token auth.Token, kind string, ids []string, ...) (result []map[string]interface{}, err error)
- func (this *Query) GetListTotalForUserOrGroup(token auth.Token, kind string, rights string) (result int64, err error)
- func (this *Query) GetListWithSelection(token auth.Token, kind string, queryCommons model.QueryListCommons, ...) (result []map[string]interface{}, err error)
- func (this *Query) GetResourceEntry(kind string, resource string) (result model.Entry, version model.ResourceVersion, err error)
- func (this *Query) GetResourceInterface(kind string, resource string, result interface{}) (version model.ResourceVersion, err error)
- func (this *Query) GetRights(tokenStr string, kind string, resource string) (result model.ResourceRights, err error)
- func (this *Query) GetRightsToAdministrate(kind string, user string, groups []string) (result []model.ResourceRights, err error)
- func (this *Query) GetTermAggregation(tokenStr string, kind string, rights string, field string, limit int) (result []model.TermAggregationResultElement, err error)
- func (this *Query) Import(imports map[string][]model.ResourceRights) (err error)
- func (this *Query) ImportResource(kind string, resource model.ResourceRights) (err error)
- func (this *Query) List(tokenStr string, kind string, options model.ListOptions) (result []map[string]interface{}, err error)
- func (this *Query) Query(tokenStr string, query model.QueryMessage) (result interface{}, code int, err error)
- func (this *Query) ResourceExists(kind string, resource string) (exists bool, err error)
- func (this *Query) SearchList(token auth.Token, kind string, query string, ...) (result []map[string]interface{}, err error)
- func (this *Query) SearchListAll(kind string, query string, user string, groups []string, rights string) (result []map[string]interface{}, err error)
- func (this *Query) SearchListTotal(token auth.Token, kind string, query string, rights string) (result int64, err error)
- func (this *Query) SearchOrderedList(kind string, query string, user string, groups []string, ...) (result []map[string]interface{}, err error)
- func (this *Query) SearchRightsToAdministrate(kind string, user string, groups []string, query string, limitStr string, ...) (result []model.ResourceRights, err error)
- func (this *Query) SelectByFeature(token auth.Token, kind string, feature string, value string, ...) (result []map[string]interface{}, err error)
- func (this *Query) SelectByFeatureTotal(token auth.Token, kind string, field string, value string, rights string) (result int64, err error)
- func (this *Query) SelectByFieldAll(kind string, field string, value string, user string, groups []string, ...) (result []map[string]interface{}, err error)
- func (this *Query) Total(tokenStr string, kind string, options model.ListOptions) (result int64, err error)
- type WithTotal
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Query ¶
type Query struct {
// contains filtered or unexported fields
}
func (*Query) AddModifier ¶
func (*Query) CheckGroups ¶
func (*Query) CheckListUserOrGroup ¶
func (*Query) CheckUserOrGroup ¶
func (*Query) CheckUserOrGroupFromAuthToken ¶
func (*Query) Export ¶
func (this *Query) Export() (exports map[string][]model.ResourceRights, err error)
func (*Query) ExportKind ¶
func (*Query) ExportKindAll ¶
func (this *Query) ExportKindAll(kind string) (result []model.ResourceRights, err error)
func (*Query) GetConditionFilter ¶
func (*Query) GetFullListForUserOrGroup ¶
func (*Query) GetListForGroup ¶
func (*Query) GetListForUser ¶
func (*Query) GetListForUserOrGroup ¶
func (*Query) GetListFromIds ¶
func (*Query) GetListTotalForUserOrGroup ¶
func (*Query) GetListWithSelection ¶
func (*Query) GetResourceEntry ¶
func (*Query) GetResourceInterface ¶
func (*Query) GetRightsToAdministrate ¶
func (*Query) GetTermAggregation ¶
func (*Query) Import ¶
func (this *Query) Import(imports map[string][]model.ResourceRights) (err error)
func (*Query) ImportResource ¶
func (this *Query) ImportResource(kind string, resource model.ResourceRights) (err error)
func (*Query) ResourceExists ¶
func (*Query) SearchList ¶
func (this *Query) SearchList(token auth.Token, kind string, query string, queryCommons model.QueryListCommons, selection *model.Selection) (result []map[string]interface{}, err error)
SearchList does a text search with query on the feature_search index the function allows optionally additional filtering with the selection parameter. when unneeded this parameter may be nil.
func (*Query) SearchListAll ¶
func (*Query) SearchListTotal ¶
func (*Query) SearchOrderedList ¶
func (*Query) SearchRightsToAdministrate ¶
func (*Query) SelectByFeature ¶
func (*Query) SelectByFeatureTotal ¶
func (*Query) SelectByFieldAll ¶
Click to show internal directories.
Click to hide internal directories.