Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
Signed-off-by: Tianle Huang <[email protected]>
  • Loading branch information
tianleh committed Mar 16, 2024
1 parent d8ec1c1 commit 34703ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/plugins/application_config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ Let's call this plugin `MyConfigurationClientPlugin`.
First, this plugin will need to implement a class `MyConfigurationClient` based on interface `ConfigurationClient` defined in the `types.ts` under directory `src/plugins/application_config/server/types.ts`. Below are the functions inside the interface.

```
getConfig(): Promise<Map<string, string>>;
getConfig(options?: ConfigurationClientOptions): Promise<Map<string, string>>;
getEntityConfig(entity: string): Promise<string>;
getEntityConfig(entity: string, options?: ConfigurationClientOptions): Promise<string>;
updateEntityConfig(entity: string, newValue: string): Promise<string>;
updateEntityConfig(entity: string, newValue: string, options?: ConfigurationClientOptions): Promise<string>;
deleteEntityConfig(entity: string): Promise<string>;
deleteEntityConfig(entity: string, options?: ConfigurationClientOptions): Promise<string>;
```

Second, this plugin needs to declare `applicationConfig` as its dependency by adding it to `requiredPlugins` in its own `opensearch_dashboards.json`.
Expand Down

0 comments on commit 34703ce

Please sign in to comment.