service

package
v0.0.0-...-2873e01 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 63 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IMPORT_ON_ERROR_SKIP         = "SKIP"
	IMPORT_ON_ERROR_FAIL         = "FAIL"
	IMPORT_ERROR_MAX_INDEX_COUNT = 500000
)

Variables

View Source
var (
	DefaultObjectStore objstore.Store

	// 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
	DefaultStore store.Storer

	DefaultLogger *zap.Logger

	DefaultActionlog actionlog.Recorder

	// DefaultAccessControl Access control checking
	DefaultAccessControl *accessControl

	DefaultNamespace           NamespaceService
	DefaultImportSession       ImportSessionService
	DefaultRecord              *record
	DefaultModule              ModuleService
	DefaultChart               *chart
	DefaultPage                *page
	DefaultPageLayout          *pageLayout
	DefaultAttachment          AttachmentService
	DefaultNotification        *notification
	DefaultResourceTranslation ResourceTranslationsManagerService
	DefaultDataPrivacy         DataPrivacyService
)
View Source
var ErrNotAllowedToManageResourceTranslations = errors.Unauthorized("not allowed to manage resource translations")

Functions

func AccessControl

func AccessControl(s store.Storer) *accessControl

func AccessControlActionGrant

func AccessControlActionGrant(props ...*accessControlActionProps) *accessControlAction

AccessControlActionGrant returns "compose:access_control.grant" action

This function is auto-generated.

func AccessControlErrGeneric

func AccessControlErrGeneric(mm ...*accessControlActionProps) *errors.Error

AccessControlErrGeneric returns "compose:access_control.generic" as *errors.Error

This function is auto-generated.

func AccessControlErrNotAllowedToSetPermissions

func AccessControlErrNotAllowedToSetPermissions(mm ...*accessControlActionProps) *errors.Error

AccessControlErrNotAllowedToSetPermissions returns "compose:access_control.notAllowedToSetPermissions" as *errors.Error

This function is auto-generated.

func Activate

func Activate(ctx context.Context) (err error)

func Attachment

func Attachment(store objstore.Store, dal dalDater) *attachment

func AttachmentActionCreate

func AttachmentActionCreate(props ...*attachmentActionProps) *attachmentAction

AttachmentActionCreate returns "compose:attachment.create" action

This function is auto-generated.

func AttachmentActionDelete

func AttachmentActionDelete(props ...*attachmentActionProps) *attachmentAction

AttachmentActionDelete returns "compose:attachment.delete" action

This function is auto-generated.

func AttachmentActionLookup

func AttachmentActionLookup(props ...*attachmentActionProps) *attachmentAction

AttachmentActionLookup returns "compose:attachment.lookup" action

This function is auto-generated.

func AttachmentActionSearch

func AttachmentActionSearch(props ...*attachmentActionProps) *attachmentAction

AttachmentActionSearch returns "compose:attachment.search" action

This function is auto-generated.

func AttachmentErrFailedToExtractMimeType

func AttachmentErrFailedToExtractMimeType(mm ...*attachmentActionProps) *errors.Error

AttachmentErrFailedToExtractMimeType returns "compose:attachment.failedToExtractMimeType" as *errors.Error

This function is auto-generated.

func AttachmentErrFailedToProcessImage

func AttachmentErrFailedToProcessImage(mm ...*attachmentActionProps) *errors.Error

AttachmentErrFailedToProcessImage returns "compose:attachment.failedToProcessImage" as *errors.Error

This function is auto-generated.

func AttachmentErrFailedToStoreFile

func AttachmentErrFailedToStoreFile(mm ...*attachmentActionProps) *errors.Error

AttachmentErrFailedToStoreFile returns "compose:attachment.failedToStoreFile" as *errors.Error

This function is auto-generated.

func AttachmentErrGeneric

func AttachmentErrGeneric(mm ...*attachmentActionProps) *errors.Error

AttachmentErrGeneric returns "compose:attachment.generic" as *errors.Error

This function is auto-generated.

func AttachmentErrInvalidID

func AttachmentErrInvalidID(mm ...*attachmentActionProps) *errors.Error

AttachmentErrInvalidID returns "compose:attachment.invalidID" as *errors.Error

This function is auto-generated.

func AttachmentErrInvalidModuleField

func AttachmentErrInvalidModuleField(mm ...*attachmentActionProps) *errors.Error

AttachmentErrInvalidModuleField returns "compose:attachment.invalidModuleField" as *errors.Error

This function is auto-generated.

func AttachmentErrInvalidModuleID

func AttachmentErrInvalidModuleID(mm ...*attachmentActionProps) *errors.Error

AttachmentErrInvalidModuleID returns "compose:attachment.invalidModuleID" as *errors.Error

This function is auto-generated.

func AttachmentErrInvalidNamespaceID

func AttachmentErrInvalidNamespaceID(mm ...*attachmentActionProps) *errors.Error

AttachmentErrInvalidNamespaceID returns "compose:attachment.invalidNamespaceID" as *errors.Error

This function is auto-generated.

func AttachmentErrInvalidPageID

func AttachmentErrInvalidPageID(mm ...*attachmentActionProps) *errors.Error

AttachmentErrInvalidPageID returns "compose:attachment.invalidPageID" as *errors.Error

This function is auto-generated.

func AttachmentErrInvalidRecordID

func AttachmentErrInvalidRecordID(mm ...*attachmentActionProps) *errors.Error

AttachmentErrInvalidRecordID returns "compose:attachment.invalidRecordID" as *errors.Error

This function is auto-generated.

func AttachmentErrModuleNotFound

func AttachmentErrModuleNotFound(mm ...*attachmentActionProps) *errors.Error

AttachmentErrModuleNotFound returns "compose:attachment.moduleNotFound" as *errors.Error

This function is auto-generated.

func AttachmentErrNamespaceNotFound

func AttachmentErrNamespaceNotFound(mm ...*attachmentActionProps) *errors.Error

AttachmentErrNamespaceNotFound returns "compose:attachment.namespaceNotFound" as *errors.Error

This function is auto-generated.

func AttachmentErrNotAllowedToCreate

func AttachmentErrNotAllowedToCreate(mm ...*attachmentActionProps) *errors.Error

AttachmentErrNotAllowedToCreate returns "compose:attachment.notAllowedToCreate" as *errors.Error

This function is auto-generated.

func AttachmentErrNotAllowedToCreateEmptyAttachment

func AttachmentErrNotAllowedToCreateEmptyAttachment(mm ...*attachmentActionProps) *errors.Error

AttachmentErrNotAllowedToCreateEmptyAttachment returns "compose:attachment.notAllowedToCreateEmptyAttachment" as *errors.Error

This function is auto-generated.

func AttachmentErrNotAllowedToCreateRecords

func AttachmentErrNotAllowedToCreateRecords(mm ...*attachmentActionProps) *errors.Error

AttachmentErrNotAllowedToCreateRecords returns "compose:attachment.notAllowedToCreateRecords" as *errors.Error

This function is auto-generated.

func AttachmentErrNotAllowedToListAttachments

func AttachmentErrNotAllowedToListAttachments(mm ...*attachmentActionProps) *errors.Error

AttachmentErrNotAllowedToListAttachments returns "compose:attachment.notAllowedToListAttachments" as *errors.Error

This function is auto-generated.

func AttachmentErrNotAllowedToRead

func AttachmentErrNotAllowedToRead(mm ...*attachmentActionProps) *errors.Error

AttachmentErrNotAllowedToRead returns "compose:attachment.notAllowedToRead" as *errors.Error

This function is auto-generated.

func AttachmentErrNotAllowedToReadNamespace

func AttachmentErrNotAllowedToReadNamespace(mm ...*attachmentActionProps) *errors.Error

AttachmentErrNotAllowedToReadNamespace returns "compose:attachment.notAllowedToReadNamespace" as *errors.Error

This function is auto-generated.

func AttachmentErrNotAllowedToReadPage

func AttachmentErrNotAllowedToReadPage(mm ...*attachmentActionProps) *errors.Error

AttachmentErrNotAllowedToReadPage returns "compose:attachment.notAllowedToReadPage" as *errors.Error

This function is auto-generated.

func AttachmentErrNotAllowedToReadRecord

func AttachmentErrNotAllowedToReadRecord(mm ...*attachmentActionProps) *errors.Error

