Debian Codegraph @

docs/integration-server.md

raw symbols SCIP
1 Title: Implementing support as a cloud provider
2
3 Cloud providers need to create [class@AccountExporter] objects for
4 every account they like to expose to the API and use the [class@AccountExporter]
5 API to set the properties of the accounts. Also a [class@ProviderExporter]
6 needs to be created in order to hold all the [class@AccountExporter] objects
7 that will be added to the provider when created. [class@ProviderExporter] also
8 exports properties that define the provider that can be set using the [class@ProviderExporter] API.
9
10 To register your cloud provider, you need to expose the interface it is implementing in its desktop file
11
12 Example desktop file to register a cloud provider:
13 ```ini
14 [Desktop Entry]
15 Type=Application
16 Name=mycloudprovider example server
17 NoDisplay=true
18 Implements=org.freedesktop.CloudProviders
19
20 [org.freedesktop.CloudProviders]
21 BusName=org.mycloudprovider.CloudProviders.ServerExample
22 ObjectPath=/org/mycloudprovider/CloudProviders/ServerExample
23 ```
24
25 In previous versions, to register your cloud provider you needed to provide a file in DATADIR/cloud-providers.
26 This way of registering providers is still working but is not compatible with containerization.
27
28 Example file to register a cloud provider in previous versions:
29 ```ini
30 [Cloud Provider]
31 BusName=org.mycloudprovider.CloudProviders.ServerExample
32 ObjectPath=/org/mycloudprovider/CloudProviders/ServerExample
33 Version=1
34 ```