2020-10-29 07:42:54 -07:00
|
|
|
import {
|
|
|
|
ICredentialType,
|
|
|
|
NodePropertyTypes,
|
|
|
|
} from 'n8n-workflow';
|
|
|
|
|
|
|
|
export class Kafka implements ICredentialType {
|
|
|
|
name = 'kafka';
|
|
|
|
displayName = 'Kafka';
|
|
|
|
documentationUrl = 'kafka';
|
|
|
|
properties = [
|
|
|
|
{
|
|
|
|
displayName: 'Client ID',
|
|
|
|
name: 'clientId',
|
|
|
|
type: 'string' as NodePropertyTypes,
|
|
|
|
default: '',
|
2020-10-29 07:44:11 -07:00
|
|
|
placeholder: 'my-app',
|
2020-10-29 07:42:54 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Brokers',
|
|
|
|
name: 'brokers',
|
|
|
|
type: 'string' as NodePropertyTypes,
|
|
|
|
default: '',
|
2020-10-29 07:44:11 -07:00
|
|
|
placeholder: 'kafka1:9092,kafka2:9092',
|
2020-10-29 07:42:54 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'SSL',
|
|
|
|
name: 'ssl',
|
|
|
|
type: 'boolean' as NodePropertyTypes,
|
|
|
|
default: true,
|
|
|
|
},
|
2020-10-29 07:44:11 -07:00
|
|
|
{
|
|
|
|
displayName: 'Username',
|
|
|
|
name: 'username',
|
|
|
|
type: 'string' as NodePropertyTypes,
|
|
|
|
default: '',
|
|
|
|
description: 'Optional username if authenticated is required.',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Password',
|
|
|
|
name: 'password',
|
|
|
|
type: 'string' as NodePropertyTypes,
|
|
|
|
typeOptions: {
|
|
|
|
password: true,
|
|
|
|
},
|
|
|
|
default: '',
|
|
|
|
description: 'Optional password if authenticated is required.',
|
|
|
|
},
|
2020-10-29 07:42:54 -07:00
|
|
|
];
|
|
|
|
}
|