AttachmentErrNotAllowedToReadRecord returns "compose:attachment.notAllowedToReadRecord" as *errors.Error

This function is auto-generated.

func AttachmentErrNotAllowedToSearch

func AttachmentErrNotAllowedToSearch(mm ...*attachmentActionProps) *errors.Error

AttachmentErrNotAllowedToSearch returns "compose:attachment.notAllowedToSearch" as *errors.Error

This function is auto-generated.

func AttachmentErrNotAllowedToUpdateNamespace

func AttachmentErrNotAllowedToUpdateNamespace(mm ...*attachmentActionProps) *errors.Error

AttachmentErrNotAllowedToUpdateNamespace returns "compose:attachment.notAllowedToUpdateNamespace" as *errors.Error

This function is auto-generated.

func AttachmentErrNotAllowedToUpdatePage

func AttachmentErrNotAllowedToUpdatePage(mm ...*attachmentActionProps) *errors.Error

AttachmentErrNotAllowedToUpdatePage returns "compose:attachment.notAllowedToUpdatePage" as *errors.Error

This function is auto-generated.

func AttachmentErrNotAllowedToUpdateRecord

func AttachmentErrNotAllowedToUpdateRecord(mm ...*attachmentActionProps) *errors.Error

AttachmentErrNotAllowedToUpdateRecord returns "compose:attachment.notAllowedToUpdateRecord" as *errors.Error

This function is auto-generated.

func AttachmentErrNotAllowedToUploadThisType

func AttachmentErrNotAllowedToUploadThisType(mm ...*attachmentActionProps) *errors.Error

AttachmentErrNotAllowedToUploadThisType returns "compose:attachment.notAllowedToUploadThisType" as *errors.Error

This function is auto-generated.

func AttachmentErrNotFound

func AttachmentErrNotFound(mm ...*attachmentActionProps) *errors.Error

AttachmentErrNotFound returns "compose:attachment.notFound" as *errors.Error

This function is auto-generated.

func AttachmentErrPageNotFound

func AttachmentErrPageNotFound(mm ...*attachmentActionProps) *errors.Error

AttachmentErrPageNotFound returns "compose:attachment.pageNotFound" as *errors.Error

This function is auto-generated.

func AttachmentErrRecordNotFound

func AttachmentErrRecordNotFound(mm ...*attachmentActionProps) *errors.Error

AttachmentErrRecordNotFound returns "compose:attachment.recordNotFound" as *errors.Error

This function is auto-generated.

func AttachmentErrTooLarge

func AttachmentErrTooLarge(mm ...*attachmentActionProps) *errors.Error

AttachmentErrTooLarge returns "compose:attachment.tooLarge" as *errors.Error

This function is auto-generated.

func CalcRecordOwner

func CalcRecordOwner(current, new, invoker uint64) uint64

func Chart

func Chart() *chart

func ChartActionCreate

func ChartActionCreate(props ...*chartActionProps) *chartAction

ChartActionCreate returns "compose:chart.create" action

This function is auto-generated.

func ChartActionDelete

func ChartActionDelete(props ...*chartActionProps) *chartAction

ChartActionDelete returns "compose:chart.delete" action

This function is auto-generated.

func ChartActionLookup

func ChartActionLookup(props ...*chartActionProps) *chartAction

ChartActionLookup returns "compose:chart.lookup" action

This function is auto-generated.

func ChartActionReorder

func ChartActionReorder(props ...*chartActionProps) *chartAction

ChartActionReorder returns "compose:chart.reorder" action

This function is auto-generated.

func ChartActionSearch

func ChartActionSearch(props ...*chartActionProps) *chartAction

ChartActionSearch returns "compose:chart.search" action

This function is auto-generated.

func ChartActionUndelete

func ChartActionUndelete(props ...*chartActionProps) *chartAction

ChartActionUndelete returns "compose:chart.undelete" action

This function is auto-generated.

func ChartActionUpdate

func ChartActionUpdate(props ...*chartActionProps) *chartAction

ChartActionUpdate returns "compose:chart.update" action

This function is auto-generated.

func ChartErrGeneric

func ChartErrGeneric(mm ...*chartActionProps) *errors.Error

ChartErrGeneric returns "compose:chart.generic" as *errors.Error

This function is auto-generated.

func ChartErrHandleNotUnique

func ChartErrHandleNotUnique(mm ...*chartActionProps) *errors.Error

ChartErrHandleNotUnique returns "compose:chart.handleNotUnique" as *errors.Error

This function is auto-generated.

func ChartErrInvalidHandle

func ChartErrInvalidHandle(mm ...*chartActionProps) *errors.Error

ChartErrInvalidHandle returns "compose:chart.invalidHandle" as *errors.Error

This function is auto-generated.

func ChartErrInvalidID

func ChartErrInvalidID(mm ...*chartActionProps) *errors.Error

ChartErrInvalidID returns "compose:chart.invalidID" as *errors.Error

This function is auto-generated.

func ChartErrInvalidNamespaceID

func ChartErrInvalidNamespaceID(mm ...*chartActionProps) *errors.Error

ChartErrInvalidNamespaceID returns "compose:chart.invalidNamespaceID" as *errors.Error

This function is auto-generated.

func ChartErrModuleNotFound

func ChartErrModuleNotFound(mm ...*chartActionProps) *errors.Error

ChartErrModuleNotFound returns "compose:chart.moduleNotFound" as *errors.Error

This function is auto-generated.

func ChartErrNamespaceNotFound

func ChartErrNamespaceNotFound(mm ...*chartActionProps) *errors.Error

ChartErrNamespaceNotFound returns "compose:chart.namespaceNotFound" as *errors.Error

This function is auto-generated.

func ChartErrNotAllowedToCreate

func ChartErrNotAllowedToCreate(mm ...*chartActionProps) *errors.Error

ChartErrNotAllowedToCreate returns "compose:chart.notAllowedToCreate" as *errors.Error

This function is auto-generated.

func ChartErrNotAllowedToDelete

func ChartErrNotAllowedToDelete(mm ...*chartActionProps) *errors.Error

ChartErrNotAllowedToDelete returns "compose:chart.notAllowedToDelete" as *errors.Error

This function is auto-generated.

func ChartErrNotAllowedToRead

func ChartErrNotAllowedToRead(mm ...*chartActionProps) *errors.Error

ChartErrNotAllowedToRead returns "compose:chart.notAllowedToRead" as *errors.Error

This function is auto-generated.

func ChartErrNotAllowedToReadNamespace

func ChartErrNotAllowedToReadNamespace(mm ...*chartActionProps) *errors.Error

ChartErrNotAllowedToReadNamespace returns "compose:chart.notAllowedToReadNamespace" as *errors.Error

This function is auto-generated.

func ChartErrNotAllowedToSearch

func ChartErrNotAllowedToSearch(mm ...*chartActionProps) *errors.Error

ChartErrNotAllowedToSearch returns "compose:chart.notAllowedToSearch" as *errors.Error

This function is auto-generated.

func ChartErrNotAllowedToUndelete

func ChartErrNotAllowedToUndelete(mm ...*chartActionProps) *errors.Error

ChartErrNotAllowedToUndelete returns "compose:chart.notAllowedToUndelete" as *errors.Error

This function is auto-generated.

func ChartErrNotAllowedToUpdate

func ChartErrNotAllowedToUpdate(mm ...*chartActionProps) *errors.Error

ChartErrNotAllowedToUpdate returns "compose:chart.notAllowedToUpdate" as *errors.Error

This function is auto-generated.

func ChartErrNotFound

func ChartErrNotFound(mm ...*chartActionProps) *errors.Error

ChartErrNotFound returns "compose:chart.notFound" as *errors.Error

This function is auto-generated.

func ChartErrStaleData

func ChartErrStaleData(mm ...*chartActionProps) *errors.Error

ChartErrStaleData returns "compose:chart.staleData" as *errors.Error

This function is auto-generated.

func ComposeRecordFilterAC

func ComposeRecordFilterAC(ctx context.Context, ac recordValueAccessController, m *types.Module, rr ...*types.Record)

checks record-value-read access permissions for all module fields and removes unreadable fields from all records

func ComposeRecordFilterChecker

func ComposeRecordFilterChecker(ctx context.Context, ac recordAccessController, m *types.Module) func(*types.Record) (bool, error)

