Add an ocm service exposing the ocm related http and grpc APIs

This commit is contained in:
André Duffeck
2023-10-24 10:29:29 +02:00
parent 3eea26390c
commit 668f917dba
32 changed files with 934 additions and 3 deletions
+6
View File
@@ -39,6 +39,7 @@ import (
nats "github.com/owncloud/ocis/v2/services/nats/pkg/command"
notifications "github.com/owncloud/ocis/v2/services/notifications/pkg/command"
ocdav "github.com/owncloud/ocis/v2/services/ocdav/pkg/command"
ocm "github.com/owncloud/ocis/v2/services/ocm/pkg/command"
ocs "github.com/owncloud/ocis/v2/services/ocs/pkg/command"
policies "github.com/owncloud/ocis/v2/services/policies/pkg/command"
postprocessing "github.com/owncloud/ocis/v2/services/postprocessing/pkg/command"
@@ -272,6 +273,11 @@ func NewService(options ...Option) (*Service, error) {
cfg.Webfinger.Commons = cfg.Commons
return webfinger.Execute(cfg.Webfinger)
})
reg(opts.Config.OCM.Service.Name, func(ctx context.Context, cfg *ociscfg.Config) error {
cfg.OCM.Context = ctx
cfg.OCM.Commons = cfg.Commons
return ocm.Execute(cfg.OCM)
})
// populate optional services
areg := func(name string, exec func(context.Context, *ociscfg.Config) error) {