Documentation ¶
Index ¶
- type AuditService
- type AuthenticationService
- type AuthorizationService
- type BackendProviderService
- type CheckRecordAccessParams
- type Container
- type DataSourceService
- type EventChannelService
- type ExtensionService
- type ExternalService
- type Module
- type ModuleConstructor
- type RecordCreateParams
- type RecordDeleteParams
- type RecordGetParams
- type RecordListParams
- type RecordLoadParams
- type RecordService
- type RecordUpdateParams
- type ResourceMigrationService
- type ResourceService
- type StatsService
- type WatchParams
- type WatchResourceParams
- type WatchService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditService ¶ added in v1.1.90
type AuthenticationService ¶ added in v1.1.37
type AuthenticationService interface { Init(config *model.AppConfig) Authenticate(ctx context.Context, username string, password string, term model.TokenTerm, minimizeToken bool) (*model.Token, error) AuthenticateWithoutPassword(ctx context.Context, username string, term model.TokenTerm, minimizeToken bool) (*model.Token, error) RenewToken(ctx context.Context, token string, term model.TokenTerm) (*model.Token, error) GetToken(ctx context.Context) (*jwt_model.UserDetails, error) ParseAndVerifyToken(token string) (*jwt_model.UserDetails, error) AuthenticationDisabled() bool }
type AuthorizationService ¶ added in v1.1.37
type AuthorizationService interface { CheckRecordAccess(ctx context.Context, params CheckRecordAccessParams) error CheckRecordAccessWithRecordSelector(ctx context.Context, params CheckRecordAccessParams) (*resource_model.BooleanExpression, error) CheckIsExtensionController(ctx context.Context) error }
type BackendProviderService ¶ added in v1.1.37
type BackendProviderService interface { abs.BackendRecordsInterface RegisterBackend(backend abs.BackendType) DestroyDataSource(ctx context.Context, dataSourceName string) error ListEntities(ctx context.Context, dataSourceId string) ([]*model.DataSourceCatalog, error) PrepareResourceFromEntity(ctx context.Context, dataSourceName string, catalog, entity string) (*model.Resource, error) UpgradeResource(ctx context.Context, dataSourceName string, params abs.UpgradeResourceParams) error GetStatus(ctx context.Context, dataSourceId string) (connectionAlreadyInitiated bool, testConnection bool, err error) Init(config *model.AppConfig) SetSchema(schema *abs.Schema) }
type CheckRecordAccessParams ¶ added in v1.1.37
type CheckRecordAccessParams struct { Resource *model.Resource Records *[]abs.RecordLike Operation resource_model.PermissionOperation }
type Container ¶ added in v1.1.37
type Container interface { GetRecordService() RecordService GetEventChannelService() EventChannelService GetAuthenticationService() AuthenticationService GetAuthorizationService() AuthorizationService GetResourceService() ResourceService GetResourceMigrationService() ResourceMigrationService GetDataSourceService() DataSourceService GetWatchService() WatchService GetExtensionService() ExtensionService GetBackendProviderService() BackendProviderService GetBackendEventHandler() interface{} GetAppConfig() *model.AppConfig }
type DataSourceService ¶ added in v1.1.37
type DataSourceService interface { Init(config *model.AppConfig) ListEntities(ctx context.Context, id string) ([]*model.DataSourceCatalog, error) GetStatus(ctx context.Context, id string) (connectionAlreadyInitiated bool, testConnection bool, err error) PrepareResourceFromEntity(ctx context.Context, dataSourceId string, catalog, entity string) (*model.Resource, error) Delete(ctx context.Context, ids []string) error }
type EventChannelService ¶ added in v1.1.48
type ExtensionService ¶ added in v1.1.37
type ExtensionService interface { RegisterExtension(*resource_model.Extension) UnRegisterExtension(*resource_model.Extension) Init(config *model.AppConfig) Reload() }
type ExternalService ¶ added in v1.1.37
type ExternalService interface {
Call(ctx context.Context, all resource_model.ExternalCall, event *model.Event) (*model.Event, error)
}
type ModuleConstructor ¶ added in v1.2.82
type RecordCreateParams ¶ added in v1.1.37
type RecordCreateParams struct { Namespace string Resource string Records []abs.RecordLike }
func (RecordCreateParams) ToRequest ¶ added in v1.1.37
func (p RecordCreateParams) ToRequest() *stub.CreateRecordRequest
type RecordDeleteParams ¶ added in v1.1.37
func (RecordDeleteParams) ToRequest ¶ added in v1.1.37
func (p RecordDeleteParams) ToRequest() *stub.DeleteRecordRequest
type RecordGetParams ¶ added in v1.1.37
type RecordListParams ¶ added in v1.1.37
type RecordListParams struct { Query *model.BooleanExpression Namespace string Resource string Limit uint32 Offset uint64 UseHistory bool ResolveReferences []string PackRecords bool Filters map[string]interface{} Aggregation *model.Aggregation Sorting *model.Sorting }
func (RecordListParams) ToRequest ¶ added in v1.1.37
func (p RecordListParams) ToRequest() *stub.ListRecordRequest
type RecordLoadParams ¶ added in v1.3.15
type RecordService ¶ added in v1.1.37
type RecordService interface { Init(config *model.AppConfig) PrepareQuery(resource *model.Resource, queryMap map[string]interface{}) (*model.BooleanExpression, error) GetRecord(ctx context.Context, namespace, resourceName, id string, references []string) (abs.RecordLike, error) FindBy(ctx context.Context, namespace, resourceName, propertyName string, value string) (abs.RecordLike, error) ResolveReferences(ctx context.Context, resource *model.Resource, records []abs.RecordLike, referencesToResolve []string) error List(ctx context.Context, params RecordListParams) ([]abs.RecordLike, uint32, error) Create(ctx context.Context, params RecordCreateParams) ([]abs.RecordLike, error) Update(ctx context.Context, params RecordUpdateParams) ([]abs.RecordLike, error) Apply(ctx context.Context, params RecordUpdateParams) ([]abs.RecordLike, error) Get(ctx context.Context, params RecordGetParams) (abs.RecordLike, error) Delete(ctx context.Context, params RecordDeleteParams) error Load(ctx context.Context, namespace string, name string, properties map[string]*structpb.Value, listParams RecordLoadParams) (abs.RecordLike, error) }
type RecordUpdateParams ¶ added in v1.1.37
type RecordUpdateParams struct { Namespace string Resource string Records []abs.RecordLike }
func (RecordUpdateParams) ToRequest ¶ added in v1.1.37
func (p RecordUpdateParams) ToRequest() *stub.UpdateRecordRequest
type ResourceMigrationService ¶ added in v1.1.37
type ResourceService ¶ added in v1.1.37
type ResourceService interface { Init(config *model.AppConfig) GetResourceByName(ctx context.Context, namespace, resource string) (*model.Resource, error) GetSystemResourceByName(ctx context.Context, resourceName string) (*model.Resource, error) Create(ctx context.Context, resource *model.Resource, doMigration bool, forceMigration bool) (*model.Resource, error) Update(ctx context.Context, resource *model.Resource, doMigration bool, forceMigration bool) error Delete(ctx context.Context, ids []string, doMigration bool, forceMigration bool) error List(ctx context.Context) ([]*model.Resource, error) Get(ctx context.Context, id string) (*model.Resource, error) GetSchema() *abs.Schema PrepareResourceMigrationPlan(ctx context.Context, resources []*model.Resource, prepareFromDataSource bool) ([]*model.ResourceMigrationPlan, error) LocateReferences(resource *model.Resource, resolve []string) []string LocateLocalReferences(resource *model.Resource) []string LocateResourceByReference(resource *model.Resource, reference *model.Reference) *model.Resource }
type StatsService ¶ added in v1.1.90
type WatchParams ¶ added in v1.1.37
type WatchParams struct { Selector *model.EventSelector BufferSize int }
type WatchResourceParams ¶ added in v1.2.36
type WatchResourceParams struct { Selector *model.EventSelector BufferSize int }
type WatchService ¶ added in v1.1.37
Click to show internal directories.
Click to hide internal directories.