func DalModelReload

func DalModelReload(ctx context.Context, s store.Storer, am schemaAltManager, dmm dalModelManager) (err error)

DalModelReload reloads all defined compose modules into the DAL

func DalModelRemove

func DalModelRemove(ctx context.Context, dmm dalModelManager, mm ...*types.Module) (err error)

Removes a connection from DAL service

func DalModelReplace

func DalModelReplace(ctx context.Context, s store.Storer, am schemaAltManager, dmm dalModelManager, ns *types.Namespace, modules ...*types.Module) (err error)

Replaces all given connections

func DataPrivacy

func DataPrivacy() *dataPrivacy

func ImportSession

func ImportSession() *importSession

func Initialize

func Initialize(ctx context.Context, log *zap.Logger, s store.Storer, c Config) (err error)

Initialize compose-only services

func Module

func Module(am schemaAltManager) *module

func ModuleActionCreate

func ModuleActionCreate(props ...*moduleActionProps) *moduleAction

ModuleActionCreate returns "compose:module.create" action

This function is auto-generated.

func ModuleActionDelete

func ModuleActionDelete(props ...*moduleActionProps) *moduleAction

ModuleActionDelete returns "compose:module.delete" action

This function is auto-generated.

func ModuleActionLookup

func ModuleActionLookup(props ...*moduleActionProps) *moduleAction

ModuleActionLookup returns "compose:module.lookup" action

This function is auto-generated.

func ModuleActionSearch

func ModuleActionSearch(props ...*moduleActionProps) *moduleAction

ModuleActionSearch returns "compose:module.search" action

This function is auto-generated.

func ModuleActionUndelete

func ModuleActionUndelete(props ...*moduleActionProps) *moduleAction

ModuleActionUndelete returns "compose:module.undelete" action

This function is auto-generated.

func ModuleActionUpdate

func ModuleActionUpdate(props ...*moduleActionProps) *moduleAction

ModuleActionUpdate returns "compose:module.update" action

This function is auto-generated.

func ModuleErrDedupConfigurationInvalidMissingConstraint

func ModuleErrDedupConfigurationInvalidMissingConstraint(mm ...*moduleActionProps) *errors.Error

ModuleErrDedupConfigurationInvalidMissingConstraint returns "compose:module.dedupConfigurationInvalidMissingConstraint" as *errors.Error

This function is auto-generated.

func ModuleErrFieldNameReserved

func ModuleErrFieldNameReserved(mm ...*moduleActionProps) *errors.Error

ModuleErrFieldNameReserved returns "compose:module.fieldNameReserved" as *errors.Error

This function is auto-generated.

func ModuleErrGeneric

func ModuleErrGeneric(mm ...*moduleActionProps) *errors.Error

ModuleErrGeneric returns "compose:module.generic" as *errors.Error

This function is auto-generated.

func ModuleErrHandleNotUnique

func ModuleErrHandleNotUnique(mm ...*moduleActionProps) *errors.Error

ModuleErrHandleNotUnique returns "compose:module.handleNotUnique" as *errors.Error

This function is auto-generated.

func ModuleErrInvalidHandle

func ModuleErrInvalidHandle(mm ...*moduleActionProps) *errors.Error

ModuleErrInvalidHandle returns "compose:module.invalidHandle" as *errors.Error

This function is auto-generated.

func ModuleErrInvalidID

func ModuleErrInvalidID(mm ...*moduleActionProps) *errors.Error

ModuleErrInvalidID returns "compose:module.invalidID" as *errors.Error

This function is auto-generated.

func ModuleErrInvalidNamespaceID

func ModuleErrInvalidNamespaceID(mm ...*moduleActionProps) *errors.Error

ModuleErrInvalidNamespaceID returns "compose:module.invalidNamespaceID" as *errors.Error

This function is auto-generated.

func ModuleErrNameNotUnique

func ModuleErrNameNotUnique(mm ...*moduleActionProps) *errors.Error

ModuleErrNameNotUnique returns "compose:module.nameNotUnique" as *errors.Error

This function is auto-generated.

func ModuleErrNamespaceNotFound

func ModuleErrNamespaceNotFound(mm ...*moduleActionProps) *errors.Error

ModuleErrNamespaceNotFound returns "compose:module.namespaceNotFound" as *errors.Error

This function is auto-generated.

func ModuleErrNotAllowedToCreate

func ModuleErrNotAllowedToCreate(mm ...*moduleActionProps) *errors.Error

ModuleErrNotAllowedToCreate returns "compose:module.notAllowedToCreate" as *errors.Error

This function is auto-generated.

func ModuleErrNotAllowedToDelete

func ModuleErrNotAllowedToDelete(mm ...*moduleActionProps) *errors.Error

ModuleErrNotAllowedToDelete returns "compose:module.notAllowedToDelete" as *errors.Error

This function is auto-generated.

func ModuleErrNotAllowedToListModules

func ModuleErrNotAllowedToListModules(mm ...*moduleActionProps) *errors.Error

ModuleErrNotAllowedToListModules returns "compose:module.notAllowedToListModules" as *errors.Error

This function is auto-generated.

func ModuleErrNotAllowedToRead

func ModuleErrNotAllowedToRead(mm ...*moduleActionProps) *errors.Error

ModuleErrNotAllowedToRead returns "compose:module.notAllowedToRead" as *errors.Error

This function is auto-generated.

func ModuleErrNotAllowedToReadNamespace

func ModuleErrNotAllowedToReadNamespace(mm ...*moduleActionProps) *errors.Error

ModuleErrNotAllowedToReadNamespace returns "compose:module.notAllowedToReadNamespace" as *errors.Error

This function is auto-generated.

func ModuleErrNotAllowedToSearch

func ModuleErrNotAllowedToSearch(mm ...*moduleActionProps) *errors.Error

ModuleErrNotAllowedToSearch returns "compose:module.notAllowedToSearch" as *errors.Error

This function is auto-generated.

func ModuleErrNotAllowedToUndelete

func ModuleErrNotAllowedToUndelete(mm ...*moduleActionProps) *errors.Error

ModuleErrNotAllowedToUndelete returns "compose:module.notAllowedToUndelete" as *errors.Error

This function is auto-generated.

func ModuleErrNotAllowedToUpdate

func ModuleErrNotAllowedToUpdate(mm ...*moduleActionProps) *errors.Error

ModuleErrNotAllowedToUpdate returns "compose:module.notAllowedToUpdate" as *errors.Error

This function is auto-generated.

func ModuleErrNotFound

func ModuleErrNotFound(mm ...*moduleActionProps) *errors.Error

ModuleErrNotFound returns "compose:module.notFound" as *errors.Error

This function is auto-generated.

func ModuleErrStaleData

func ModuleErrStaleData(mm ...*moduleActionProps) *errors.Error

ModuleErrStaleData returns "compose:module.staleData" as *errors.Error

This function is auto-generated.

func ModuleToModel

func ModuleToModel(ns *types.Namespace, mod *types.Module, inhIdent string) (model *dal.Model, err error)

ModuleToModel converts a module with fields to DAL model and attributes

note: this function does not do any partition placeholder replacements

func ModulesToModelSet

func ModulesToModelSet(dmm dalModelManager, ns *types.Namespace, mm ...*types.Module) (out dal.ModelSet, err error)

ModulesToModelSet takes a modules for a namespace and converts all of them into a model set for the DAL

Ident partition placeholders are replaced here as well alongside with the revision models where revisions are enabled

func Namespace

func Namespace() *namespace

func NamespaceActionClone

func NamespaceActionClone(props ...*namespaceActionProps) *namespaceAction

NamespaceActionClone returns "compose:namespace.clone" action

This function is auto-generated.

func NamespaceActionCreate

func NamespaceActionCreate(props ...*namespaceActionProps) *namespaceAction

NamespaceActionCreate returns "compose:namespace.create" action

This function is auto-generated.

func NamespaceActionDelete

func NamespaceActionDelete(props ...*namespaceActionProps) *namespaceAction

NamespaceActionDelete returns "compose:namespace.delete" action

This function is auto-generated.

func NamespaceActionExport

func NamespaceActionExport(props ...*namespaceActionProps) *namespaceAction

NamespaceActionExport returns "compose:namespace.export" action

