-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #123 Signed-off-by: azerr <[email protected]>
- Loading branch information
1 parent
bf47c3d
commit d63a257
Showing
10 changed files
with
428 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"title": "Kafka contributions to package.json", | ||
"type": "object", | ||
"properties": { | ||
"contributes": { | ||
"type": "object", | ||
"properties": { | ||
"kafka": { | ||
"type": "object", | ||
"markdownDescription": "Kafka extensions", | ||
"properties": { | ||
"clusterProviders": { | ||
"type": "array", | ||
"markdownDescription": "Cluster providers definitions.", | ||
"items": [ | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "string", | ||
"description": "Cluster provider id." | ||
}, | ||
"name": { | ||
"type": "string", | ||
"description": "Cluster provider name." | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { KafkaConfig } from "kafkajs"; | ||
import { Cluster, ConnectionOptions } from "../client/client"; | ||
import { ClusterSettings } from "../settings/clusters"; | ||
|
||
export interface KafkaExtensionParticipant { | ||
|
||
getClusterProviderParticipant(clusterProviderId: string) : ClusterProviderParticipant; | ||
|
||
} | ||
|
||
/** | ||
* The kafka extension participant. | ||
*/ | ||
export interface ClusterProviderParticipant { | ||
|
||
/** | ||
* Returns the Kafka clusters managed by this participant. | ||
* | ||
* @param clusterSettings the current cluster settings. | ||
*/ | ||
configureClusters(clusterSettings: ClusterSettings): Promise<Cluster[] | undefined>; | ||
|
||
/** | ||
* Create the KafkaJS client configuration from the given connection options. | ||
* When the participant doesn't implement this method, the KafkaJS client | ||
* configuration is created with the default client configuration factory from vscode-kafka. | ||
* | ||
* @param connectionOptions the Kafka connection options. | ||
*/ | ||
createKafkaConfig?(connectionOptions: ConnectionOptions): KafkaConfig; | ||
} |
Oops, something went wrong.