Documentation
¶
Index ¶
- Constants
- func Init(conf rbacconf.Config, policyPath string, authNconf config.Authentication) (*casbin.SyncedCachedEnforcer, error)
- func New(rbacStoragePath string, rbac rbacconf.Config, authNconf config.Authentication, ...) (*manager, error)
- func WeaviateMatcher(key1 string, key2 string) bool
- func WeaviateMatcherFunc(args ...interface{}) (interface{}, error)
Constants ¶
View Source
const ( SnapshotVersionV0 = iota SnapshotVersionLatest )
View Source
const DEFAULT_POLICY_VERSION = "1.29.0"
View Source
const ( // MODEL is the used model for casbin to store roles, permissions, users and comparisons patterns // docs: https://casbin.org/docs/syntax-for-models MODEL = `` /* 265-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(conf rbacconf.Config, policyPath string, authNconf config.Authentication) (*casbin.SyncedCachedEnforcer, error)
func New ¶
func New(rbacStoragePath string, rbac rbacconf.Config, authNconf config.Authentication, logger logrus.FieldLogger) (*manager, error)
func WeaviateMatcher ¶ added in v1.28.6
func WeaviateMatcherFunc ¶ added in v1.28.6
func WeaviateMatcherFunc(args ...interface{}) (interface{}, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.