This function is auto-generated.

func NamespaceActionImportInit

func NamespaceActionImportInit(props ...*namespaceActionProps) *namespaceAction

NamespaceActionImportInit returns "compose:namespace.importInit" action

This function is auto-generated.

func NamespaceActionImportRun

func NamespaceActionImportRun(props ...*namespaceActionProps) *namespaceAction

NamespaceActionImportRun returns "compose:namespace.importRun" action

This function is auto-generated.

func NamespaceActionLookup

func NamespaceActionLookup(props ...*namespaceActionProps) *namespaceAction

NamespaceActionLookup returns "compose:namespace.lookup" action

This function is auto-generated.

func NamespaceActionReorder

func NamespaceActionReorder(props ...*namespaceActionProps) *namespaceAction

NamespaceActionReorder returns "compose:namespace.reorder" action

This function is auto-generated.

func NamespaceActionSearch

func NamespaceActionSearch(props ...*namespaceActionProps) *namespaceAction

NamespaceActionSearch returns "compose:namespace.search" action

This function is auto-generated.

func NamespaceActionUndelete

func NamespaceActionUndelete(props ...*namespaceActionProps) *namespaceAction

NamespaceActionUndelete returns "compose:namespace.undelete" action

This function is auto-generated.

func NamespaceActionUpdate

func NamespaceActionUpdate(props ...*namespaceActionProps) *namespaceAction

NamespaceActionUpdate returns "compose:namespace.update" action

This function is auto-generated.

func NamespaceErrCloneMultiple

func NamespaceErrCloneMultiple(mm ...*namespaceActionProps) *errors.Error

NamespaceErrCloneMultiple returns "compose:namespace.cloneMultiple" as *errors.Error

This function is auto-generated.

func NamespaceErrGeneric

func NamespaceErrGeneric(mm ...*namespaceActionProps) *errors.Error

NamespaceErrGeneric returns "compose:namespace.generic" as *errors.Error

This function is auto-generated.

func NamespaceErrHandleNotUnique

func NamespaceErrHandleNotUnique(mm ...*namespaceActionProps) *errors.Error

NamespaceErrHandleNotUnique returns "compose:namespace.handleNotUnique" as *errors.Error

This function is auto-generated.

func NamespaceErrImportMissingNamespace

func NamespaceErrImportMissingNamespace(mm ...*namespaceActionProps) *errors.Error

NamespaceErrImportMissingNamespace returns "compose:namespace.importMissingNamespace" as *errors.Error

This function is auto-generated.

func NamespaceErrImportSessionNotFound

func NamespaceErrImportSessionNotFound(mm ...*namespaceActionProps) *errors.Error

NamespaceErrImportSessionNotFound returns "compose:namespace.importSessionNotFound" as *errors.Error

This function is auto-generated.

func NamespaceErrInvalidHandle

func NamespaceErrInvalidHandle(mm ...*namespaceActionProps) *errors.Error

NamespaceErrInvalidHandle returns "compose:namespace.invalidHandle" as *errors.Error

This function is auto-generated.

func NamespaceErrInvalidID

func NamespaceErrInvalidID(mm ...*namespaceActionProps) *errors.Error

NamespaceErrInvalidID returns "compose:namespace.invalidID" as *errors.Error

This function is auto-generated.

func NamespaceErrNotAllowedToCreate

func NamespaceErrNotAllowedToCreate(mm ...*namespaceActionProps) *errors.Error

NamespaceErrNotAllowedToCreate returns "compose:namespace.notAllowedToCreate" as *errors.Error

This function is auto-generated.

func NamespaceErrNotAllowedToDelete

func NamespaceErrNotAllowedToDelete(mm ...*namespaceActionProps) *errors.Error

NamespaceErrNotAllowedToDelete returns "compose:namespace.notAllowedToDelete" as *errors.Error

This function is auto-generated.

func NamespaceErrNotAllowedToRead

func NamespaceErrNotAllowedToRead(mm ...*namespaceActionProps) *errors.Error

NamespaceErrNotAllowedToRead returns "compose:namespace.notAllowedToRead" as *errors.Error

This function is auto-generated.

func NamespaceErrNotAllowedToSearch

func NamespaceErrNotAllowedToSearch(mm ...*namespaceActionProps) *errors.Error

NamespaceErrNotAllowedToSearch returns "compose:namespace.notAllowedToSearch" as *errors.Error

This function is auto-generated.

func NamespaceErrNotAllowedToUndelete

func NamespaceErrNotAllowedToUndelete(mm ...*namespaceActionProps) *errors.Error

NamespaceErrNotAllowedToUndelete returns "compose:namespace.notAllowedToUndelete" as *errors.Error

This function is auto-generated.

func NamespaceErrNotAllowedToUpdate

func NamespaceErrNotAllowedToUpdate(mm ...*namespaceActionProps) *errors.Error

NamespaceErrNotAllowedToUpdate returns "compose:namespace.notAllowedToUpdate" as *errors.Error

This function is auto-generated.

func NamespaceErrNotFound

func NamespaceErrNotFound(mm ...*namespaceActionProps) *errors.Error

NamespaceErrNotFound returns "compose:namespace.notFound" as *errors.Error

This function is auto-generated.

func NamespaceErrStaleData

func NamespaceErrStaleData(mm ...*namespaceActionProps) *errors.Error

NamespaceErrStaleData returns "compose:namespace.staleData" as *errors.Error

This function is auto-generated.

func NamespaceErrUnsupportedExportFormat

func NamespaceErrUnsupportedExportFormat(mm ...*namespaceActionProps) *errors.Error

NamespaceErrUnsupportedExportFormat returns "compose:namespace.unsupportedExportFormat" as *errors.Error

This function is auto-generated.

func NamespaceErrUnsupportedImportFormat

func NamespaceErrUnsupportedImportFormat(mm ...*namespaceActionProps) *errors.Error

NamespaceErrUnsupportedImportFormat returns "compose:namespace.unsupportedImportFormat" as *errors.Error

This function is auto-generated.

func Notification

func Notification(uf userFinder) *notification

func NotificationActionAttachmentDownload

func NotificationActionAttachmentDownload(props ...*notificationActionProps) *notificationAction

NotificationActionAttachmentDownload returns "compose:notification.attachmentDownload" action

This function is auto-generated.

func NotificationActionSend

func NotificationActionSend(props ...*notificationActionProps) *notificationAction

NotificationActionSend returns "compose:notification.send" action

This function is auto-generated.

func NotificationErrFailedToDownloadAttachment

func NotificationErrFailedToDownloadAttachment(mm ...*notificationActionProps) *errors.Error

NotificationErrFailedToDownloadAttachment returns "compose:notification.failedToDownloadAttachment" as *errors.Error

This function is auto-generated.

func NotificationErrFailedToLoadUser

func NotificationErrFailedToLoadUser(mm ...*notificationActionProps) *errors.Error

NotificationErrFailedToLoadUser returns "compose:notification.failedToLoadUser" as *errors.Error

This function is auto-generated.

func NotificationErrGeneric

func NotificationErrGeneric(mm ...*notificationActionProps) *errors.Error

NotificationErrGeneric returns "compose:notification.generic" as *errors.Error

This function is auto-generated.

func NotificationErrInvalidReceipientFormat

func NotificationErrInvalidReceipientFormat(mm ...*notificationActionProps) *errors.Error

NotificationErrInvalidReceipientFormat returns "compose:notification.invalidReceipientFormat" as *errors.Error

This function is auto-generated.

func NotificationErrNoRecipients

func NotificationErrNoRecipients(mm ...*notificationActionProps) *errors.Error

NotificationErrNoRecipients returns "compose:notification.noRecipients" as *errors.Error

This function is auto-generated.

func Page

func Page() *page

func PageActionCreate

func PageActionCreate(props ...*pageActionProps) *pageAction

PageActionCreate returns "compose:page.create" action

This function is auto-generated.

func PageActionDelete

func PageActionDelete(props ...*pageActionProps) *pageAction

PageActionDelete returns "compose:page.delete" action

This function is auto-generated.

func PageActionLookup

func PageActionLookup(props ...*pageActionProps) *pageAction

PageActionLookup returns "compose:page.lookup" action

This function is auto-generated.

func PageActionReorder

func PageActionReorder(props ...*pageActionProps) *pageAction

