n8n/packages/nodes-base/credentials/CockpitApi.credentials.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
517 B
TypeScript
Raw Normal View History

import type { ICredentialType, INodeProperties } from 'n8n-workflow';
2020-04-04 07:04:25 -07:00
export class CockpitApi implements ICredentialType {
name = 'cockpitApi';
2020-04-04 07:04:25 -07:00
displayName = 'Cockpit API';
documentationUrl = 'cockpit';
properties: INodeProperties[] = [
2020-04-04 07:04:25 -07:00
{
displayName: 'Cockpit URL',
name: 'url',
type: 'string',
2020-04-04 07:04:25 -07:00
default: '',
placeholder: 'https://example.com',
},
{
displayName: 'Access Token',
name: 'accessToken',
type: 'string',
typeOptions: { password: true },
2020-04-04 07:04:25 -07:00
default: '',
},
];
}