Renamed temp ng-store variables to store

This commit is contained in:
Denis Arh
2020-09-16 07:37:06 +02:00
parent 5e55340759
commit 3a7cc105d0
32 changed files with 78 additions and 78 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ func Attachment(store objstore.Store) AttachmentService {
return (&attachment{
objects: store,
ac: DefaultAccessControl,
store: DefaultNgStore,
store: DefaultStore,
}).With(context.Background())
}
+1 -1
View File
@@ -53,7 +53,7 @@ func (svc chart) With(ctx context.Context) ChartService {
ctx: ctx,
actionlog: DefaultActionlog,
ac: svc.ac,
store: DefaultNgStore,
store: DefaultStore,
}
}
+1 -1
View File
@@ -64,7 +64,7 @@ func (svc module) With(ctx context.Context) ModuleService {
actionlog: DefaultActionlog,
ac: svc.ac,
eventbus: svc.eventbus,
store: DefaultNgStore,
store: DefaultStore,
}
}
+1 -1
View File
@@ -60,7 +60,7 @@ func (svc namespace) With(ctx context.Context) NamespaceService {
actionlog: DefaultActionlog,
ac: svc.ac,
eventbus: svc.eventbus,
store: DefaultNgStore,
store: DefaultStore,
}
}
+1 -1
View File
@@ -52,7 +52,7 @@ func Page() PageService {
return (&page{
ac: DefaultAccessControl,
eventbus: eventbus.Service(),
store: DefaultNgStore,
store: DefaultStore,
}).With(context.Background())
}
+1 -1
View File
@@ -136,7 +136,7 @@ func Record() RecordService {
ac: DefaultAccessControl,
eventbus: eventbus.Service(),
optEmitEvents: true,
store: DefaultNgStore,
store: DefaultStore,
}).With(context.Background())
}
+6 -6
View File
@@ -14,7 +14,7 @@ import (
"github.com/cortezaproject/corteza-server/pkg/objstore/plain"
"github.com/cortezaproject/corteza-server/pkg/options"
"github.com/cortezaproject/corteza-server/pkg/permissions"
ngStore "github.com/cortezaproject/corteza-server/store"
"github.com/cortezaproject/corteza-server/store"
systemService "github.com/cortezaproject/corteza-server/system/service"
"go.uber.org/zap"
"strconv"
@@ -41,10 +41,10 @@ type (
var (
DefaultObjectStore objstore.Store
// DefaultNgStore is an interface to storage backend(s)
// DefaultStore is an interface to storage backend(s)
// ng (next-gen) is a temporary prefix
// so that we can differentiate between it and the file-only store
DefaultNgStore ngStore.Storer
DefaultStore store.Storer
DefaultLogger *zap.Logger
@@ -75,12 +75,12 @@ var (
)
// Initializes compose-only services
func Initialize(ctx context.Context, log *zap.Logger, s ngStore.Storer, c Config) (err error) {
func Initialize(ctx context.Context, log *zap.Logger, s store.Storer, c Config) (err error) {
var (
hcd = healthcheck.Defaults()
)
DefaultNgStore = s
DefaultStore = s
DefaultLogger = log.Named("service")
@@ -95,7 +95,7 @@ func Initialize(ctx context.Context, log *zap.Logger, s ngStore.Storer, c Config
tee = log
}
DefaultActionlog = actionlog.NewService(DefaultNgStore, log, tee, policy)
DefaultActionlog = actionlog.NewService(DefaultStore, log, tee, policy)
}
if DefaultPermissions == nil {