2019-10-23 01:59:13 -04:00
/ *
* MinIO Cloud Storage , ( C ) 2019 MinIO , Inc .
*
* Licensed under the Apache License , Version 2.0 ( the "License" ) ;
* you may not use this file except in compliance with the License .
* You may obtain a copy of the License at
*
* http : //www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing , software
* distributed under the License is distributed on an "AS IS" BASIS ,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND , either express or implied .
* See the License for the specific language governing permissions and
* limitations under the License .
* /
package notify
import (
"github.com/minio/minio/cmd/config"
"github.com/minio/minio/pkg/event/target"
)
// Help template inputs for all notification targets
var (
2019-11-19 16:48:13 -05:00
HelpAMQP = config . HelpKVS {
config . HelpKV {
Key : target . AmqpURL ,
2019-12-04 18:32:37 -05:00
Description : "AMQP server endpoint e.g. `amqp://myuser:mypassword@localhost:5672`" ,
2019-11-19 16:48:13 -05:00
Type : "url" ,
} ,
config . HelpKV {
Key : target . AmqpExchange ,
2019-12-04 18:32:37 -05:00
Description : "name of the AMQP exchange" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "string" ,
} ,
config . HelpKV {
Key : target . AmqpExchangeType ,
2019-12-04 18:32:37 -05:00
Description : "kind of AMQP exchange type" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "string" ,
} ,
config . HelpKV {
Key : target . AmqpRoutingKey ,
2019-12-04 18:32:37 -05:00
Description : "routing key for publishing" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "string" ,
} ,
config . HelpKV {
Key : target . AmqpMandatory ,
2019-12-04 18:32:37 -05:00
Description : "set this to 'on' for server to return an unroutable message with a Return method. If this flag is 'off', the server silently drops the message" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "on|off" ,
} ,
config . HelpKV {
Key : target . AmqpDurable ,
2019-12-04 18:32:37 -05:00
Description : "set this to 'on' for queue to survive broker restarts" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "on|off" ,
} ,
config . HelpKV {
Key : target . AmqpNoWait ,
2019-12-04 18:32:37 -05:00
Description : "when no_wait is 'on', declare without waiting for a confirmation from the server" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "on|off" ,
} ,
config . HelpKV {
Key : target . AmqpInternal ,
2019-12-04 18:32:37 -05:00
Description : "set this to 'on' for exchange to be not used directly by publishers, but only when bound to other exchanges" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "on|off" ,
} ,
config . HelpKV {
Key : target . AmqpAutoDeleted ,
2019-12-04 18:32:37 -05:00
Description : "set this to 'on' for queue that has had at least one consumer is deleted when last consumer unsubscribes" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "on|off" ,
} ,
config . HelpKV {
Key : target . AmqpDeliveryMode ,
2019-12-04 18:32:37 -05:00
Description : "delivery queue implementation use non-persistent (1) or persistent (2)" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "number" ,
} ,
config . HelpKV {
Key : target . AmqpQueueDir ,
2019-12-04 18:32:37 -05:00
Description : "local directory where events are stored e.g. '/home/events'" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "path" ,
} ,
config . HelpKV {
Key : target . AmqpQueueLimit ,
2019-12-04 18:32:37 -05:00
Description : "enable persistent event store queue limit, defaults to '10000'" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "number" ,
} ,
config . HelpKV {
Key : config . Comment ,
2019-12-04 18:32:37 -05:00
Description : config . DefaultComment ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "sentence" ,
} ,
2019-10-23 01:59:13 -04:00
}
2019-11-19 16:48:13 -05:00
HelpKafka = config . HelpKVS {
config . HelpKV {
Key : target . KafkaBrokers ,
2019-12-04 18:32:37 -05:00
Description : "comma separated list of Kafka broker addresses" ,
2019-11-20 18:10:24 -05:00
Type : "csv" ,
2019-11-19 16:48:13 -05:00
} ,
config . HelpKV {
Key : target . KafkaTopic ,
2019-12-04 18:32:37 -05:00
Description : "Kafka topic used for bucket notifications" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "string" ,
} ,
config . HelpKV {
Key : target . KafkaSASLUsername ,
2019-12-04 18:32:37 -05:00
Description : "username for SASL/PLAIN or SASL/SCRAM authentication" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "string" ,
} ,
config . HelpKV {
Key : target . KafkaSASLPassword ,
2019-12-04 18:32:37 -05:00
Description : "password for SASL/PLAIN or SASL/SCRAM authentication" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "string" ,
} ,
config . HelpKV {
Key : target . KafkaTLSClientAuth ,
2019-12-04 18:32:37 -05:00
Description : "clientAuth determines the Kafka server's policy for TLS client auth" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "string" ,
} ,
config . HelpKV {
Key : target . KafkaSASL ,
2019-12-04 18:32:37 -05:00
Description : "set this to 'on' to enable SASL authentication" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "on|off" ,
} ,
config . HelpKV {
Key : target . KafkaTLS ,
2019-12-04 18:32:37 -05:00
Description : "set this to 'on' to enable TLS" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "on|off" ,
} ,
config . HelpKV {
Key : target . KafkaTLSSkipVerify ,
2019-12-04 18:32:37 -05:00
Description : "set this to 'on' to disable client verification of server certificate chain" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "on|off" ,
} ,
config . HelpKV {
Key : target . KafkaQueueDir ,
2019-12-04 18:32:37 -05:00
Description : "local directory where events are stored e.g. '/home/events'" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "path" ,
} ,
config . HelpKV {
Key : target . KafkaQueueLimit ,
2019-12-04 18:32:37 -05:00
Description : "enable persistent event store queue limit, defaults to '10000'" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "number" ,
} ,
2019-12-05 18:31:46 -05:00
config . HelpKV {
Key : target . KafkaClientTLSCert ,
Description : "Set path to client certificate" ,
Optional : true ,
Type : "path" ,
} ,
config . HelpKV {
Key : target . KafkaClientTLSKey ,
Description : "Set path to client key" ,
Optional : true ,
Type : "path" ,
} ,
2019-11-19 16:48:13 -05:00
config . HelpKV {
Key : config . Comment ,
2019-12-04 18:32:37 -05:00
Description : config . DefaultComment ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "sentence" ,
} ,
2019-10-23 01:59:13 -04:00
}
2019-11-19 16:48:13 -05:00
HelpMQTT = config . HelpKVS {
config . HelpKV {
Key : target . MqttBroker ,
2019-12-04 18:32:37 -05:00
Description : "MQTT server endpoint e.g. `tcp://localhost:1883`" ,
2019-11-19 16:48:13 -05:00
Type : "uri" ,
} ,
config . HelpKV {
Key : target . MqttTopic ,
2019-12-04 18:32:37 -05:00
Description : "name of the MQTT topic to publish on, e.g. `minio`" ,
2019-11-19 16:48:13 -05:00
Type : "string" ,
} ,
config . HelpKV {
Key : target . MqttUsername ,
2019-12-04 18:32:37 -05:00
Description : "username to connect to the MQTT server" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "string" ,
} ,
config . HelpKV {
Key : target . MqttPassword ,
2019-12-04 18:32:37 -05:00
Description : "password to connect to the MQTT server" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "string" ,
} ,
config . HelpKV {
Key : target . MqttQoS ,
2019-12-04 18:32:37 -05:00
Description : "set the Quality of Service Level for MQTT endpoint" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "number" ,
} ,
config . HelpKV {
Key : target . MqttKeepAliveInterval ,
2019-12-04 18:32:37 -05:00
Description : "keep alive interval for MQTT connections" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "duration" ,
} ,
config . HelpKV {
Key : target . MqttReconnectInterval ,
2019-12-04 18:32:37 -05:00
Description : "reconnect interval for MQTT connections" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "duration" ,
} ,
config . HelpKV {
Key : target . MqttQueueDir ,
2019-12-04 18:32:37 -05:00
Description : "local directory where events are stored e.g. '/home/events'" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "path" ,
} ,
config . HelpKV {
Key : target . MqttQueueLimit ,
2019-12-04 18:32:37 -05:00
Description : "enable persistent event store queue limit, defaults to '10000'" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "number" ,
} ,
config . HelpKV {
Key : config . Comment ,
2019-12-04 18:32:37 -05:00
Description : config . DefaultComment ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "sentence" ,
} ,
2019-10-23 01:59:13 -04:00
}
2019-11-19 16:48:13 -05:00
HelpES = config . HelpKVS {
config . HelpKV {
Key : target . ElasticURL ,
2019-12-04 18:32:37 -05:00
Description : "Elasticsearch server's address, with optional authentication info" ,
2019-11-19 16:48:13 -05:00
Type : "url" ,
} ,
config . HelpKV {
Key : target . ElasticFormat ,
2019-12-04 18:32:37 -05:00
Description : "set this to `namespace` or `access`, defaults to 'namespace'" ,
2019-11-19 16:48:13 -05:00
Type : "namespace*|access" ,
} ,
config . HelpKV {
Key : target . ElasticIndex ,
2019-12-04 18:32:37 -05:00
Description : "the name of an Elasticsearch index in which MinIO will store document" ,
2019-11-19 16:48:13 -05:00
Type : "string" ,
} ,
config . HelpKV {
Key : target . ElasticQueueDir ,
2019-12-04 18:32:37 -05:00
Description : "local directory where events are stored e.g. '/home/events'" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "path" ,
} ,
config . HelpKV {
Key : target . ElasticQueueLimit ,
2019-12-04 18:32:37 -05:00
Description : "enable persistent event store queue limit, defaults to '10000'" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "number" ,
} ,
config . HelpKV {
Key : config . Comment ,
2019-12-04 18:32:37 -05:00
Description : config . DefaultComment ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "sentence" ,
} ,
2019-10-23 01:59:13 -04:00
}
2019-11-19 16:48:13 -05:00
HelpWebhook = config . HelpKVS {
config . HelpKV {
Key : target . WebhookEndpoint ,
2019-12-04 18:32:37 -05:00
Description : "webhook server endpoint e.g. http://localhost:8080/minio/events" ,
2019-11-19 16:48:13 -05:00
Type : "url" ,
} ,
config . HelpKV {
Key : target . WebhookAuthToken ,
2019-12-04 18:32:37 -05:00
Description : "authorization token used for webhook server endpoint" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "string" ,
} ,
config . HelpKV {
Key : target . WebhookQueueDir ,
2019-12-04 18:32:37 -05:00
Description : "local directory where events are stored e.g. '/home/events'" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "path" ,
} ,
config . HelpKV {
Key : target . WebhookQueueLimit ,
2019-12-04 18:32:37 -05:00
Description : "enable persistent event store queue limit, defaults to '10000'" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "number" ,
} ,
config . HelpKV {
Key : config . Comment ,
2019-12-04 18:32:37 -05:00
Description : config . DefaultComment ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "sentence" ,
} ,
2019-10-23 01:59:13 -04:00
}
2019-11-19 16:48:13 -05:00
HelpRedis = config . HelpKVS {
config . HelpKV {
Key : target . RedisAddress ,
2019-12-04 18:32:37 -05:00
Description : "Redis server's address. For example: `localhost:6379`" ,
2019-11-19 16:48:13 -05:00
Type : "address" ,
} ,
config . HelpKV {
Key : target . RedisFormat ,
2019-12-04 18:32:37 -05:00
Description : "specifies how data is populated, a hash is used in case of `namespace` format and a list in case of `access` format, defaults to 'namespace'" ,
Type : "namespace*|access" ,
2019-11-19 16:48:13 -05:00
} ,
config . HelpKV {
Key : target . RedisKey ,
2019-12-04 18:32:37 -05:00
Description : "name of the Redis key under which events are stored" ,
2019-11-19 16:48:13 -05:00
Type : "string" ,
} ,
config . HelpKV {
Key : target . RedisPassword ,
2019-12-04 18:32:37 -05:00
Description : "Redis server's password" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "string" ,
} ,
config . HelpKV {
Key : target . RedisQueueDir ,
2019-12-04 18:32:37 -05:00
Description : "local directory where events are stored e.g. '/home/events'" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "path" ,
} ,
config . HelpKV {
Key : target . RedisQueueLimit ,
2019-12-04 18:32:37 -05:00
Description : "enable persistent event store queue limit, defaults to '10000'" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "number" ,
} ,
config . HelpKV {
Key : config . Comment ,
2019-12-04 18:32:37 -05:00
Description : config . DefaultComment ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "sentence" ,
} ,
2019-10-23 01:59:13 -04:00
}
2019-11-19 16:48:13 -05:00
HelpPostgres = config . HelpKVS {
config . HelpKV {
Key : target . PostgresConnectionString ,
2019-12-04 18:32:37 -05:00
Description : "connection string parameters for the PostgreSQL server" ,
2019-11-19 16:48:13 -05:00
Type : "string" ,
} ,
config . HelpKV {
Key : target . PostgresFormat ,
2019-12-04 18:32:37 -05:00
Description : "specifies how data is populated, `namespace` format and `access` format, defaults to 'namespace'" ,
Type : "namespace*|access" ,
2019-11-19 16:48:13 -05:00
} ,
config . HelpKV {
Key : target . PostgresTable ,
2019-12-04 18:32:37 -05:00
Description : "table name in which events will be stored/updated. If the table does not exist, the MinIO server creates it at start-up" ,
2019-11-19 16:48:13 -05:00
Type : "string" ,
} ,
config . HelpKV {
Key : target . PostgresHost ,
2019-12-04 18:32:37 -05:00
Description : "host name of the PostgreSQL server. Defaults to `localhost`. IPv6 host should be enclosed with `[` and `]`" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "hostname" ,
} ,
config . HelpKV {
Key : target . PostgresPort ,
2019-12-04 18:32:37 -05:00
Description : "port on which to connect to PostgreSQL server, defaults to `5432`" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "port" ,
} ,
config . HelpKV {
Key : target . PostgresUsername ,
2019-12-04 18:32:37 -05:00
Description : "database username, defaults to user running the MinIO process if not specified" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "string" ,
} ,
config . HelpKV {
Key : target . PostgresPassword ,
2019-12-04 18:32:37 -05:00
Description : "database password" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "string" ,
} ,
config . HelpKV {
Key : target . PostgresDatabase ,
2019-12-04 18:32:37 -05:00
Description : "postgres Database name" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "string" ,
} ,
config . HelpKV {
Key : target . PostgresQueueDir ,
2019-12-04 18:32:37 -05:00
Description : "local directory where events are stored e.g. '/home/events'" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "path" ,
} ,
config . HelpKV {
Key : target . PostgresQueueLimit ,
2019-12-04 18:32:37 -05:00
Description : "enable persistent event store queue limit, defaults to '10000'" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "number" ,
} ,
config . HelpKV {
Key : config . Comment ,
2019-12-04 18:32:37 -05:00
Description : config . DefaultComment ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "sentence" ,
} ,
2019-10-23 01:59:13 -04:00
}
2019-11-19 16:48:13 -05:00
HelpMySQL = config . HelpKVS {
config . HelpKV {
Key : target . MySQLDSNString ,
2019-12-04 18:32:37 -05:00
Description : "data source name connection string for the MySQL server" ,
2019-11-19 16:48:13 -05:00
Type : "string" ,
} ,
config . HelpKV {
Key : target . MySQLTable ,
2019-12-04 18:32:37 -05:00
Description : "table name in which events will be stored/updated. If the table does not exist, the MinIO server creates it at start-up" ,
2019-11-19 16:48:13 -05:00
Type : "string" ,
} ,
config . HelpKV {
Key : target . MySQLFormat ,
2019-12-04 18:32:37 -05:00
Description : "specifies how data is populated, `namespace` format and `access` format, defaults to 'namespace'" ,
Type : "namespace*|access" ,
2019-11-19 16:48:13 -05:00
} ,
config . HelpKV {
Key : target . MySQLHost ,
2019-12-04 18:32:37 -05:00
Description : "host name of the MySQL server (used only if `dsnString` is empty)" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "hostname" ,
} ,
config . HelpKV {
Key : target . MySQLPort ,
2019-12-04 18:32:37 -05:00
Description : "port on which to connect to the MySQL server (used only if `dsn_string` is empty)" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "port" ,
} ,
config . HelpKV {
Key : target . MySQLUsername ,
2019-12-04 18:32:37 -05:00
Description : "database user-name (used only if `dsnString` is empty)" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "string" ,
} ,
config . HelpKV {
Key : target . MySQLPassword ,
2019-12-04 18:32:37 -05:00
Description : "database password (used only if `dsnString` is empty)" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "string" ,
} ,
config . HelpKV {
Key : target . MySQLDatabase ,
2019-12-04 18:32:37 -05:00
Description : "database name (used only if `dsnString` is empty)" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "string" ,
} ,
config . HelpKV {
Key : target . MySQLQueueDir ,
2019-12-04 18:32:37 -05:00
Description : "local directory where events are stored e.g. '/home/events'" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "path" ,
} ,
config . HelpKV {
Key : target . MySQLQueueLimit ,
2019-12-04 18:32:37 -05:00
Description : "enable persistent event store queue limit, defaults to '10000'" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "number" ,
} ,
config . HelpKV {
Key : config . Comment ,
2019-12-04 18:32:37 -05:00
Description : config . DefaultComment ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "sentence" ,
} ,
2019-10-23 01:59:13 -04:00
}
2019-11-19 16:48:13 -05:00
HelpNATS = config . HelpKVS {
config . HelpKV {
Key : target . NATSAddress ,
2019-12-04 18:32:37 -05:00
Description : "NATS server address e.g. '0.0.0.0:4222'" ,
2019-11-19 16:48:13 -05:00
Type : "address" ,
} ,
config . HelpKV {
Key : target . NATSSubject ,
Description : "NATS subject that represents this subscription" ,
Type : "string" ,
} ,
config . HelpKV {
Key : target . NATSUsername ,
2019-12-04 18:32:37 -05:00
Description : "username to be used when connecting to the server" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "string" ,
} ,
config . HelpKV {
Key : target . NATSPassword ,
2019-12-04 18:32:37 -05:00
Description : "password to be used when connecting to a server" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "string" ,
} ,
config . HelpKV {
Key : target . NATSToken ,
2019-12-04 18:32:37 -05:00
Description : "token to be used when connecting to a server" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "string" ,
} ,
config . HelpKV {
Key : target . NATSSecure ,
2019-12-04 18:32:37 -05:00
Description : "set this to 'on', enables TLS secure connections that skip server verification (not recommended)" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "on|off" ,
} ,
config . HelpKV {
Key : target . NATSPingInterval ,
2019-12-04 18:32:37 -05:00
Description : "client ping commands interval to the server, disabled by default" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "duration" ,
} ,
config . HelpKV {
Key : target . NATSStreaming ,
2019-12-04 18:32:37 -05:00
Description : "set this to 'on', to use streaming NATS server" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "on|off" ,
} ,
config . HelpKV {
Key : target . NATSStreamingAsync ,
2019-12-04 18:32:37 -05:00
Description : "set this to 'on', to enable asynchronous publish, process the ACK or error state" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "on|off" ,
} ,
config . HelpKV {
Key : target . NATSStreamingMaxPubAcksInFlight ,
2019-12-04 18:32:37 -05:00
Description : "specifies how many messages can be published without getting ACKs back from NATS streaming server" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "number" ,
} ,
config . HelpKV {
Key : target . NATSStreamingClusterID ,
2019-12-04 18:32:37 -05:00
Description : "unique ID for the NATS streaming cluster" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "string" ,
} ,
config . HelpKV {
Key : target . NATSQueueLimit ,
2019-12-04 18:32:37 -05:00
Description : "enable persistent event store queue limit, defaults to '10000'" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "number" ,
} ,
config . HelpKV {
Key : target . NATSQueueDir ,
2019-12-04 18:32:37 -05:00
Description : "local directory where events are stored e.g. '/home/events'" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "path" ,
} ,
config . HelpKV {
Key : target . NATSCertAuthority ,
2019-12-04 18:32:37 -05:00
Description : "certificate chain of the target NATS server if self signed certs were used" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "string" ,
} ,
config . HelpKV {
Key : target . NATSClientCert ,
2019-12-04 18:32:37 -05:00
Description : "TLS Cert used for NATS configured to require client certificates" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "string" ,
} ,
config . HelpKV {
Key : target . NATSClientKey ,
2019-12-04 18:32:37 -05:00
Description : "TLS Key used for NATS configured to require client certificates" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "string" ,
} ,
config . HelpKV {
Key : config . Comment ,
2019-12-04 18:32:37 -05:00
Description : config . DefaultComment ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "sentence" ,
} ,
2019-10-23 01:59:13 -04:00
}
2019-11-19 16:48:13 -05:00
HelpNSQ = config . HelpKVS {
config . HelpKV {
Key : target . NSQAddress ,
2019-12-04 18:32:37 -05:00
Description : "NSQ server address e.g. '127.0.0.1:4150'" ,
2019-11-19 16:48:13 -05:00
Type : "address" ,
} ,
config . HelpKV {
Key : target . NSQTopic ,
Description : "NSQ topic unique per target" ,
Type : "string" ,
} ,
config . HelpKV {
Key : target . NSQTLS ,
2019-12-04 18:32:37 -05:00
Description : "set this to 'on', to enable TLS negotiation" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "on|off" ,
} ,
config . HelpKV {
Key : target . NSQTLSSkipVerify ,
2019-12-04 18:32:37 -05:00
Description : "set this to 'on', to disable client verification of server certificates" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "on|off" ,
} ,
config . HelpKV {
Key : target . NSQQueueDir ,
2019-12-04 18:32:37 -05:00
Description : "local directory where events are stored e.g. '/home/events'" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "path" ,
} ,
config . HelpKV {
Key : target . NSQQueueLimit ,
2019-12-04 18:32:37 -05:00
Description : "enable persistent event store queue limit, defaults to '10000'" ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "number" ,
} ,
config . HelpKV {
Key : config . Comment ,
2019-12-04 18:32:37 -05:00
Description : config . DefaultComment ,
2019-11-19 16:48:13 -05:00
Optional : true ,
Type : "sentence" ,
} ,
2019-10-23 01:59:13 -04:00
}
)