From ae4f679c257f33c85cfd3f7f37e30bd9d72c42ef Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Thu, 16 Jan 2025 15:35:33 +0100 Subject: [PATCH] Rename app-registry --- services/app-registry/README.md | 16 ++-------------- services/app-registry/pkg/command/root.go | 4 ++-- services/app-registry/pkg/revaconfig/config.go | 2 +- 3 files changed, 5 insertions(+), 17 deletions(-) diff --git a/services/app-registry/README.md b/services/app-registry/README.md index 80105e401c..16f55cc8e7 100644 --- a/services/app-registry/README.md +++ b/services/app-registry/README.md @@ -12,7 +12,7 @@ Administrators can set default applications for each MIME type and also allow th ### MIME Type Configuration -Modifing the MIME type config can only be achieved via a yaml configuration. Using environment variables is not possible. For an example, see the `ocis_full/config/ocis/app-registry.yaml` at [docker-compose example](https://github.com/owncloud/ocis/tree/master/deployments/examples). The following is a brief structure and a field description: +Modifing the MIME type config can only be achieved via a yaml configuration. Using environment variables is not possible. For an example, see the `opencloud_full/config/opencloud/app-registry.yaml` at [docker-compose example](https://github.com/opencloud-eu/opencloud/tree/master/deployments/examples). The following is a brief structure and a field description: **Structure** @@ -46,23 +46,11 @@ The name of the default app which opens this MIME type if the user doesn’t spe * `allow_creation`\ Whether a user should be able to create new files of that MIME type (true or false). -## App Drivers - -App drivers represent apps if the app is not able to register itself. Currently there is only the CS3org WOPI server app driver. - -### CS3org WOPI Server App Driver - -The CS3org WOPI server app driver is included in Infinite Scale by default. It needs at least one WOPI-compliant app like Collabora, OnlyOffice or the Microsoft Online Server or a CS3org WOPI bridge supported app like CodiMD or Etherpad and the [CS3org WOPI server](https://github.com/cs3org/wopiserver). - -### App Provider Configuration - -The configuration of the actual app provider in a [docker-compose example](https://github.com/owncloud/ocis/tree/master/deployments/examples) can be found in the full `ocis-wopi` example directory especially in the config sections `ocis-appprovider-collabora` and `ocis-appprovider-onlyoffice`. - ## Endpoint Access ### Listing available apps and mime types -Clients, for example ownCloud Web, need to offer users the available apps to open files and mime types for new file creation. This information can be obtained from this endpoint. +Clients, for example OpenCloud Web, need to offer users the available apps to open files and mime types for new file creation. This information can be obtained from this endpoint. **Endpoint**: specified in the capabilities in `apps_url`, currently `/app/list` diff --git a/services/app-registry/pkg/command/root.go b/services/app-registry/pkg/command/root.go index 73be5b1752..471427d93f 100644 --- a/services/app-registry/pkg/command/root.go +++ b/services/app-registry/pkg/command/root.go @@ -22,11 +22,11 @@ func GetCommands(cfg *config.Config) cli.Commands { } } -// Execute is the entry point for the ocis-app-registry command. +// Execute is the entry point for the opencloud app-registry command. func Execute(cfg *config.Config) error { app := clihelper.DefaultApp(&cli.App{ Name: "app-registry", - Usage: "Provide a app registry for oCIS", + Usage: "Provide an app registry for OpenCloud", Commands: GetCommands(cfg), }) diff --git a/services/app-registry/pkg/revaconfig/config.go b/services/app-registry/pkg/revaconfig/config.go index 06b0234de4..6ae7ef362e 100644 --- a/services/app-registry/pkg/revaconfig/config.go +++ b/services/app-registry/pkg/revaconfig/config.go @@ -6,7 +6,7 @@ import ( "github.com/opencloud-eu/opencloud/services/app-registry/pkg/config" ) -// AppRegistryConfigFromStruct will adapt an oCIS config struct into a reva mapstructure to start a reva service. +// AppRegistryConfigFromStruct will adapt an OpenCloud config struct into a reva mapstructure to start a reva service. func AppRegistryConfigFromStruct(cfg *config.Config, logger log.Logger) map[string]interface{} { rcfg := map[string]interface{}{ "core": map[string]interface{}{