@backstage/backend-plugin-api
Home > @backstage/backend-plugin-api
Core API used by Backstage backend plugins.
Functions
Function |
Description |
---|---|
Creates a new backend feature loader. | |
Creates a new backend module for a given plugin. | |
Creates a new backend plugin. | |
Creates a new backend extension point. | |
Creates a root scoped service factory without options. | |
Creates a plugin scoped service factory without options. | |
Creates a new service definition. This overload is used to create plugin scoped services. | |
Creates a new service definition. This overload is used to create root scoped services. | |
Creates a new service definition. This overload is used to create plugin scoped services. | |
Creates a new service definition. This overload is used to create root scoped services. | |
Tries to deduce whether a thrown error is a database conflict. | |
readSchedulerServiceTaskScheduleDefinitionFromConfig(config) |
Reads a SchedulerServiceTaskScheduleDefinition from config. Expects the config not to be the root config, but the config for the definition. |
Resolve a path relative to the root of a package directory. Additional path arguments are resolved relative to the package dir. This is particularly useful when you want to access assets shipped with your backend plugin package. When doing so, do not forget to include the assets in your published package by adding them to | |
Resolves a target path from a base path while guaranteeing that the result is a path that point to or within the base path. This is useful for resolving paths from user input, as it otherwise opens up for vulnerabilities. |
Interfaces
Interface |
Description |
---|---|
Provides token authentication and credentials management. See the service documentation for more details. | |
The callbacks passed to the | |
The callbacks passed to the | |
Represents user information that is available to the backend, based on some user credentials. | |
A pre-configured, storage agnostic cache service suitable for use by Backstage plugins. See the service documentation for more details. | |
Options for creating a new backend feature loader. | |
The configuration options passed to createBackendModule(). | |
The configuration options passed to createBackendPlugin(). | |
The configuration options passed to createExtensionPoint(). | |
Manages access to databases that plugins get. See the service documentation for more details. | |
The DiscoveryService is used to provide a mechanism for backend plugins to discover the endpoints for itself or other backend plugins. See the service documentation for more details. | |
Provides handling of credentials in an ongoing request. See the service documentation for more details. | |
Allows plugins to register HTTP routes. See the service documentation for more details. | |
Options for HttpRouterService.addAuthPolicy(). | |
Provides registration of plugin startup and shutdown lifecycle hooks. See the service documentation for more details. | |
A service that provides a logging facility. See the service documentation for more details. | |
Permission system integration for authorization of user/service actions. See the permissions documentation and the service documentation for more details. | |
Options for PermissionsService requests. | |
Access metadata about the current plugin. See the service documentation for more details. | |
Provides access to static configuration. See the configuration documentation and the service documentation for more details. | |
HTTP route registration for root services. See the service documentation for more details. | |
Registration of backend startup and shutdown lifecycle hooks. See the service documentation for more details. | |
Root-level logging. See the service documentation for more details. | |
Deals with the scheduling of distributed tasks, for a given plugin. See the service documentation for more details. | |
Options that apply to the invocation of a given task. | |
A previously prepared task schedule, ready to be invoked. | |
Options that control the scheduling of a task. | |
Config options for SchedulerServiceTaskScheduleDefinition that control the scheduling of a task. | |
A generic interface for fetching plain data from URLs. See the service documentation for more details. | |
Authenticated user information retrieval. See the service documentation for more details. |
Namespaces
Namespace |
Description |
---|---|
All core services references |
Type Aliases
Type Alias |
Description |
---|---|
An opaque representation of credentials, for example as passed in a request-response flow. | |
Represents a principal that is not authenticated (for example when no token at all was given to a request). | |
The access restrictions that apply to a given principal. | |
The types of principal that can be represented in a BackstageCredentials object. | |
Represents a service principal (for example when an external access method token was given to a request, or the caller was a Backstage backend plugin). | |
Represents a user principal (for example when a user Backstage token issued by the auth backend was given to a request). | |
Options passed to CacheService.withOptions(). | |
Options passed to CacheService.set(). | |
TODO | |
A semi-opaque type to describe an actively scheduled task. | |
A function that can be called as a scheduled task. It may optionally accept an abort signal argument. When the signal triggers, processing should abort and return as quickly as possible. | |
A reference to a backend service. You can use these references to mark dependencies on services and having their implementations injected automatically. | |
An options object for UrlReaderService.readTree() operations. | |
A response object for UrlReaderService.readTree() operations. | |
Options that control execution. | |
Represents a single file in a UrlReaderService.readTree() response. | |
An options object for readUrl operations. | |
A response object for UrlReaderService.readUrl() operations. | |
An options object for search operations. | |
The output of a search operation. | |
Represents a single file in a search response. |