PageActionReorder returns "compose:page.reorder" action

This function is auto-generated.

func PageActionSearch

func PageActionSearch(props ...*pageActionProps) *pageAction

PageActionSearch returns "compose:page.search" action

This function is auto-generated.

func PageActionUndelete

func PageActionUndelete(props ...*pageActionProps) *pageAction

PageActionUndelete returns "compose:page.undelete" action

This function is auto-generated.

func PageActionUpdate

func PageActionUpdate(props ...*pageActionProps) *pageAction

PageActionUpdate returns "compose:page.update" action

This function is auto-generated.

func PageErrDeleteAbortedForPageWithSubpages

func PageErrDeleteAbortedForPageWithSubpages(mm ...*pageActionProps) *errors.Error

PageErrDeleteAbortedForPageWithSubpages returns "compose:page.deleteAbortedForPageWithSubpages" as *errors.Error

This function is auto-generated.

func PageErrGeneric

func PageErrGeneric(mm ...*pageActionProps) *errors.Error

PageErrGeneric returns "compose:page.generic" as *errors.Error

This function is auto-generated.

func PageErrHandleNotUnique

func PageErrHandleNotUnique(mm ...*pageActionProps) *errors.Error

PageErrHandleNotUnique returns "compose:page.handleNotUnique" as *errors.Error

This function is auto-generated.

func PageErrInvalidHandle

func PageErrInvalidHandle(mm ...*pageActionProps) *errors.Error

PageErrInvalidHandle returns "compose:page.invalidHandle" as *errors.Error

This function is auto-generated.

func PageErrInvalidID

func PageErrInvalidID(mm ...*pageActionProps) *errors.Error

PageErrInvalidID returns "compose:page.invalidID" as *errors.Error

This function is auto-generated.

func PageErrInvalidNamespaceID

func PageErrInvalidNamespaceID(mm ...*pageActionProps) *errors.Error

PageErrInvalidNamespaceID returns "compose:page.invalidNamespaceID" as *errors.Error

This function is auto-generated.

func PageErrModuleNotFound

func PageErrModuleNotFound(mm ...*pageActionProps) *errors.Error

PageErrModuleNotFound returns "compose:page.moduleNotFound" as *errors.Error

This function is auto-generated.

func PageErrNamespaceNotFound

func PageErrNamespaceNotFound(mm ...*pageActionProps) *errors.Error

PageErrNamespaceNotFound returns "compose:page.namespaceNotFound" as *errors.Error

This function is auto-generated.

func PageErrNotAllowedToCreate

func PageErrNotAllowedToCreate(mm ...*pageActionProps) *errors.Error

PageErrNotAllowedToCreate returns "compose:page.notAllowedToCreate" as *errors.Error

This function is auto-generated.

func PageErrNotAllowedToDelete

func PageErrNotAllowedToDelete(mm ...*pageActionProps) *errors.Error

PageErrNotAllowedToDelete returns "compose:page.notAllowedToDelete" as *errors.Error

This function is auto-generated.

func PageErrNotAllowedToListPages

func PageErrNotAllowedToListPages(mm ...*pageActionProps) *errors.Error

PageErrNotAllowedToListPages returns "compose:page.notAllowedToListPages" as *errors.Error

This function is auto-generated.

func PageErrNotAllowedToRead

func PageErrNotAllowedToRead(mm ...*pageActionProps) *errors.Error

PageErrNotAllowedToRead returns "compose:page.notAllowedToRead" as *errors.Error

This function is auto-generated.

func PageErrNotAllowedToReadNamespace

func PageErrNotAllowedToReadNamespace(mm ...*pageActionProps) *errors.Error

PageErrNotAllowedToReadNamespace returns "compose:page.notAllowedToReadNamespace" as *errors.Error

This function is auto-generated.

func PageErrNotAllowedToSearch

func PageErrNotAllowedToSearch(mm ...*pageActionProps) *errors.Error

PageErrNotAllowedToSearch returns "compose:page.notAllowedToSearch" as *errors.Error

This function is auto-generated.

func PageErrNotAllowedToUndelete

func PageErrNotAllowedToUndelete(mm ...*pageActionProps) *errors.Error

PageErrNotAllowedToUndelete returns "compose:page.notAllowedToUndelete" as *errors.Error

This function is auto-generated.

func PageErrNotAllowedToUpdate

func PageErrNotAllowedToUpdate(mm ...*pageActionProps) *errors.Error

PageErrNotAllowedToUpdate returns "compose:page.notAllowedToUpdate" as *errors.Error

This function is auto-generated.

func PageErrNotFound

func PageErrNotFound(mm ...*pageActionProps) *errors.Error

PageErrNotFound returns "compose:page.notFound" as *errors.Error

This function is auto-generated.

func PageErrStaleData

func PageErrStaleData(mm ...*pageActionProps) *errors.Error

PageErrStaleData returns "compose:page.staleData" as *errors.Error

This function is auto-generated.

func PageErrUnknownDeleteStrategy

func PageErrUnknownDeleteStrategy(mm ...*pageActionProps) *errors.Error

PageErrUnknownDeleteStrategy returns "compose:page.unknownDeleteStrategy" as *errors.Error

This function is auto-generated.

func PageLayout

func PageLayout() *pageLayout

func PageLayoutActionCreate

func PageLayoutActionCreate(props ...*pageLayoutActionProps) *pageLayoutAction

PageLayoutActionCreate returns "compose:page-layout.create" action

This function is auto-generated.

func PageLayoutActionDelete

func PageLayoutActionDelete(props ...*pageLayoutActionProps) *pageLayoutAction

PageLayoutActionDelete returns "compose:page-layout.delete" action

This function is auto-generated.

func PageLayoutActionLookup

func PageLayoutActionLookup(props ...*pageLayoutActionProps) *pageLayoutAction

PageLayoutActionLookup returns "compose:page-layout.lookup" action

This function is auto-generated.

func PageLayoutActionReorder

func PageLayoutActionReorder(props ...*pageLayoutActionProps) *pageLayoutAction

PageLayoutActionReorder returns "compose:page-layout.reorder" action

This function is auto-generated.

func PageLayoutActionSearch

func PageLayoutActionSearch(props ...*pageLayoutActionProps) *pageLayoutAction

PageLayoutActionSearch returns "compose:page-layout.search" action

This function is auto-generated.

func PageLayoutActionUndelete

func PageLayoutActionUndelete(props ...*pageLayoutActionProps) *pageLayoutAction

PageLayoutActionUndelete returns "compose:page-layout.undelete" action

This function is auto-generated.

func PageLayoutActionUpdate

func PageLayoutActionUpdate(props ...*pageLayoutActionProps) *pageLayoutAction

PageLayoutActionUpdate returns "compose:page-layout.update" action

This function is auto-generated.

func PageLayoutErrGeneric

func PageLayoutErrGeneric(mm ...*pageLayoutActionProps) *errors.Error

PageLayoutErrGeneric returns "compose:page-layout.generic" as *errors.Error

This function is auto-generated.

func PageLayoutErrHandleNotUnique

func PageLayoutErrHandleNotUnique(mm ...*pageLayoutActionProps) *errors.Error

PageLayoutErrHandleNotUnique returns "compose:page-layout.handleNotUnique" as *errors.Error

This function is auto-generated.

func PageLayoutErrInvalidHandle

func PageLayoutErrInvalidHandle(mm ...*pageLayoutActionProps) *errors.Error

PageLayoutErrInvalidHandle returns "compose:page-layout.invalidHandle" as *errors.Error

This function is auto-generated.

func PageLayoutErrInvalidID

func PageLayoutErrInvalidID(mm ...*pageLayoutActionProps) *errors.Error

PageLayoutErrInvalidID returns "compose:page-layout.invalidID" as *errors.Error

This function is auto-generated.

func PageLayoutErrInvalidNamespaceID

func PageLayoutErrInvalidNamespaceID(mm ...*pageLayoutActionProps) *errors.Error

PageLayoutErrInvalidNamespaceID returns "compose:page-layout.invalidNamespaceID" as *errors.Error

This function is auto-generated.

func PageLayoutErrModuleNotFound

func PageLayoutErrModuleNotFound(mm ...*pageLayoutActionProps) *errors.Error

