permissions

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QueryEqualOperation             = client.QueryEqualOperation
	QueryUnequalOperation           = client.QueryUnequalOperation
	QueryAnyValueInFeatureOperation = client.QueryAnyValueInFeatureOperation
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConditionConfig

type ConditionConfig = client.ConditionConfig

type ListAfter

type ListAfter = client.ListAfter

type Permissions

type Permissions struct {
	// contains filtered or unexported fields
}

func New

func New(config configuration.Config) *Permissions

func (*Permissions) CheckAccess

func (this *Permissions) CheckAccess(token auth.Token, topic string, id string, right string) (allowed bool, err error)

func (*Permissions) GetResourceRights

func (this *Permissions) GetResourceRights(token string, topic string, id string) (rights ResourceRights, err error)

func (*Permissions) Query

func (this *Permissions) Query(token string, query QueryMessage, result interface{}) (err error, code int)

func (*Permissions) SetResourceRights

func (this *Permissions) SetResourceRights(token string, topic string, id string, rights ResourceRights, kafkaKey string) error

type QueryCheckIds

type QueryCheckIds = client.QueryCheckIds

type QueryFind

type QueryFind = client.QueryFind

type QueryListCommons

type QueryListCommons = client.QueryListCommons

type QueryListIds

type QueryListIds = client.QueryListIds

type QueryMessage

type QueryMessage = client.QueryMessage

type QueryOperationType

type QueryOperationType = client.QueryOperationType

type ResourceRights

type ResourceRights = model.ResourceRights

type ResourceRightsBase

type ResourceRightsBase = model.ResourceRightsBase
type Right = model.Right

type Selection

type Selection = client.Selection

Jump to

Keyboard shortcuts

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