getConfigurationSchema() { return joi.object().keys({ socket: this.joi.string().default('/var/run/docker.sock'), host: this.joi.string(), port: this.joi.number().port().default(2375), cron: joi.string().cron().default('0 * * * *'), watchbydefault: this.joi.boolean().default(true), registries: joi.object().keys({ hub: joi.object().keys({ auth: joi.object().keys({ login: joi.string(), password: joi.string().required(), }), }), }), }); }
/** * Get the Trigger configuration schema. * @returns {*} */ getConfigurationSchema() { return this.joi.object().keys({ url: this.joi.string().uri({ scheme: ['mqtt', 'mqtts', 'tcp', 'tls', 'ws', 'wss'], }).required(), topic: this.joi.string().default('wud/image'), user: this.joi.string(), password: this.joi.string(), }); }
/** * Get the Trigger configuration schema. * @returns {*} */ getConfigurationSchema() { return this.joi.object().keys({ brokers: this.joi.string().required(), topic: this.joi.string().default('wud-image'), clientId: this.joi.string().default('wud'), ssl: this.joi.boolean().default(false), authentication: this.joi.object({ type: this.joi.string() .allow('PLAIN') .allow('SCRAM-SHA-256') .allow('SCRAM-SHA-512') .default('PLAIN'), user: this.joi.string().required(), password: this.joi.string().required(), }), }); }