PageLayoutErrModuleNotFound returns "compose:page-layout.moduleNotFound" as *errors.Error

This function is auto-generated.

func PageLayoutErrNamespaceNotFound

func PageLayoutErrNamespaceNotFound(mm ...*pageLayoutActionProps) *errors.Error

PageLayoutErrNamespaceNotFound returns "compose:page-layout.namespaceNotFound" as *errors.Error

This function is auto-generated.

func PageLayoutErrNotAllowedToCreate

func PageLayoutErrNotAllowedToCreate(mm ...*pageLayoutActionProps) *errors.Error

PageLayoutErrNotAllowedToCreate returns "compose:page-layout.notAllowedToCreate" as *errors.Error

This function is auto-generated.

func PageLayoutErrNotAllowedToDelete

func PageLayoutErrNotAllowedToDelete(mm ...*pageLayoutActionProps) *errors.Error

PageLayoutErrNotAllowedToDelete returns "compose:page-layout.notAllowedToDelete" as *errors.Error

This function is auto-generated.

func PageLayoutErrNotAllowedToListPageLayouts

func PageLayoutErrNotAllowedToListPageLayouts(mm ...*pageLayoutActionProps) *errors.Error

PageLayoutErrNotAllowedToListPageLayouts returns "compose:page-layout.notAllowedToListPageLayouts" as *errors.Error

This function is auto-generated.

func PageLayoutErrNotAllowedToRead

func PageLayoutErrNotAllowedToRead(mm ...*pageLayoutActionProps) *errors.Error

PageLayoutErrNotAllowedToRead returns "compose:page-layout.notAllowedToRead" as *errors.Error

This function is auto-generated.

func PageLayoutErrNotAllowedToSearch

func PageLayoutErrNotAllowedToSearch(mm ...*pageLayoutActionProps) *errors.Error

PageLayoutErrNotAllowedToSearch returns "compose:page-layout.notAllowedToSearch" as *errors.Error

This function is auto-generated.

func PageLayoutErrNotAllowedToUndelete

func PageLayoutErrNotAllowedToUndelete(mm ...*pageLayoutActionProps) *errors.Error

PageLayoutErrNotAllowedToUndelete returns "compose:page-layout.notAllowedToUndelete" as *errors.Error

This function is auto-generated.

func PageLayoutErrNotAllowedToUpdate

func PageLayoutErrNotAllowedToUpdate(mm ...*pageLayoutActionProps) *errors.Error

PageLayoutErrNotAllowedToUpdate returns "compose:page-layout.notAllowedToUpdate" as *errors.Error

This function is auto-generated.

func PageLayoutErrNotFound

func PageLayoutErrNotFound(mm ...*pageLayoutActionProps) *errors.Error

PageLayoutErrNotFound returns "compose:page-layout.notFound" as *errors.Error

This function is auto-generated.

func PageLayoutErrStaleData

func PageLayoutErrStaleData(mm ...*pageLayoutActionProps) *errors.Error

PageLayoutErrStaleData returns "compose:page-layout.staleData" as *errors.Error

This function is auto-generated.

func Record

func Record() *record

func RecordActionBulk

func RecordActionBulk(props ...*recordActionProps) *recordAction

RecordActionBulk returns "compose:record.bulk" action

This function is auto-generated.

func RecordActionCreate

func RecordActionCreate(props ...*recordActionProps) *recordAction

RecordActionCreate returns "compose:record.create" action

This function is auto-generated.

func RecordActionDelete

func RecordActionDelete(props ...*recordActionProps) *recordAction

RecordActionDelete returns "compose:record.delete" action

This function is auto-generated.

func RecordActionExport

func RecordActionExport(props ...*recordActionProps) *recordAction

RecordActionExport returns "compose:record.export" action

This function is auto-generated.

func RecordActionImport

func RecordActionImport(props ...*recordActionProps) *recordAction

RecordActionImport returns "compose:record.import" action

This function is auto-generated.

func RecordActionIteratorClone

func RecordActionIteratorClone(props ...*recordActionProps) *recordAction

RecordActionIteratorClone returns "compose:record.iteratorClone" action

This function is auto-generated.

func RecordActionIteratorDelete

func RecordActionIteratorDelete(props ...*recordActionProps) *recordAction

RecordActionIteratorDelete returns "compose:record.iteratorDelete" action

This function is auto-generated.

func RecordActionIteratorInvoked

func RecordActionIteratorInvoked(props ...*recordActionProps) *recordAction

RecordActionIteratorInvoked returns "compose:record.iteratorInvoked" action

This function is auto-generated.

func RecordActionIteratorIteration

func RecordActionIteratorIteration(props ...*recordActionProps) *recordAction

RecordActionIteratorIteration returns "compose:record.iteratorIteration" action

This function is auto-generated.

func RecordActionIteratorUndelete

func RecordActionIteratorUndelete(props ...*recordActionProps) *recordAction

RecordActionIteratorUndelete returns "compose:record.iteratorUndelete" action

This function is auto-generated.

func RecordActionIteratorUpdate

func RecordActionIteratorUpdate(props ...*recordActionProps) *recordAction

RecordActionIteratorUpdate returns "compose:record.iteratorUpdate" action

This function is auto-generated.

func RecordActionLookup

func RecordActionLookup(props ...*recordActionProps) *recordAction

RecordActionLookup returns "compose:record.lookup" action

This function is auto-generated.

func RecordActionOrganize

func RecordActionOrganize(props ...*recordActionProps) *recordAction

RecordActionOrganize returns "compose:record.organize" action

This function is auto-generated.

func RecordActionPatch

func RecordActionPatch(props ...*recordActionProps) *recordAction

RecordActionPatch returns "compose:record.patch" action

This function is auto-generated.

func RecordActionReport

func RecordActionReport(props ...*recordActionProps) *recordAction

RecordActionReport returns "compose:record.report" action

This function is auto-generated.

func RecordActionSearch

func RecordActionSearch(props ...*recordActionProps) *recordAction

RecordActionSearch returns "compose:record.search" action

This function is auto-generated.

func RecordActionSearchRevisions

func RecordActionSearchRevisions(props ...*recordActionProps) *recordAction

RecordActionSearchRevisions returns "compose:record.searchRevisions" action

This function is auto-generated.

func RecordActionSearchSensitive

func RecordActionSearchSensitive(props ...*recordActionProps) *recordAction

RecordActionSearchSensitive returns "compose:record.searchSensitive" action

This function is auto-generated.

func RecordActionUndelete

func RecordActionUndelete(props ...*recordActionProps) *recordAction

RecordActionUndelete returns "compose:record.undelete" action

This function is auto-generated.

func RecordActionUpdate

func RecordActionUpdate(props ...*recordActionProps) *recordAction

RecordActionUpdate returns "compose:record.update" action

This function is auto-generated.

func RecordErrFieldNotFound

func RecordErrFieldNotFound(mm ...*recordActionProps) *errors.Error

RecordErrFieldNotFound returns "compose:record.fieldNotFound" as *errors.Error

This function is auto-generated.

func RecordErrGeneric

func RecordErrGeneric(mm ...*recordActionProps) *errors.Error

RecordErrGeneric returns "compose:record.generic" as *errors.Error

This function is auto-generated.

func RecordErrImportSessionAlreadActive

func RecordErrImportSessionAlreadActive(mm ...*recordActionProps) *errors.Error

RecordErrImportSessionAlreadActive returns "compose:record.importSessionAlreadActive" as *errors.Error

This function is auto-generated.

func RecordErrInvalidGroupFieldConfigMultiValue

func RecordErrInvalidGroupFieldConfigMultiValue(mm ...*recordActionProps) *errors.Error

RecordErrInvalidGroupFieldConfigMultiValue returns "compose:record.invalidGroupFieldConfigMultiValue" as *errors.Error

This function is auto-generated.

func RecordErrInvalidID

func RecordErrInvalidID(mm ...*recordActionProps) *errors.Error

RecordErrInvalidID returns "compose:record.invalidID" as *errors.Error

This function is auto-generated.

func RecordErrInvalidModuleID

func RecordErrInvalidModuleID(mm ...*recordActionProps) *errors.Error

RecordErrInvalidModuleID returns "compose:record.invalidModuleID" as *errors.Error

This function is auto-generated.

func RecordErrInvalidNamespaceID

