Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterPlugin ¶
func RegisterPlugin(p Plugin)
RegisterPlugin registers a reva plugin. For registration this method should be called in the init() method.
Types ¶
type Plugin ¶
type Plugin interface { // RevaPlugin returns the plugin info, like the ID // in the form of <namespace>.<name>, and a New func // used to create the plugin. // The namespace can be only one defined by reva, // depending on the scope of the plugin, while the name // can be whatever, but unique in the namespace. RevaPlugin() PluginInfo }
Plugin is a type used as reva plugin. The type may implement something useful, depending on what is possible to plug in.
type PluginID ¶
type PluginID string
PluginID is the string that uniquely identify a reva plugin. It consists of a dot-separated labels. The last label is the name of the plugin, while the labels before represents the namespace. A pluginID is in the form <namespace>.<name> Neither the name nor the namespace can be empty. The name cannot contain dots. ModuleIDs shuld be lowercase and use underscores (_) instead of spaces.
type PluginInfo ¶
type PluginInfo struct { // ID is the full name of the plugin, in the form // <namespace>.<name>. It must be unique. ID PluginID // New is the constructor of the plugin. We rely // on the developer to correctly provide a valid // construct depending on the plugin. New any }
PluginInfo holds the information of a reva plugin.
func GetPlugins ¶
func GetPlugins(ns string) []PluginInfo
GetPlugins returns all the plugins in the given namespace, and their descendants. For example, a namespace "foo" returns modules with id "foo", "foo.bar", "foo.bar.foo", but not "bar".
func (PluginInfo) String ¶
func (pi PluginInfo) String() string
String return a string representation of the PluginInfo.
Directories
¶
Path | Synopsis |
---|---|
cmd
|
|
internal
|
|
http/interceptors/appctx
Package appctx creates a context with useful components attached to the context like loggers and token managers.
|
Package appctx creates a context with useful components attached to the context like loggers and token managers. |
http/interceptors/metrics
Package appctx creates a context with useful components attached to the context like loggers and token managers.
|
Package appctx creates a context with useful components attached to the context like loggers and token managers. |
http/interceptors/trace
Package appctx creates a context with useful components attached to the context like loggers and token managers.
|
Package appctx creates a context with useful components attached to the context like loggers and token managers. |
http/services/owncloud/ocs/conversions
Package conversions sits between CS3 type definitions and OCS API Responses
|
Package conversions sits between CS3 type definitions and OCS API Responses |
http/services/owncloud/ocs/handlers/cloud/capabilities
Package capabilities contains the capabilities handler.
|
Package capabilities contains the capabilities handler. |
http/services/owncloud/ocs/handlers/cloud/users
Package users contains the users handler.
|
Package users contains the users handler. |
pkg
|
|
auth/manager/nextcloud
Package nextcloud verifies a clientID and clientSecret against a Nextcloud backend.
|
Package nextcloud verifies a clientID and clientSecret against a Nextcloud backend. |
auth/manager/oidc
Package oidc verifies an OIDC token against the configured OIDC provider and obtains the necessary claims to obtain user information.
|
Package oidc verifies an OIDC token against the configured OIDC provider and obtains the necessary claims to obtain user information. |
errtypes
Package errtypes contains definitions for common errors.
|
Package errtypes contains definitions for common errors. |
notification/utils
Package utils contains utilities related to the notifications service and helper.
|
Package utils contains utilities related to the notifications service and helper. |
ocm/share/repository/nextcloud
Package nextcloud verifies a clientID and clientSecret against a Nextcloud backend.
|
Package nextcloud verifies a clientID and clientSecret against a Nextcloud backend. |
rgrpc/status
Package status contains helpers functions to create grpc Status with contextual information, like traces.
|
Package status contains helpers functions to create grpc Status with contextual information, like traces. |
rhttp/datatx
Package datatx provides a library to abstract the complexity of using various data transfer protocols.
|
Package datatx provides a library to abstract the complexity of using various data transfer protocols. |
rhttp/datatx/utils/download
Package download provides a library to handle file download requests.
|
Package download provides a library to handle file download requests. |
storage/registry/dynamic
Package dynamic contains the dynamic storage registry
|
Package dynamic contains the dynamic storage registry |
storage/registry/dynamic/rewriter
Package rewriter contains the route rewriters
|
Package rewriter contains the route rewriters |
storage/registry/dynamic/routingtree
Package routingtree contains the routing tree implementation.
|
Package routingtree contains the routing tree implementation. |
storage/registry/utils
Package utils contains utilities for storage registries
|
Package utils contains utilities for storage registries |
storage/utils/templates
Package templates contains data-driven templates for path layouts.
|
Package templates contains data-driven templates for path layouts. |
tests
|
|
tools
|
|