Documentation ¶
Index ¶
- Variables
- type AddResourceParams
- type Backend
- type BackendConstructor
- type BackendGenericInterface
- type BackendRecordsInterface
- type BackendSchemaInterface
- type BackendTransactionInterface
- type DataSource
- type DataSourceConnectionDetails
- type EntityMapper
- type ListRecordParams
- type PropertyWithPath
- type ResourceIdentity
- type Schema
- type UpgradeResourceParams
Constants ¶
This section is empty.
Variables ¶
View Source
var ClientTrackIdContextKey = contextKey("ClientTrackIdContextKey")
View Source
var LogFieldsContextKey = contextKey("LogFieldsContextKey")
View Source
var SystemContextKey = contextKey("SystemContextKey")
View Source
var TransactionContextKey = contextKey("TransactionContextKey")
View Source
var UserContextKey = contextKey("UserContextKey")
Functions ¶
This section is empty.
Types ¶
type AddResourceParams ¶
type Backend ¶
type Backend interface { BackendGenericInterface BackendRecordsInterface BackendSchemaInterface BackendTransactionInterface SetSchema(schema *Schema) }
type BackendConstructor ¶
type BackendConstructor func(dataSourceRecord DataSource) Backend
type BackendGenericInterface ¶
type BackendRecordsInterface ¶
type BackendRecordsInterface interface { AddRecords(ctx context.Context, resource *model.Resource, records []*model.Record) ([]*model.Record, errors.ServiceError) UpdateRecords(ctx context.Context, resource *model.Resource, records []*model.Record) ([]*model.Record, errors.ServiceError) GetRecord(ctx context.Context, resource *model.Resource, id string, resolveReferences []string) (*model.Record, errors.ServiceError) DeleteRecords(ctx context.Context, resource *model.Resource, ids []string) errors.ServiceError ListRecords(ctx context.Context, resource *model.Resource, params ListRecordParams, resultChan chan<- *model.Record) ([]*model.Record, uint32, errors.ServiceError) }
type BackendSchemaInterface ¶
type BackendSchemaInterface interface { ListEntities(ctx context.Context) ([]*model.DataSourceCatalog, errors.ServiceError) PrepareResourceFromEntity(ctx context.Context, catalog, entity string) (*model.Resource, errors.ServiceError) UpgradeResource(ctx context.Context, params UpgradeResourceParams) errors.ServiceError }
type BackendTransactionInterface ¶
type BackendTransactionInterface interface { BeginTransaction(ctx context.Context, readOnly bool) (transactionKey string, serviceError errors.ServiceError) CommitTransaction(ctx context.Context) (serviceError errors.ServiceError) RollbackTransaction(ctx context.Context) (serviceError errors.ServiceError) IsTransactionAlive(ctx context.Context) (isAlive bool, serviceError errors.ServiceError) }
type DataSource ¶ added in v1.1.37
type DataSource interface {
GetName() string
}
type DataSourceConnectionDetails ¶
type DataSourceConnectionDetails interface { }
type EntityMapper ¶ added in v1.1.37
type ListRecordParams ¶
type ListRecordParams struct { Query *model.BooleanExpression Limit uint32 Offset uint64 ResolveReferences []string }
type PropertyWithPath ¶ added in v1.1.37
type PropertyWithPath struct { Path string Property *model.ResourceProperty }
type ResourceIdentity ¶ added in v1.1.37
type UpgradeResourceParams ¶
type UpgradeResourceParams struct { ForceMigration bool MigrationPlan *model.ResourceMigrationPlan }
Click to show internal directories.
Click to hide internal directories.