func RecordErrInvalidNamespaceID(mm ...*recordActionProps) *errors.Error

RecordErrInvalidNamespaceID returns "compose:record.invalidNamespaceID" as *errors.Error

This function is auto-generated.

func RecordErrInvalidPositionFieldConfigMultiValue

func RecordErrInvalidPositionFieldConfigMultiValue(mm ...*recordActionProps) *errors.Error

RecordErrInvalidPositionFieldConfigMultiValue returns "compose:record.invalidPositionFieldConfigMultiValue" as *errors.Error

This function is auto-generated.

func RecordErrInvalidPositionFieldKind

func RecordErrInvalidPositionFieldKind(mm ...*recordActionProps) *errors.Error

RecordErrInvalidPositionFieldKind returns "compose:record.invalidPositionFieldKind" as *errors.Error

This function is auto-generated.

func RecordErrInvalidPositionValueType

func RecordErrInvalidPositionValueType(mm ...*recordActionProps) *errors.Error

RecordErrInvalidPositionValueType returns "compose:record.invalidPositionValueType" as *errors.Error

This function is auto-generated.

func RecordErrInvalidReferenceFormat

func RecordErrInvalidReferenceFormat(mm ...*recordActionProps) *errors.Error

RecordErrInvalidReferenceFormat returns "compose:record.invalidReferenceFormat" as *errors.Error

This function is auto-generated.

func RecordErrInvalidValueStructure

func RecordErrInvalidValueStructure(mm ...*recordActionProps) *errors.Error

RecordErrInvalidValueStructure returns "compose:record.invalidValueStructure" as *errors.Error

This function is auto-generated.

func RecordErrMissingGroupField

func RecordErrMissingGroupField(mm ...*recordActionProps) *errors.Error

RecordErrMissingGroupField returns "compose:record.missingGroupField" as *errors.Error

This function is auto-generated.

func RecordErrMissingPositionField

func RecordErrMissingPositionField(mm ...*recordActionProps) *errors.Error

RecordErrMissingPositionField returns "compose:record.missingPositionField" as *errors.Error

This function is auto-generated.

func RecordErrModuleNotFoundModule

func RecordErrModuleNotFoundModule(mm ...*recordActionProps) *errors.Error

RecordErrModuleNotFoundModule returns "compose:record.moduleNotFoundModule" as *errors.Error

This function is auto-generated.

func RecordErrNamespaceNotFound

func RecordErrNamespaceNotFound(mm ...*recordActionProps) *errors.Error

RecordErrNamespaceNotFound returns "compose:record.namespaceNotFound" as *errors.Error

This function is auto-generated.

func RecordErrNotAllowedToChangeFieldValue

func RecordErrNotAllowedToChangeFieldValue(mm ...*recordActionProps) *errors.Error

RecordErrNotAllowedToChangeFieldValue returns "compose:record.notAllowedToChangeFieldValue" as *errors.Error

This function is auto-generated.

func RecordErrNotAllowedToCreate

func RecordErrNotAllowedToCreate(mm ...*recordActionProps) *errors.Error

RecordErrNotAllowedToCreate returns "compose:record.notAllowedToCreate" as *errors.Error

This function is auto-generated.

func RecordErrNotAllowedToDelete

func RecordErrNotAllowedToDelete(mm ...*recordActionProps) *errors.Error

RecordErrNotAllowedToDelete returns "compose:record.notAllowedToDelete" as *errors.Error

This function is auto-generated.

func RecordErrNotAllowedToListRecords

func RecordErrNotAllowedToListRecords(mm ...*recordActionProps) *errors.Error

RecordErrNotAllowedToListRecords returns "compose:record.notAllowedToListRecords" as *errors.Error

This function is auto-generated.

func RecordErrNotAllowedToRead

func RecordErrNotAllowedToRead(mm ...*recordActionProps) *errors.Error

RecordErrNotAllowedToRead returns "compose:record.notAllowedToRead" as *errors.Error

This function is auto-generated.

func RecordErrNotAllowedToReadModule

func RecordErrNotAllowedToReadModule(mm ...*recordActionProps) *errors.Error

RecordErrNotAllowedToReadModule returns "compose:record.notAllowedToReadModule" as *errors.Error

This function is auto-generated.

func RecordErrNotAllowedToReadNamespace

func RecordErrNotAllowedToReadNamespace(mm ...*recordActionProps) *errors.Error

RecordErrNotAllowedToReadNamespace returns "compose:record.notAllowedToReadNamespace" as *errors.Error

This function is auto-generated.

func RecordErrNotAllowedToSearch

func RecordErrNotAllowedToSearch(mm ...*recordActionProps) *errors.Error

RecordErrNotAllowedToSearch returns "compose:record.notAllowedToSearch" as *errors.Error

This function is auto-generated.

func RecordErrNotAllowedToSearchRevisions

func RecordErrNotAllowedToSearchRevisions(mm ...*recordActionProps) *errors.Error

RecordErrNotAllowedToSearchRevisions returns "compose:record.notAllowedToSearchRevisions" as *errors.Error

This function is auto-generated.

func RecordErrNotAllowedToUndelete

func RecordErrNotAllowedToUndelete(mm ...*recordActionProps) *errors.Error

RecordErrNotAllowedToUndelete returns "compose:record.notAllowedToUndelete" as *errors.Error

This function is auto-generated.

func RecordErrNotAllowedToUpdate

func RecordErrNotAllowedToUpdate(mm ...*recordActionProps) *errors.Error

RecordErrNotAllowedToUpdate returns "compose:record.notAllowedToUpdate" as *errors.Error

This function is auto-generated.

func RecordErrNotFound

func RecordErrNotFound(mm ...*recordActionProps) *errors.Error

RecordErrNotFound returns "compose:record.notFound" as *errors.Error

This function is auto-generated.

func RecordErrRevisionsDisabledOnModule

func RecordErrRevisionsDisabledOnModule(mm ...*recordActionProps) *errors.Error

RecordErrRevisionsDisabledOnModule returns "compose:record.revisionsDisabledOnModule" as *errors.Error

This function is auto-generated.

func RecordErrStaleData

func RecordErrStaleData(mm ...*recordActionProps) *errors.Error

RecordErrStaleData returns "compose:record.staleData" as *errors.Error

This function is auto-generated.

func RecordErrUnknownBulkOperation

func RecordErrUnknownBulkOperation(mm ...*recordActionProps) *errors.Error

RecordErrUnknownBulkOperation returns "compose:record.unknownBulkOperation" as *errors.Error

This function is auto-generated.

func RecordErrValueInput

func RecordErrValueInput(mm ...*recordActionProps) *errors.Error

RecordErrValueInput returns "compose:record.valueInput" as *errors.Error

This function is auto-generated.

func RecordPreparer

func RecordPreparer(ctx context.Context, s store.Storer, ss recordValuesSanitizer, vv recordValuesValidator, ff recordValuesFormatter, m *types.Module, new *types.Record) *types.RecordValueErrorSet

func RecordValueDefaults

func RecordValueDefaults(m *types.Module, vv types.RecordValueSet) (out types.RecordValueSet)

func RecordValueSanitization

func RecordValueSanitization(m *types.Module, vv types.RecordValueSet) (err error)

RecordValueSanitization does basic field and format validation

Received values must fit the data model: on unknown fields or multi/single value mismatch we return an error

Record value errors is intentionally NOT used here; if input fails here we can assume that form builder (or whatever it was that assembled the record values) was misconfigured and will most likely failed to properly parse the record value errors payload too

func RecordValueUpdateOpCheck

func RecordValueUpdateOpCheck(ctx context.Context, ac recordValueAccessController, m *types.Module, vv types.RecordValueSet) *types.RecordValueErrorSet

@todo: ?? this might be a good place for detection too

func RegisterIteratorProviders

func RegisterIteratorProviders()

func ResourceTranslationsManager

func ResourceTranslationsManager(ls locale.Resource) *resourceTranslationsManager

func SetRecordOwner

func SetRecordOwner(ctx context.Context, ac recordManageOwnerAccessController, s store.Storer, old, upd *types.Record, invoker uint64) *types.RecordValueErrorSet

func Watchers

func Watchers(ctx context.Context)

Types

type AttachmentService

