32 lines
1011 B
TypeScript
32 lines
1011 B
TypeScript
import { INodeParams, INodeCredential } from '../src/Interface'
|
|
|
|
class ElasticSearchUserPassword implements INodeCredential {
|
|
label: string
|
|
name: string
|
|
version: number
|
|
description: string
|
|
inputs: INodeParams[]
|
|
|
|
constructor() {
|
|
this.label = 'ElasticSearch User Password'
|
|
this.name = 'elasticSearchUserPassword'
|
|
this.version = 1.0
|
|
this.description =
|
|
'Refer to <a target="_blank" href="https://www.elastic.co/guide/en/kibana/current/tutorial-secure-access-to-kibana.html">official guide</a> on how to get User Password from ElasticSearch'
|
|
this.inputs = [
|
|
{
|
|
label: 'ElasticSearch User',
|
|
name: 'elasticSearchUser',
|
|
type: 'string'
|
|
},
|
|
{
|
|
label: 'ElasticSearch Password',
|
|
name: 'elasticSearchPassword',
|
|
type: 'password'
|
|
}
|
|
]
|
|
}
|
|
}
|
|
|
|
module.exports = { credClass: ElasticSearchUserPassword }
|