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
|
|
|
reva
command
|
|
|
reva/admin
Package admin is the `reva admin` CLI: the operator surface for a running reva fleet.
|
Package admin is the `reva admin` CLI: the operator surface for a running reva fleet. |
|
reva/internal/cli
Package cli holds the state that all reva commands share: the settings, the tokens and the gateway connection.
|
Package cli holds the state that all reva commands share: the settings, the tokens and the gateway connection. |
|
revad/main
command
|
|
|
internal
|
|
|
grpc/control
Package control implements the per-process control channel (reva.control.v1beta1): a gRPC service that runs invocations locally on the addressed target.
|
Package control implements the per-process control channel (reva.control.v1beta1): a gRPC service that runs invocations locally on the addressed target. |
|
grpc/services/admin
Package admin implements the reva Admin API gRPC service (reva.admin.v1beta1), an authenticated operator surface for fleet introspection and bounded, audited actions.
|
Package admin implements the reva Admin API gRPC service (reva.admin.v1beta1), an authenticated operator surface for fleet introspection and bounded, audited actions. |
|
grpc/services/appregistry
Package appregistry serves the CS3 app registry on top of the service registry.
|
Package appregistry serves the CS3 app registry on top of the service registry. |
|
grpc/services/gateway/ratelimiters
Package ratelimiters holds the rate limiters the gateway applies to the PublishEvent flow, keyed by the submitting user.
|
Package ratelimiters holds the rate limiters the gateway applies to the PublishEvent flow, keyed by the submitting user. |
|
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/auth/credential/strategy/appauth
Package appauth provides a credential strategy for app password authentication.
|
Package appauth provides a credential strategy for app password authentication. |
|
http/interceptors/auth/credential/strategy/spnego
Package spnego reads a Kerberos ticket from the Authorization header, so that a client with a TGT authenticates without a password and without an intermediate identity provider.
|
Package spnego reads a Kerberos ticket from the Authorization header, so that a client with a TGT authenticates without a password and without an intermediate identity provider. |
|
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/services/admin
Package admin exposes the user-facing part of the Admin API over HTTP, for clients that only speak the public HTTPS surface.
|
Package admin exposes the user-facing part of the Admin API over HTTP, for clients that only speak the public HTTPS surface. |
|
http/services/gateway
Package gateway is the HTTP entry point to a reva deployment: one address that accepts every request and forwards it to the service that declared the route it matches.
|
Package gateway is the HTTP entry point to a reva deployment: one address that accepts every request and forwards it to the service that declared the route it matches. |
|
http/services/loginflow
Package loginflow implements the anonymous side of the login flow for enrolling the Nextcloud Desktop sync client without a password.
|
Package loginflow implements the anonymous side of the login flow for enrolling the Nextcloud Desktop sync client without a password. |
|
http/services/openapi
Package openapi serves the HTTP surface of a reva deployment as an OpenAPI document, and a page that browses it.
|
Package openapi serves the HTTP surface of a reva deployment as an OpenAPI document, and a page that browses it. |
|
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. |
|
serverless/services/jobs
Package jobs hosts the rjobs runner as a serverless service.
|
Package jobs hosts the rjobs runner as a serverless service. |
|
serverless/services/notifications
Package notifications hosts the notification worker.
|
Package notifications hosts the notification worker. |
|
serverless/services/reconciliation
Package reconciliation hosts the share reconciliation jobs as a serverless service.
|
Package reconciliation hosts the share reconciliation jobs as a serverless service. |
|
pkg
|
|
|
activity
Package activity tracks one service instance's request activity: how many requests are in flight right now, how many have been served, and when the last one started.
|
Package activity tracks one service instance's request activity: how many requests are in flight right now, how many have been served, and when the last one started. |
|
admin
Package admin holds the primitives specific to the reva Admin API: the audit helper and the service identity (AsService).
|
Package admin holds the primitives specific to the reva Admin API: the audit helper and the service identity (AsService). |
|
appauth/loginflow
Package loginflow holds the persistent state for the login flow.
|
Package loginflow holds the persistent state for the login flow. |
|
appauth/loginflow/sql
Package sql is a GORM-backed store for client authorizations.
|
Package sql is a GORM-backed store for client authorizations. |
|
appauth/manager/sql
Package sql is a GORM-backed appauth manager.
|
Package sql is a GORM-backed appauth manager. |
|
auth/cache
Package cache memoizes the outcome of verifying a credential.
|
Package cache memoizes the outcome of verifying a credential. |
|
auth/manager/kerberos
Package kerberos authenticates a user from a Kerberos ticket, so that a client holding a TGT can reach reva directly without an intermediate identity provider.
|
Package kerberos authenticates a user from a Kerberos ticket, so that a client holding a TGT can reach reva directly without an intermediate identity provider. |
|
auth/manager/ocmexchangedtoken
Package ocmexchangedtoken validates exchanged JWTs for OCM DAV access.
|
Package ocmexchangedtoken validates exchanged JWTs for OCM DAV access. |
|
auth/manager/ocmsharecode
Package ocmsharecode validates OCM exchange codes for the /ocm/token endpoint.
|
Package ocmsharecode validates OCM exchange codes for the /ocm/token endpoint. |
|
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. |
|
auth/scope/ocmshare
Package ocmshare reads code-flow OCM share scopes without importing the parent scope package or the JWT token manager.
|
Package ocmshare reads code-flow OCM share scopes without importing the parent scope package or the JWT token manager. |
|
errtypes
Package errtypes contains definitions for common errors.
|
Package errtypes contains definitions for common errors. |
|
invoke
Package invoke is the process-wide invocation framework: services opt into the Invokable capability, and every instance exposes the shared default invocations (config, logs).
|
Package invoke is the process-wide invocation framework: services opt into the Invokable capability, and every instance exposes the shared default invocations (config, logs). |
|
invoke/client
Package client resolves invocation targets through the service registry and runs invocations over the control channel.
|
Package client resolves invocation targets through the service registry and runs invocations over the control channel. |
|
logtail
Package logtail keeps a bounded, in-memory ring of a process's recent log lines, with a live tap for followers.
|
Package logtail keeps a bounded, in-memory ring of a process's recent log lines, with a live tap for followers. |
|
messagequeue
Package messagequeue holds the shared message-queue infrastructure used across Reva, such as the resilient NATS connection used by the notifications subsystem and the jobs framework.
|
Package messagequeue holds the shared message-queue infrastructure used across Reva, such as the resilient NATS connection used by the notifications subsystem and the jobs framework. |
|
notifications/accumulation
Package accumulation stores accepted notification events that share a deduplication key and coordinates, through an expiring lease, which box flushes them.
|
Package accumulation stores accepted notification events that share a deduplication key and coordinates, through an expiring lease, which box flushes them. |
|
ocm/client
Package client provides shared HTTP transports for outbound OCM calls.
|
Package client provides shared HTTP transports for outbound OCM calls. |
|
ocm/embedded
Package embedded transfers the contents of an OCM embedded share (an RO-Crate JSON payload listing plain or Zenodo files) to a WebDAV destination, streaming each referenced file in the background.
|
Package embedded transfers the contents of an OCM embedded share (an RO-Crate JSON payload listing plain or Zenodo files) to a WebDAV destination, streaming each referenced file in the background. |
|
ocm/httpsig
Package httpsig implements the OCM profile of RFC 9421 HTTP Message Signatures.
|
Package httpsig implements the OCM profile of RFC 9421 HTTP Message Signatures. |
|
ocm/invite/repository/internal/contracttest
Package contracttest holds the shared behavioral suite for invite repository adapters.
|
Package contracttest holds the shared behavioral suite for invite repository adapters. |
|
openapi
Package openapi describes a reva deployment's HTTP surface as an OpenAPI document, built from the routes its services declared.
|
Package openapi describes a reva deployment's HTTP surface as an OpenAPI document, built from the routes its services declared. |
|
permissions
Package conversions sits between CS3 type definitions and OCS API Responses
|
Package conversions sits between CS3 type definitions and OCS API Responses |
|
prom/stats
Package stats is the prometheus collector turning the fleet's service statistics into metrics.
|
Package stats is the prometheus collector turning the fleet's service statistics into metrics. |
|
reconciliation
Package reconciliation reconciles the share database against the state of the storage.
|
Package reconciliation reconciles the share database against the state of the storage. |
|
registry/memory
Package memory is the default, in-process registry backend.
|
Package memory is the default, in-process registry backend. |
|
registry/nats
Package nats is the shared registry backend on NATS JetStream KV.
|
Package nats is the shared registry backend on NATS JetStream KV. |
|
rgrpc/mtls
Package mtls builds the credentials for mutual TLS between reva's gRPC services.
|
Package mtls builds the credentials for mutual TLS between reva's gRPC services. |
|
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. |
|
rhttp/ratelimit
Package ratelimit provides a per-client token-bucket HTTP middleware, meant for unauthenticated endpoints that trigger outbound requests or other expensive work (e.g.
|
Package ratelimit provides a per-client token-bucket HTTP middleware, meant for unauthenticated endpoints that trigger outbound requests or other expensive work (e.g. |
|
rhttp/router
Package router is the HTTP routing API reva services use to declare the URLs they serve.
|
Package router is the HTTP routing API reva services use to declare the URLs they serve. |
|
rjobs
Package rjobs provides a framework to run background work in reva, both periodically and once on demand.
|
Package rjobs provides a framework to run background work in reva, both periodically and once on demand. |
|
rjobs/example/pingpong
Package pingpong is a minimal example of an on-demand rjobs job.
|
Package pingpong is a minimal example of an on-demand rjobs job. |
|
rjobs/store/nats
Package nats implements the rjobs.Store on top of NATS JetStream.
|
Package nats implements the rjobs.Store on top of NATS JetStream. |
|
rjobs/store/sql
Package sql implements the rjobs.StatusStore on top of a relational database via GORM.
|
Package sql implements the rjobs.StatusStore on top of a relational database via GORM. |
|
rjobs/store/sql/model
Package model holds the GORM model for the SQL job status store.
|
Package model holds the GORM model for the SQL job status store. |
|
rversion
Package rversion holds reva's build/version metadata.
|
Package rversion holds reva's build/version metadata. |
|
service
Package service hosts the registry-backed peer resolver embedded by every reva service across all transports.
|
Package service hosts the registry-backed peer resolver embedded by every reva service across all transports. |
|
sharehierarchy
Package sharehierarchy implements the hierarchical share consistency algorithm described in ADR-0005-P01.
|
Package sharehierarchy implements the hierarchical share consistency algorithm described in ADR-0005-P01. |
|
stats
Package stats defines the self-describing statistics payload a service can expose through its `stats` invocation, and the Reporter capability a driver implements to produce it.
|
Package stats defines the self-describing statistics payload a service can expose through its `stats` invocation, and the Reporter capability a driver implements to produce it. |
|
storage/fs/cephmount
Package cephmount provides a local filesystem implementation that mimics ceph operations
|
Package cephmount provides a local filesystem implementation that mimics ceph operations |
|
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
|
|
|
create-artifacts
command
|
|
|
generate-documentation
command
|
|
|
prepare-release
command
|