type AttachmentService interface {
	FindByID(ctx context.Context, namespaceID, attachmentID uint64) (*types.Attachment, error)
	Find(ctx context.Context, filter types.AttachmentFilter) (types.AttachmentSet, types.AttachmentFilter, error)
	CreatePageAttachment(ctx context.Context, namespaceID uint64, name string, size int64, fh io.ReadSeeker, pageID uint64) (*types.Attachment, error)
	CreateIconAttachment(ctx context.Context, name string, size int64, fh io.ReadSeeker) (*types.Attachment, error)
	CreateRecordAttachment(ctx context.Context, namespaceID uint64, name string, size int64, fh io.ReadSeeker, moduleID, recordID uint64, fieldName string) (*types.Attachment, error)
	CreateNamespaceAttachment(ctx context.Context, name string, size int64, fh io.ReadSeeker) (*types.Attachment, error)
	OpenOriginal(att *types.Attachment) (io.ReadSeekCloser, error)
	OpenPreview(att *types.Attachment) (io.ReadSeekCloser, error)
	DeleteByID(ctx context.Context, namespaceID, attachmentID uint64) error
}

type Config

type Config struct {
	ActionLog        options.ActionLogOpt
	Discovery        options.DiscoveryOpt
	Storage          options.ObjectStoreOpt
	UserFinder       userFinder
	SchemaAltManager schemaAltManager
}

type DataPrivacyService

type DataPrivacyService interface {
	FindModules(ctx context.Context, filter types.PrivacyModuleFilter) (types.PrivacyModuleSet, types.PrivacyModuleFilter, error)
}

type ErrorIndex

type ErrorIndex map[string]int

func (ErrorIndex) Add

func (ei ErrorIndex) Add(err string)

type FailLog

type FailLog struct {
	// Records holds an array of record indexes
	Records          RecordIndex `json:"records"`
	RecordsTruncated bool        `json:"recordsTruncated"`
	// Errors specifies a map of occurred errors & the number of
	Errors ErrorIndex `json:"errors"`
}

type ImportSessionService

type ImportSessionService interface {
	Create(ctx context.Context, f io.ReadSeeker, name, contentType string, namespaceID, moduleID uint64) (*RecordImportSession, error)
	FindByID(ctx context.Context, sessionID uint64) (*RecordImportSession, error)
	DeleteByID(ctx context.Context, sessionID uint64) error
}

type ModuleService

type ModuleService interface {
	FindByID(ctx context.Context, namespaceID, moduleID uint64) (*types.Module, error)
	FindByName(ctx context.Context, namespaceID uint64, name string) (*types.Module, error)
	FindByHandle(ctx context.Context, namespaceID uint64, handle string) (*types.Module, error)
	FindByAny(ctx context.Context, namespaceID uint64, identifier interface{}) (*types.Module, error)
	Find(ctx context.Context, filter types.ModuleFilter) (set types.ModuleSet, f types.ModuleFilter, err error)
	SearchSensitive(ctx context.Context, filter types.PrivacyModuleFilter) (set []types.PrivacyModule, f types.PrivacyModuleFilter, err error)

	Create(ctx context.Context, module *types.Module) (*types.Module, error)
	Update(ctx context.Context, module *types.Module) (*types.Module, error)
	DeleteByID(ctx context.Context, namespaceID, moduleID uint64) error

	// @note probably temporary just so tests are easier
	ReloadDALModels(ctx context.Context) error
}

type NamespaceService

type NamespaceService interface {
	FindByID(ctx context.Context, namespaceID uint64) (*types.Namespace, error)
	FindByHandle(ctx context.Context, handle string) (*types.Namespace, error)
	Find(context.Context, types.NamespaceFilter) (types.NamespaceSet, types.NamespaceFilter, error)
	FindByAny(context.Context, interface{}) (*types.Namespace, error)

	Create(ctx context.Context, namespace *types.Namespace) (*types.Namespace, error)
	Update(ctx context.Context, namespace *types.Namespace) (*types.Namespace, error)
	Clone(ctx context.Context, namespaceID uint64, dup *types.Namespace, decoder func() (envoyx.NodeSet, error)) (ns *types.Namespace, err error)
	ImportInit(ctx context.Context, f multipart.File, size int64) (namespaceImportSession, error)
	ImportRun(ctx context.Context, sessionID uint64, dup *types.Namespace) (ns *types.Namespace, err error)
	DeleteByID(ctx context.Context, namespaceID uint64) error
}

type RecordImportProgress

type RecordImportProgress struct {
	StartedAt  *time.Time `json:"startedAt"`
	FinishedAt *time.Time `json:"finishedAt"`
	EntryCount uint64     `json:"entryCount"`
	Completed  uint64     `json:"completed"`
	Failed     uint64     `json:"failed"`
	FailReason string     `json:"failReason,omitempty"`

	FailLog *FailLog `json:"failLog,omitempty"`
}

type RecordImportSession

type RecordImportSession struct {
	Name        string `json:"-"`
	SessionID   uint64 `json:"sessionID,string"`
	UserID      uint64 `json:"userID,string"`
	NamespaceID uint64 `json:"namespaceID,string"`
	ModuleID    uint64 `json:"moduleID,string"`

	OnError  string                `json:"onError"`
	Fields   map[string]string     `json:"fields"`
	Key      string                `json:"key"`
	Progress *RecordImportProgress `json:"progress"`

	CreatedAt time.Time `json:"createdAt"`
	UpdatedAt time.Time `json:"updatedAt"`

	Resources []resource.Interface `json:"-"`
	Providers []envoyx.Provider    `json:"-"`
}

type RecordIndex

type RecordIndex []int

func (RecordIndex) MarshalJSON

func (ri RecordIndex) MarshalJSON() ([]byte, error)

type RecordService

type RecordService interface {
	FindByID(ctx context.Context, namespaceID, moduleID, recordID uint64) (*types.Record, *types.RecordValueErrorSet, error)

	Report(ctx context.Context, namespaceID, moduleID uint64, metrics, dimensions, filter string) (any, error)
	Find(ctx context.Context, filter types.RecordFilter) (set types.RecordSet, f types.RecordFilter, err error)
	SearchSensitive(ctx context.Context) (set []types.SensitiveRecordSet, err error)
	SearchRevisions(ctx context.Context, namespaceID, moduleID, recordID uint64) (dal.Iterator, error)
	RecordExport(context.Context, types.RecordFilter) error
	RecordImport(context.Context, error) error

	Create(ctx context.Context, record *types.Record) (*types.Record, *types.RecordValueErrorSet, error)
	Update(ctx context.Context, record *types.Record) (*types.Record, *types.RecordValueErrorSet, error)
	Bulk(ctx context.Context, skipFailed bool, oo ...*types.RecordBulkOperation) ([]types.RecordBulkOperationResult, error)

	BulkModifyByFilter(ctx context.Context, f types.RecordFilter, values types.RecordValueSet, operation types.OperationType) (err error)

	Validate(ctx context.Context, rec *types.Record) error

	DeleteByID(ctx context.Context, namespaceID, moduleID uint64, recordID ...uint64) error
	UndeleteByID(ctx context.Context, namespaceID, moduleID uint64, recordID ...uint64) error

	Organize(ctx context.Context, namespaceID, moduleID, recordID uint64, sortingField, sortingValue, sortingFilter, valueField, value string) error

	Iterator(ctx context.Context, f types.RecordFilter, fn eventbus.HandlerFn, action string) (err error)

	TriggerScript(ctx context.Context, namespaceID, moduleID, recordID uint64, rvs types.RecordValueSet, script string) (*types.Module, *types.Record, error)
}

type ResourceTranslationsManagerService

type ResourceTranslationsManagerService interface {
	Chart(ctx context.Context, namespaceID uint64, id uint64) (locale.ResourceTranslationSet, error)
	Module(ctx context.Context, namespaceID uint64, id uint64) (locale.ResourceTranslationSet, error)
	Namespace(ctx context.Context, id uint64) (locale.ResourceTranslationSet, error)
	Page(ctx context.Context, namespaceID uint64, id uint64) (locale.ResourceTranslationSet, error)
	PageLayout(ctx context.Context, namespaceID uint64, pageID uint64, id uint64) (locale.ResourceTranslationSet, error)

	Upsert(context.Context, locale.ResourceTranslationSet) error
	Locale() locale.Resource
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL