Documentation ¶
Index ¶
- Variables
- func GetType(resource *model.Resource) string
- type AddResourceParams
- type Backend
- type BackendConstructor
- type BackendGenericInterface
- type BackendRecordsInterface
- type BackendSchemaInterface
- type BackendType
- type DataSource
- type DataSourceConnectionDetails
- type EntityMapper
- type ListRecordParams
- type PropertyWithPath
- type ResourceIdentity
- type ResourceLike
- 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 UserContextKey = contextKey("UserContextKey")
Functions ¶
Types ¶
type AddResourceParams ¶
type Backend ¶
type Backend interface { BackendGenericInterface BackendRecordsInterface BackendSchemaInterface 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, error) UpdateRecords(ctx context.Context, resource *model.Resource, records []*model.Record) ([]*model.Record, error) GetRecord(ctx context.Context, resource *model.Resource, id string, resolveReferences []string) (*model.Record, error) DeleteRecords(ctx context.Context, resource *model.Resource, ids []*model.Record) error ListRecords(ctx context.Context, resource *model.Resource, params ListRecordParams, resultChan chan<- *model.Record) ([]*model.Record, uint32, error) }
type BackendSchemaInterface ¶
type BackendType ¶ added in v1.4.17
type BackendType struct { Name string Constructor BackendConstructor }
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 Aggregation *model.Aggregation Sorting *model.Sorting }
type PropertyWithPath ¶ added in v1.1.37
type PropertyWithPath struct { Path string Property *model.ResourceProperty }
type ResourceIdentity ¶ added in v1.1.37
func (ResourceIdentity) Type ¶ added in v1.3.95
func (r ResourceIdentity) Type() string
type ResourceLike ¶ added in v1.2.36
type ResourceLike interface { GetProperties() []*model.ResourceProperty GetTypes() []*model.ResourceSubType }
type UpgradeResourceParams ¶
type UpgradeResourceParams struct { ForceMigration bool MigrationPlan *model.ResourceMigrationPlan }
Click to show internal directories.
Click to hide internal directories.